In general, multipathing is a method for redundancy and automatic fail-over that provides at least two physical paths to a target resource. Multipathing allows for re-routing in the event of component failure, enabling higher availability for storage resources. Multipathing also allows for the parallel routing of data, which can result in faster throughput and increased scalability.
The Solaris I/O multipathing feature is a multipathing solution for storage devices that is part of the Solaris operating environment. This feature was formerly known as Sun StorEdge Traffic Manager (STMS) or MPxIO.
Solaris Fibre Channel and Storage Multipathing software enables FC connectivity for the Solaris hosts. The software resides on the server and identifies the storage and switch devices on your SAN. It allows you to attach either loop or fabric SAN storage devices while providing a standard interface with which to manage them.
Multipathing is disabled by default for FC devices on SPARC based systems, but is enabled by default on x86 based systems.
Note - The multipathing feature is not available for parallel SCSI devices but is available for FC disk devices. Multipathing is not supported on tape drives or libraries or on IP over FC.
Example device name with multipath disabled:
/dev/dsk/c1t1d0s0
Example device name with multipath enabled:
/dev/dsk/c3t2000002037CD9F72d0s0
Enabling MPxIO -
MPxIO has a configuration file located @ /kernel/drv/fp.conf. This file is used to enable MPxIO and if needed exclude the internal disks from MPxIO
stmsboot command is also used to enables/disables/updates MPxIO configuration.
Enable MPxIO in /kernel/drv/fp.conf
1. Edit /kernel/drv/fp.conf file and have below entry uncommented.
mpxio-disable="no"; and change "no" to "yes" and save and exit. In this case you dont need to run stmsboot command, otherwise:
2. After editing fp.conf and having above entry in it active execute below command.
#stmsboot -u <<<<< Caution: It ask for reboot so to enable MPxIO server needs downtime.
OK. So now after reboot you will have to verify if MPxIO is running or not.
# format
Searching for disks...done
c2t60050768018A8023B80000000000013Ad0: configured with capacity of 12.00GB
c2t60050768018A8023B80000000000013Bd0: configured with capacity of 12.00GB
c2t60050768018A8023B80000000000013Cd0: configured with capacity of 12.00GB
c2t60050768018A8023B80000000000013Dd0: configured with capacity of 16.00GB
c2t60050768018A8023B80000000000013Ed0: configured with capacity of 16.00GB
c2t60050768018A8023B80000000000013Fd0: configured with capacity of 16.00GB
There are various commands by which you can manage your storage disks few of them are as listed -
1. To Display Paths
# mpathadm list lu
/dev/rdsk/c2t60050768018A8023B80000000000013Fd0s2
Total Path Count: 8
Operational Path Count: 8
2. Show detailed information about a disk/LUN
#mpathadm show lu /dev/rdsk/c2t60050768018A8023B80000000000013Fd0s2
<<<<<<< You can find more details of specific LUN >>>>>>>
3. Display world wide port names/Fiber card Firmware level -
# fcinfo hba-port
HBA Port WWN: 10000000c9446e11 <----------- WWPN
OS Device Name: /dev/cfg/c4
Manufacturer: Emulex
Model: LP9002L
Firmware Version: 3.90a7 (C2D3.90A7)
FCode/BIOS Version: Boot:3.20 Fcode:1.40a0
Serial Number: BG50103047
Driver Name: emlxs
Driver Version: 2.31p (2008.12.11.10.30)
Type: N-port
State: online
Supported Speeds: 1Gb 2Gb
Current Speed: 1Gb
Node WWN: 20000000c9446e11
#fcinfo hba-port -l <<<<< Good Comand for debugging >>>>>>
#fcinfo remote-port -sl -p 10000000c9446e11
Lists all remote ports as well as the link statistics and scsi-target information
The Solaris I/O multipathing feature is a multipathing solution for storage devices that is part of the Solaris operating environment. This feature was formerly known as Sun StorEdge Traffic Manager (STMS) or MPxIO.
Solaris Fibre Channel and Storage Multipathing software enables FC connectivity for the Solaris hosts. The software resides on the server and identifies the storage and switch devices on your SAN. It allows you to attach either loop or fabric SAN storage devices while providing a standard interface with which to manage them.
Multipathing is disabled by default for FC devices on SPARC based systems, but is enabled by default on x86 based systems.
Note - The multipathing feature is not available for parallel SCSI devices but is available for FC disk devices. Multipathing is not supported on tape drives or libraries or on IP over FC.
Example device name with multipath disabled:
/dev/dsk/c1t1d0s0
Example device name with multipath enabled:
/dev/dsk/c3t2000002037CD9F72d0s0
Enabling MPxIO -
MPxIO has a configuration file located @ /kernel/drv/fp.conf. This file is used to enable MPxIO and if needed exclude the internal disks from MPxIO
stmsboot command is also used to enables/disables/updates MPxIO configuration.
Enable MPxIO in /kernel/drv/fp.conf
1. Edit /kernel/drv/fp.conf file and have below entry uncommented.
mpxio-disable="no"; and change "no" to "yes" and save and exit. In this case you dont need to run stmsboot command, otherwise:
2. After editing fp.conf and having above entry in it active execute below command.
#stmsboot -u <<<<< Caution: It ask for reboot so to enable MPxIO server needs downtime.
OK. So now after reboot you will have to verify if MPxIO is running or not.
# format
Searching for disks...done
c2t60050768018A8023B80000000000013Ad0: configured with capacity of 12.00GB
c2t60050768018A8023B80000000000013Bd0: configured with capacity of 12.00GB
c2t60050768018A8023B80000000000013Cd0: configured with capacity of 12.00GB
c2t60050768018A8023B80000000000013Dd0: configured with capacity of 16.00GB
c2t60050768018A8023B80000000000013Ed0: configured with capacity of 16.00GB
c2t60050768018A8023B80000000000013Fd0: configured with capacity of 16.00GB
There are various commands by which you can manage your storage disks few of them are as listed -
1. To Display Paths
# mpathadm list lu
/dev/rdsk/c2t60050768018A8023B80000000000013Fd0s2
Total Path Count: 8
Operational Path Count: 8
2. Show detailed information about a disk/LUN
#mpathadm show lu /dev/rdsk/c2t60050768018A8023B80000000000013Fd0s2
<<<<<<< You can find more details of specific LUN >>>>>>>
3. Display world wide port names/Fiber card Firmware level -
# fcinfo hba-port
HBA Port WWN: 10000000c9446e11 <----------- WWPN
OS Device Name: /dev/cfg/c4
Manufacturer: Emulex
Model: LP9002L
Firmware Version: 3.90a7 (C2D3.90A7)
FCode/BIOS Version: Boot:3.20 Fcode:1.40a0
Serial Number: BG50103047
Driver Name: emlxs
Driver Version: 2.31p (2008.12.11.10.30)
Type: N-port
State: online
Supported Speeds: 1Gb 2Gb
Current Speed: 1Gb
Node WWN: 20000000c9446e11
#fcinfo hba-port -l <<<<< Good Comand for debugging >>>>>>
#fcinfo remote-port -sl -p 10000000c9446e11
Lists all remote ports as well as the link statistics and scsi-target information