Monday, 17 September 2018

multipath enable in solaris11

Enable Multipath:

# pkg info system/storage/multipath-utilities
Name: system/storage/multipath-utilities
Summary: Solaris Multipathing CLI
Description: Path Administration Utility for a Solaris Multipathing device
Category: Applications/System Utilities
State: Installed
Publisher: solaris
Version: 0.5.11
Build Release: 5.11
Branch: 0.175.0.0.0.0.0
Packaging Date: Tue Sep 27 01:40:01 2011
Size: 77.29 kB
FMRI: pkg://solaris/system/storage/multipath-utilities@
0.5.11,5.11-0.175.0.0.0.0.0:20110927T014001Z
If not, install it.
# pkg install system/storage/multipath-utilities

Enable device multipathing.
# stmsboot -e
WARNING: stmsboot operates on each supported multipath-capable controller
detected in a host. In your system, these controllers are
/devices/pci@780/pci@0/pci@8/SUNW,qlc@0/fp@0,0
/devices/pci@780/pci@0/pci@8/SUNW,qlc@0,1/fp@0,0
/devices/pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@1
/devices/pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@1

If you do NOT wish to operate on these controllers, please quit stmsboot
and re-invoke with -D { fp | mpt } to specify which controllers you wish
to modify your multipathing configuration for.
Do you wish to continue? [y/n] (default: y) y
Checking mpxio status for driver fp
Checking mpxio status for driver mpt
WARNING: This operation will require a reboot.
Do you want to continue ? [y/n] (default: y) y
The changes will come into effect after rebooting the system.
Reboot the system now ? [y/n] (default: y) y

Disable device multipathing.
# stmsboot -d
WARNING: stmsboot operates on each supported multipath-capable controller
detected in a host. In your system, these controllers are
/devices/pci@780/pci@0/pci@8/SUNW,qlc@0/fp@0,0
/devices/pci@780/pci@0/pci@8/SUNW,qlc@0,1/fp@0,0
/devices/pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@1
/devices/pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@1
/devices/pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2
/devices/pci@7c0/pci@0/pci@9/LSILogic,sas@0
/devices/pci@7c0/pci@0/pci@9/LSILogic,sas@0
If you do NOT wish to operate on these controllers, please quit stmsboot
and re-invoke with -D { fp | mpt } to specify which controllers you wish
to modify your multipathing configuration for.

Do you wish to continue? [y/n] (default: y) y
Checking mpxio status for driver fp
Checking mpxio status for driver mpt
WARNING: This operation will require a reboot.
Do you want to continue ? [y/n] (default: y) y
The changes will come into effect after rebooting the system.
Reboot the system now ? [y/n] (default: y) y



perform an ls -l command on /dev/cfg directory
1 .  # cd /dev/cfg
 2.  # ls -l
output command:
lrwxrwxrwx   1 root     root          62 Apr  9  2016 c10 -> ../../devices/pci@5                                                                             00/pci@2/pci@0/pci@0/LSI,sas@0/iport@1:scsi
lrwxrwxrwx   1 root     root          63 Apr  9  2016 c11 -> ../../devices/pci@5                                                                             00/pci@2/pci@0/pci@0/LSI,sas@0/iport@v0:scsi
lrwxrwxrwx   1 root     root          62 Apr  9  2016 c3 -> ../../devices/pci@40                                                                             0/pci@1/pci@0/pci@0/LSI,sas@0/iport@1:scsi
lrwxrwxrwx   1 root     root          62 Apr  9  2016 c4 -> ../../devices/pci@40                                                                             0/pci@1/pci@0/pci@0/LSI,sas@0/iport@2:scsi
lrwxrwxrwx   1 root     root          63 Apr  9  2016 c5 -> ../../devices/pci@40                                                                             0/pci@1/pci@0/pci@0/LSI,sas@0/iport@v0:scsi
lrwxrwxrwx   1 root     root          72 Apr  9  2016 c6 -> ../../devices/pci@40                                                                             0/pci@2/pci@0/pci@1/pci@0/pci@2/SUNW,qlc@0/fp@0,0:fc
lrwxrwxrwx   1 root     root          74 Apr  9  2016 c7 -> ../../devices/pci@40                                                                             0/pci@2/pci@0/pci@1/pci@0/pci@2/SUNW,qlc@0,1/fp@0,0:fc
lrwxrwxrwx   1 root     root          72 Apr  9  2016 c8 -> ../../devices/pci@50                                                                             0/pci@1/pci@0/pci@1/pci@0/pci@2/SUNW,qlc@0/fp@0,0:fc
lrwxrwxrwx   1 root     root          74 Apr  9  2016 c9 -> ../../devices/pci@50                                                                             0/pci@1/pci@0/pci@1/pci@0/pci@2/SUNW,qlc@0,1/fp@0,0:fc
lrwxrwxrwx   1 root     root          47 Apr  9  2016 PCI-EM0 -> ../../devices/p                                                                             ci@400/pci@2/pci@0/pci@1:PCI-EM0
lrwxrwxrwx   1 root     root          47 Apr  9  2016 PCI-EM1 -> ../../devices/p                                                                             ci@400/pci@2/pci@0/pci@2:PCI-EM1
lrwxrwxrwx 


