====== SAN / SAN LUN information ====== ===== List the multipathing support ===== mpathadm list mpath-support mpath-support: libmpscsi_vhci.so Choose the mpath support name from the output list ===== List the multipathing support properties ===== 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 Supported Auto Failback Config: 1 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 .... .... ===== To Get a List of Logical Units Discovered on the System ===== mpathadm list lu /dev/rdsk/c4t600A0B8000505B5000000D304C10C46Dd0s2 Total Path Count: 4 Operational Path Count: 4 /dev/rdsk/c4t600A0B8000505B5000000D2F4C10C3EDd0s2 Total Path Count: 4 Operational Path Count: 4 /dev/rdsk/c4t600A0B8000505B5000000D2D4C10C34Dd0s2 Total Path Count: 4 Operational Path Count: 4 Select a logical unit name from the output. mpathadm show lu /dev/rdsk/c4t600A0B8000505B5000000D304C10C46Dd0s2 Logical Unit: /dev/rdsk/c4t600A0B8000505B5000000D304C10C46Dd0s2 mpath-support: libmpscsi_vhci.so Vendor: IBM Product: 1814 FAStT Revision: 0916 Name Type: unknown type Name: 600a0b8000505b5000000d304c10c46d Asymmetric: yes Current Load Balance: round-robin Logical Unit Group ID: NA Auto Failback: on Auto Probing: NA Paths: Initiator Port Name: 210000e08b945795 Target Port Name: 200500a0b8505d67 Override Path: NA Path State: OK Disabled: no Initiator Port Name: 210000e08b945795 Target Port Name: 200400a0b8505d67 Override Path: NA Path State: OK Disabled: no Initiator Port Name: 210000e08b94ec9a Target Port Name: 200500a0b8505d68 Override Path: NA Path State: OK Disabled: no Initiator Port Name: 210000e08b94ec9a Target Port Name: 200400a0b8505d68 Override Path: NA Path State: OK Disabled: no Target Port Groups: ID: 1 Explicit Failover: yes Access State: standby Target Ports: Name: 200500a0b8505d67 Relative ID: 0 Name: 200500a0b8505d68 Relative ID: 0 ID: 2 Explicit Failover: yes Access State: active Target Ports: Name: 200400a0b8505d67 Relative ID: 0 Name: 200400a0b8505d68 Relative ID: 0 ===== Fail Over a Logical Unit ===== This operation is applicable only to devices in the following two categories: * Unordered List ItemAsymmetric devices with a proprietary failover mechanism recognized and supported by multipathing support * Unordered List ItemDevices conforming to the T10 Standard Target Port Group Support libmpscsi_vhci.so and providing explicit mode asymmetric logical unit access mpathadm show lu Example: Logical Unit: /dev/rdsk/c4t600A0B8000505B5000000D304C10C46Dd0s2 mpath-support: **libmpscsi_vhci.so** \\ Vendor: IBM \\ Product: 1814 FAStT \\ Revision: 0916 \\ Name Type: unknown type \\ Name: 600a0b8000505b5000000d304c10c46d \\ ** Asymmetric: yes** \\ .... \\ .... \\ ID: 1 \\ Explicit Failover: yes \\ Access State: **standby** \\ Target Ports: \\ Name: 200500a0b8505d67 \\ Relative ID: 0 \\ Name: 200500a0b8505d68 \\ Relative ID: 0 \\ ID: 2 \\ Explicit Failover: yes \\ Access State: **active** \\ Target Ports: \\ Name: 200400a0b8505d67 \\ Relative ID: 0 \\ Name: 200400a0b8505d68 \\ Relative ID: 0 \\ mpathadm failover lu Example: mpathadm failover lu /dev/rdsk/c4t600A0B8000505B5000000D304C10C46Dd0s2 ==== verify the access state change ==== mpathadm show lu logical-unit-name .... \\ .... \\ Target Port Groups: \\ ID: 1 \\ Explicit Failover: yes \\ Access State: **active** \\ Target Ports: \\ Name: 200500a0b8505d67 \\ Relative ID: 0 \\ Name: 200500a0b8505d68 \\ Relative ID: 0 \\ ID: 2 \\ Explicit Failover: yes \\ Access State: ** standby ** \\ Target Ports: \\ Name: 200400a0b8505d67 \\ Relative ID: 0 \\ Name: 200400a0b8505d68 \\ Relative ID: 0 ==== Verify the access state change with luxadm ==== luxadm display /dev/rdsk/c4t600A0B8000505B5000000D304C10C46Dd0s2 DEVICE PROPERTIES for disk: /dev/rdsk/c4t600A0B8000505B5000000D304C10C46Dd0s2 \\ Vendor: IBM \\ Product ID: 1814 FAStT \\ Revision: 0916 \\ Serial Num: SK82800386 \\ Unformatted capacity: 61440,000 MBytes \\ Write Cache: Enabled \\ Read Cache: Enabled \\ Minimum prefetch: 0xffff \\ Maximum prefetch: 0x0 \\ Device Type: Disk device \\ Path(s): \\ /dev/rdsk/c4t600A0B8000505B5000000D304C10C46Dd0s2 \\ /devices/scsi_vhci/ssd@g600a0b8000505b5000000d304c10c46d:c,raw \\ Controller /devices/pci@7c0/pci@0/pci@9/SUNW,qlc@0/fp@0,0 \\ Device Address 200500a0b8505d67,3 \\ Host controller port WWN 210000e08b945795 \\ Class primary \\ State **ONLINE** \\ Controller /devices/pci@7c0/pci@0/pci@9/SUNW,qlc@0/fp@0,0 \\ Device Address 200400a0b8505d67,3 \\ Host controller port WWN 210000e08b945795 \\ Class secondary \\ State **STANDBY** \\ Controller /devices/pci@7c0/pci@0/pci@8/SUNW,qlc@0/fp@0,0 \\ Device Address 200500a0b8505d68,3 \\ Host controller port WWN 210000e08b94ec9a \\ Class primary \\ State **ONLINE** \\ Controller /devices/pci@7c0/pci@0/pci@8/SUNW,qlc@0/fp@0,0 \\ Device Address 200400a0b8505d68,3 \\ Host controller port WWN 210000e08b94ec9a \\ Class secondary \\ State **STANDBY** \\ ===== Luxadm port information ===== luxadm -e port /devices/pci@7c0/pci@0/pci@8/SUNW,qlc@0/fp@0,0:devctl CONNECTED /devices/pci@7c0/pci@0/pci@9/SUNW,qlc@0/fp@0,0:devctl CONNECTED ===== Luxadm dump map information ===== luxadm -e dump_map /devices/pci@7c0/pci@0/pci@9/SUNW,qlc@0/fp@0,0:devctl Pos Port_ID Hard_Addr Port WWN Node WWN Type\\ 0 10100 0 202900a0b82acd3c 200800a0b82acd3c 0x0 (Disk device) 1 10200 0 210000e08b94d494 200000e08b94d494 0x1f (Unknown Type,Host Bus Adapter) devices = output from luxadm -e port ===== wwn information from prtconf ===== prtconf -vp |grep -i wwn port-wwn: 210000e0.8b899dec node-wwn: 200000e0.8b899dec port-wwn: 210000e0.8b94d494 node-wwn: 200000e0.8b94d494 [[http://download.oracle.com/docs/cd/E19253-01/820-1931/agkax/index.html]]