Wednesday, 3 September 2008

luxadm

Some luxadm notes.

  • List the enclosures and FC cards (-p adds WWNs and dev-path info)
    luxadm probe

  • List the FC devices with status
    host#:/ # luxadm -e port
    /devices/pci@13d,700000/SUNW,qlc@1/fp@0,0:devctl CONNECTED
    /devices/pci@13d,700000/SUNW,qlc@1,1/fp@0,0:devctl CONNECTED
    /devices/pci@13d,600000/SUNW,qlc@1/fp@0,0:devctl NOT CONNECTED
    /devices/pci@13d,600000/SUNW,qlc@1,1/fp@0,0:devctl NOT CONNECTED

  • List the devices on a port
    host:/ # luxadm -e dump_map /devices/pci@13d,700000/SUNW,qlc@1/fp@0,0:devctl
    Pos Port_ID Hard_Addr Port WWN Node WWN Type
    0 613c13 0 5006048c4a36d7c6 5006048c4a36d7c6 0x0 (Disk device)
    1 616013 0 500604844a373d89 500604844a373d89 Failed to get the type.
    2 632f13 0 5006048452a4f9d7 5006048452a4f9d7 0x0 (Disk device)
    3 661913 0 210000e08b82a178 200000e08b82a178 0x1f (Unknown Type,Host Bus Adapter)

  • Force a reset of the devices on a FC bus
    luxadm -e forcelip /dev/cfg/c2

No comments: