How to Configure Virtual SCSI HBA Multipathing
This procedure describes how to create the virtual SCSI HBA multipathing configuration that is shown in the figure titled Configuring Virtual SCSI HBA Multipathing in a Guest Domain. This example is just one of many possible multipathing configurations.
Example 12-1 Adding a Virtual SCSI HBA and a Virtual SAN
The following example shows how to create a virtual SAN for a specific SCSI HBA initiator port and how to associate that virtual SAN with a virtual SCSI HBA in the ldg1
domain.
Use the ldm list-hba
command to identify the physical SCSI HBA initiator ports in the ldg1
domain:
primary# ldm list-hba -l ldg1
NAME VSAN
---- ----
/SYS/MB/SASHBA0/scsi@0/iport@1
[/pci@300/pci@1/pci@0/pci@2/scsi@0/iport@1]
/SYS/MB/SASHBA0/scsi@0/iport@2
[/pci@300/pci@1/pci@0/pci@2/scsi@0/iport@2]
/SYS/MB/SASHBA0/scsi@0/iport@4
[/pci@300/pci@1/pci@0/pci@2/scsi@0/iport@4]
/SYS/MB/SASHBA0/scsi@0/iport@8
[/pci@300/pci@1/pci@0/pci@2/scsi@0/iport@8]
/SYS/MB/PCIE1/SUNW,emlxs@0/fp@0,0
[/pci@300/pci@1/pci@0/pci@4/SUNW,emlxs@0/fp@0,0]
/SYS/MB/PCIE1/SUNW,emlxs@0,1/fp@0,0
[/pci@300/pci@1/pci@0/pci@4/SUNW,emlxs@0,1/fp@0,0]
Create a virtual SAN in the ldg1
domain that you can use to manage all of the SCSI devices that are associated with the last initiator port in the previous output.
The following command exports the vsan-mpxio1
virtual SAN from the ldg1
domain:
primary# ldm add-vsan /SYS/MB/PCIE1/SUNW,emlxs@0,1/fp@0,0 vsan-mpxio1 ldg1
/SYS/MB/PCIE1/SUNW,emlxs@0,1/fp@0,0 resolved to device:
/pci@300/pci@1/pci@0/pci@4/SUNW,emlxs@0,1/fp@0,0