1.7 Trouver les WWN et les lun ID
Aller à la navigation
Aller à la recherche
Trouver le WNN avec la commande raccourcis:
# systool -c fc_host -A port_name Class = "fc_host"
Class Device = "host0" port_name = "0x10000000c9630304"
Device = "host0"
Class Device = "host1" port_name = "0x10000000c9630a1f"
Device = "host1"
Class Device = "host2" port_name = "0x10000000c963041b"
Device = "host2"
Class Device = "host3" port_name = "0x10000000c9630ef3"<br< Device = "host3"
Même chose mais avec pleins d'infos:
# systool -c fc_host -v Class = "fc_host"
Class Device = "host0" Class Device path = "/sys/class/fc_host/host0" active_fc4s = "0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 " fabric_name = "0x100000051e66c2ee" issue_lip = <store method only> maxframe_size = "2048 bytes" node_name = "0x20000000c9630304" port_id = "0x832900" port_name = "0x10000000c9630304" port_state = "Online" port_type = "NPort (fabric via point-to-point)" speed = "4 Gbit" supported_classes = "Class 3" supported_fc4s = "0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 " supported_speeds = "1 Gbit, 2 Gbit, 4 Gbit" tgtid_bind_type = "wwpn (World Wide Port Name)" uevent = <store method only>
Device = "host0" Device path = "/sys/devices/pci0000:00/0000:00:0d.0/0000:05:00.0/host0" uevent = <store method only>
Le WWN correspond à port_name
# systool -c fc_transport -v Class = "fc_transport"
Class Device = "target0:0:1" Class Device path = "/sys/class/fc_transport/target0:0:1" node_name = "0x5005076306ffc46e" port_id = "0xe6f900" port_name = "0x500507630603c46e" uevent = <store method only>
Device = "target0:0:1" Device path = "/sys/devices/pci0000:00/0000:00:0d.0/0000:05:00.0/host0/rport-0:0-3/target0:0:1" uevent = <store method only>
Class Device = "target0:0:2" Class Device path = "/sys/class/fc_transport/target0:0:2" node_name = "0x5005076801004dd9" port_id = "0xe60e00" port_name = "0x5005076801404dd9" uevent = <store method only>
Device = "target0:0:2" Device path = "/sys/devices/pci0000:00/0000:00:0d.0/0000:05:00.0/host0/rport-0:0-4/target0:0:2" uevent = <store method only>
Class Device = "target0:0:3" Class Device path = "/sys/class/fc_transport/target0:0:3" node_name = "0x5005076801004de3" port_id = "0xe60d00" port_name = "0x5005076801404de3" uevent = <store method only>
Device = "target0:0:3" Device path = "/sys/devices/pci0000:00/0000:00:0d.0/0000:05:00.0/host0/rport-0:0-5/target0:0:3" uevent = <store method only>
Trouver les lun ID
{op}@ylal2000 # multipath -ll | more 36005076306ffc46e0000000000005533 dm-185 IBM,2107900 [size=30G][features=1 queue_if_no_path][hwhandler=0] \_ round-robin 0 [prio=2][active] \_ 1:0:3:39 sdjq 65:320 [active][ready] \_ 0:0:1:39 sdan 66:112 [active][ready]