3.  Copy the /kernel/drv/fp.conf file to the /etc/driver/drv/fp.conf file.
Select one of the following to enable or disable specific FC HBA ports:
 4. Add the following line for each FC HBA port that is to be enabled in the
/etc/driver/drv/fp.conf:
name="fp" parent="parent name" port=port-number mpxio-disable="no";

5.  Copy the /kernel/drv/scsi_vhci.conf file to the /etc/driver/drv/scsi_vhci.conf file.
Edit the /etc/driver/drv/scsi_vhci.conf file to add the vendor ID and product IDentries.
The vendor ID and product ID are the vendor and product identification strings that the device
returns in SCSI INQUIRY data. The vendor ID must be eight characters long. You must specify
all eight characters even if the trailing characters are spaces.
The product ID can be up to 16 characters long.
scsi-vhci-failover-override =
"VendorID1ProductID1", "f_sym",
"VendorID2ProductID2", "f_sym",
...
"VendorIDnProductIDn", "f_sym";
Note that the entries are separated by the ’,’ character and the last vendor/product entry is
terminated by the ’;’ character.
For example, to add a device from a “ACME” vendor with a product ID of “MSU”, and to add a
device from vendor “XYZ” vendor with a product ID of “ABC”, you would add the following
lines to the /etc/driver/drv/scsi_vhci.conf file:
To add a device from a “XYZ” vendor with a product ID of “ABC”, you would add:
scsi-vhci-failover-override =
"ACME MSU", "f_sym",
"XYZ ABC", "f_sym";
Save and exit the /etc/driver/drv/scsi_vhci.conf file

For example,
scsi-vhci-failover-override =
"COMPELNTCompellent Vol", "f_sym";


# stmsboot -u

Display the mapping of devices on all controllers. For example:
# stmsboot -L
non-STMS device name STMS device name
----------------------------------------------------------------
/dev/rdsk/c2t8d0 /dev/rdsk/c10t500000E01046DEE0d0
/dev/rdsk/c2t0d0 /dev/rdsk/c10t500000E01046B070d0
/dev/rdsk/c2t3d0 /dev/rdsk/c10t20000020372A40AFd0
/dev/rdsk/c2t12d0 /dev/rdsk/c10t500000E01046DEF0d0
/dev/rdsk/c2t11d0 /dev/rdsk/c10t500000E01046E390d0
/dev/rdsk/c3t8d0 /dev/rdsk/c10t500000E01046DEE0d0
/dev/rdsk/c3t0d0 /dev/rdsk/c10t500000E01046B070d0
/dev/rdsk/c3t3d0 /dev/rdsk/c10t20000020372A40AFd0
/dev/rdsk/c3t12d0 /dev/rdsk/c10t500000E01046DEF0d0
/dev/rdsk/c3t11d0 /dev/rdsk/c10t500000E01046E390d0
The -l option displays the mapping of devices on only the specified controller. The following
example displays the mapping of controller 3.
# stmsboot -l3
non-STMS device name STMS device name
----------------------------------------------------------------
/dev/rdsk/c3t8d0 /dev/rdsk/c10t500000E01046DEE0d0
/dev/rdsk/c3t0d0 /dev/rdsk/c10t500000E01046B070d0
/dev/rdsk/c3t3d0 /dev/rdsk/c10t20000020372A40AFd0
/dev/rdsk/c3t12d0 /dev/rdsk/c10t500000E01046DEF0d0
/dev/rdsk/c3t11d0 /dev/rdsk/c10t500000E01046E390d0
5
6
Configuring Third-Party Storage Devices
30



Howto Configure Automatic Failback
Become an administrator.
Copy the /kernel/drv/scsi_vhci.conf file to the /etc/driver/drv/scsi_vhci.conf file.
Edit the /etc/driver/drv/scsi_vhci.conf file.
Disable automatic failback capability by changing the auto-failback entry to:
auto-failback="disable";
Enable automatic failback capability (if you disabled it before), by changing the auto-failback
entry to:
auto-failback="enable";
Save and exit the file.
Reboot the system.
# shutdown -g0 -y -i6

Administering Multipathing Devices
Perform the following tasks to administer any multipathing devices.
▼ HowtoDisplay Multipathing Support Information
Multipathing support and property information is identified with theMultipathManagement
API plug-in library name.
Become an administrator.
Identify the multipathing support on your system.
# mpathadm list mpath-support
mpath-support: libmpscsi_vhci.so
Display the multipathing support properties for a specified mpath support name.
# mpathadm show mpath-support libmpscsi_vhci.so
mpath-support: libmpscsi_vhci.so
Vendor: Sun Microsystems
Driver Name: scsi_vhci
Default Load Balance: round-robin
Supported Load Balance Types:
round-robin
logical-block
Allows To Activate Target Port Group Access: yes
Allows Path Override: no
4C H A P T E R 4
1
2
3
33
Supported Auto Failback Config: yes
Auto Failback: on
Failback Polling Rate (current/max): 0/0
Supported Auto Probing Config: 0
Auto Probing: NA
Probing Polling Rate (current/max): NA/NA
Supported Devices:
Vendor: SUN
Product: T300
Revision:
Supported Load Balance Types:
round-robin
Vendor: SUN
Product: T4
Revision:
Supported Load Balance Types:
round-robin
.
.
.
The command output also shows a list of device products that is supported by the multipathing
support software. The multipathing support libmpscsi_vhci.so supports T10 target port
group compliant devices by default.
▼ HowtoDisplay Properties of a Specific Initiator Port
The following steps describe how to display the properties of an initiator port.
Identify the initiator port.
# mpathadm list initiator-port
Initiator Port: iqn.1986-03.com.sun:01:ffffffffffff.4e94f9bd,4000002a00ff
Initiator Port: 210100e08ba41feb
Initiator Port: 210000e08b841feb
Display the specific initiator port's properties.
# mpathadm show initiator-port 2000000173018713
Initiator Port: 210100e08ba41feb
Transport Type: Fibre Channel
OS Device File: /devices/pci@1,0/pci1022,7450@1/pci1077,141@2,1/fp@0,0
▼ HowtoDisplay Specific LUNInformation
Display the list of LUNs, along with the properties for each LUNby using the mpathadm
command. The displayed list of LUNs contain names that in turn can be used to display the
properties of a particular LUN.
1
2
Administering Multipathing Devices
34 Oracle Solaris Administration: SAN Configuration andMultipathing • February 2012 E23097–12
Display a list of multipathed LUNs.
# mpathadm list lu
/dev/rdsk/c0t600144F08069703400004E828EE10004d0s2
Total Path Count: 8
Operational Path Count: 8
/dev/rdsk/c0t600144F08069703400004E8183DF0002d0s2
Total Path Count: 8
Operational Path Count: 8
/dev/rdsk/c0t600A0B800026D63A0000A4994E2342D4d0s2
Total Path Count: 4
Operational Path Count: 4
/dev/rdsk/c0t600A0B800029065C00007CF54E234013d0s2
Total Path Count: 4
Operational Path Count: 4
/dev/rdsk/c0t600A0B800026D63A0000A4984E234298d0s2
Total Path Count: 4
Operational Path Count: 4
/dev/rdsk/c0t600A0B800029065C00007CF44E233FCFd0s2
Total Path Count: 4
Operational Path Count: 4
/dev/rdsk/c0t600A0B800026D63A0000A4974E23424Ed0s2
Total Path Count: 4
Operational Path Count: 4
.
.
.
Display configuration information about a specific LUN.
# mpathadm show lu /dev/rdsk/c4t60003BA27D2120004204AC2B000DAB00d0s2
mpath-support: libmpscsi_vhci.so
Vendor: SUN
Product: Sun Storage NAS
Revision: 1.0
Name Type: unknown type
Name: 600144f08069703400004e828ee10004
Asymmetric: yes
Current Load Balance: round-robin
Logical Unit Group ID: NA
Auto Failback: on
Auto Probing: NA
Paths:
Initiator Port Name: 210100e08ba41feb
Target Port Name: 2100001b329b6c3f
Override Path: NA
Path State: OK
Disabled: no
Initiator Port Name: 210100e08ba41feb
Target Port Name: 2101001b32bb6c3f
Override Path: NA
Path State: OK
Disabled: no
Initiator Port Name: 210100e08ba41feb
Target Port Name: 2100001b329b793c
Override Path: NA
1
2
Administering Multipathing Devices
Chapter 4 • Administering Multipathing Devices (mpathadm) 35
Path State: OK
Disabled: no
.
.
.
Target Port Groups:
ID: 0
Explicit Failover: no
Access State: active optimized
Target Ports:
Name: 2100001b329b6c3f
Relative ID: 1
Name: 2101001b32bb6c3f
Relative ID: 2
ID: 1
Explicit Failover: no
Access State: standby
Target Ports:
Name: 2100001b329b793c
Relative ID: 257
Name: 2101001b32bb793c
Relative ID: 256

No comments:

Post a Comment