This shows you the differences between two versions of the page.
|
san_san_lun_information [2011/06/21 08:46] root |
san_san_lun_information [2012/11/08 10:04] (current) root |
||
|---|---|---|---|
| Line 111: | Line 111: | ||
| Relative ID: 0 | 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 <logical-unit-name command> | ||
| + | |||
| + | 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 <logical-unit-name command> | ||
| + | |||
| + | 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]] | [[http://download.oracle.com/docs/cd/E19253-01/820-1931/agkax/index.html]] | ||