1.5 Multipathing
Aller à la navigation
Aller à la recherche
Vérifier l'état des cartes fibre
#systool -c fc_host -A port_state Class = "fc_host"
Class Device = "host0" port_state = "Offline"
Device = "host0"
Class Device = "host1" port_state = "Online"
Device = "host1"
Vérifier l'état des chemins SAN
# multipath -ll 36005076304ffc62c0000000000008402 dm-14 IBM,2107900 [size=30G][features=1 queue_if_no_path][hwhandler=0] \_ round-robin 0 [prio=1][active] \_ 1:0:0:3 sds 65:32 [active][ready] 36005076304ffc4890000000000009002 dm-6 IBM,2107900 [size=30G][features=1 queue_if_no_path][hwhandler=0] \_ round-robin 0 [prio=1][active] \_ 1:0:1:4 sdab 65:176 [active][ready] 36005076304ffc4890000000000009102 dm-15 IBM,2107900 [size=130G][features=1 queue_if_no_path][hwhandler=0] \_ round-robin 0 [prio=1][active] \_ 1:0:1:1 sdaa 65:160 [active][ready] \_ 0:0:0:1 sdb 8:16 [failed][faulty]
ou
# multipathd -k"show topo"
Le premier chiffre de la chaine SCSI des luns correspond au numéro/nom de la carte fibre.
Afficher les WWN (carte emulex)
# hbacmd listhbas
Activer une carte fibre (carte emulex)
# hbacmd setportenabled ${wwn} 1 1>/dev/null # hbacmd enablebootcode ${wwn} E 1>/dev/null # hbacmd setbootparams ${wwn} x86 EnableBootFromSAN 1 1>/dev/null
Reseter une carte fibre (carte emulex)
# hbacmd reset ${wwn}
Tester une carte fibre (carte emulex)
# hbacmd posttest ${wwn} # hbacmd loopback ${wwn} 0 5 1 1a2b3c4d # hbacmd loopback ${wwn} 1 5 1 1a2b3c4d # hbacmd echotest ${wwn} ${wwpn} 5 1 1a2b3c4d