Connaître la gestion des disques avec VxVM sous Linux
mardi 26 mars 2013
par
popularité : 2%
par
popularité : 2%
Petit Mémo pour connaître la gestion de ces disques avec VxVM sous Linux
Connaître les WWN des cartes FC :
# cat /sys/class/fc_host/host ?/port_name
0x5001438018753f4b
0x5001438018753ef9
Connaître la liste des contrôleurs FC :
Générique :
# lspci | grep -i fibre
0e:00.0 Fibre Channel : QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA (rev 02)
11:00.0 Fibre Channel : QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA (rev 02)
# vxdmpadm listctlr all CTLR-NAME ENCLR-TYPE STATE ENCLR-NAME ===================================================== c360 OTHER_DISKS ENABLED Local_Server_Storage c3 FAS3240 ENABLED fas32400 c4 FAS3240 ENABLED fas32400
Connaître le DMP : (Dynamic Multipathing)
# vxdmpadm listenclosure all ENCLR_NAME ENCLR_TYPE ENCLR_SNO STATUS ARRAY_TYPE LUN_COUNT ======================================================================================= Local_Server_Storage OTHER_DISKS OTHER_DISKS CONNECTED OTHER_DISKS 1 fas32400 FAS3240 200000100894 CONNECTED ALUA 10
# vxdmpadm getsubpaths NAME STATE[A] PATH-TYPE[M] DMPNODENAME ENCLR-NAME CTLR ATTRS ================================================================================ cciss/c0d0 ENABLED(A) - cciss/c0d0 Local_Server_Storage c360 - sda ENABLED(A) PRIMARY fas32400_0 fas32400 c3 - sdk ENABLED SECONDARY fas32400_0 fas32400 c3 - sdl ENABLED(A) PRIMARY fas32400_0 fas32400 c4 - sdv ENABLED SECONDARY fas32400_0 fas32400 c4 - sdb ENABLED(A) PRIMARY fas32400_1 fas32400 c3 - sdm ENABLED(A) PRIMARY fas32400_1 fas32400 c4 - sdw ENABLED SECONDARY fas32400_1 fas32400 c3 - sdx ENABLED SECONDARY fas32400_1 fas32400 c4 - sdc ENABLED(A) PRIMARY fas32400_2 fas32400 c3 - sdn ENABLED(A) PRIMARY fas32400_2 fas32400 c4 - sdy ENABLED SECONDARY fas32400_2 fas32400 c3 - sdz ENABLED SECONDARY fas32400_2 fas32400 c4 - sdaa ENABLED SECONDARY fas32400_3 fas32400 c3 - sdab ENABLED SECONDARY fas32400_3 fas32400 c4 - sdd ENABLED(A) PRIMARY fas32400_3 fas32400 c3 - sdo ENABLED(A) PRIMARY fas32400_3 fas32400 c4 - sdac ENABLED SECONDARY fas32400_4 fas32400 c3 - sdad ENABLED SECONDARY fas32400_4 fas32400 c4 - sde ENABLED(A) PRIMARY fas32400_4 fas32400 c3 - sdp ENABLED(A) PRIMARY fas32400_4 fas32400 c4 - sdae ENABLED SECONDARY fas32400_5 fas32400 c3 - sdaf ENABLED SECONDARY fas32400_5 fas32400 c4 - sdf ENABLED(A) PRIMARY fas32400_5 fas32400 c3 - sdq ENABLED(A) PRIMARY fas32400_5 fas32400 c4 - sdag ENABLED SECONDARY fas32400_6 fas32400 c3 - sdah ENABLED SECONDARY fas32400_6 fas32400 c4 - sdg ENABLED(A) PRIMARY fas32400_6 fas32400 c3 - sdr ENABLED(A) PRIMARY fas32400_6 fas32400 c4 - sdai ENABLED SECONDARY fas32400_7 fas32400 c3 - sdaj ENABLED SECONDARY fas32400_7 fas32400 c4 - sdh ENABLED(A) PRIMARY fas32400_7 fas32400 c3 - sds ENABLED(A) PRIMARY fas32400_7 fas32400 c4 - sdak ENABLED SECONDARY fas32400_8 fas32400 c3 - sdal ENABLED SECONDARY fas32400_8 fas32400 c4 - sdi ENABLED(A) PRIMARY fas32400_8 fas32400 c3 - sdt ENABLED(A) PRIMARY fas32400_8 fas32400 c4 - sdam ENABLED SECONDARY fas32400_9 fas32400 c3 - sdan ENABLED SECONDARY fas32400_9 fas32400 c4 - sdj ENABLED(A) PRIMARY fas32400_9 fas32400 c3 - sdu ENABLED(A) PRIMARY fas32400_9 fas32400 c4 -
# vxdmpadm getsubpaths dmpnodename=sdk NAME STATE[A] PATH-TYPE[M] CTLR-NAME ENCLR-TYPE ENCLR-NAME ATTRS ================================================================================ sda ENABLED(A) PRIMARY c3 FAS3240 fas32400 - sdk ENABLED SECONDARY c3 FAS3240 fas32400 - sdl ENABLED(A) PRIMARY c4 FAS3240 fas32400 - sdv ENABLED SECONDARY c4 FAS3240 fas32400 -
Connaitre le nombre de lien FC pour un disque avec DMP :
# vxdmpadm getdmpnode nodename=sdk NAME STATE ENCLR-TYPE PATHS ENBL DSBL ENCLR-NAME ============================================================================== fas32400_0 ENABLED FAS3240 4 4 0 fas32400
# vxdmpadm getdmpnode NAME STATE ENCLR-TYPE PATHS ENBL DSBL ENCLR-NAME ============================================================================== cciss/c0d0 ENABLED OTHER_DISKS 1 1 0 Local_Server_Storage fas32400_0 ENABLED FAS3240 4 4 0 fas32400 fas32400_1 ENABLED FAS3240 4 4 0 fas32400 fas32400_2 ENABLED FAS3240 4 4 0 fas32400 fas32400_3 ENABLED FAS3240 4 4 0 fas32400 fas32400_4 ENABLED FAS3240 4 4 0 fas32400 fas32400_5 ENABLED FAS3240 4 4 0 fas32400 fas32400_6 ENABLED FAS3240 4 4 0 fas32400 fas32400_7 ENABLED FAS3240 4 4 0 fas32400 fas32400_8 ENABLED FAS3240 4 4 0 fas32400 fas32400_9 ENABLED FAS3240 4 4 0 fas32400
Connaître la correspondance des nom de disque VxVM et du nom système :
# vxdisk -e list DEVICE TYPE DISK GROUP STATUS OS_NATIVE_NAME ATTR cciss/c0d0 auto:none - - online invalid cciss/c0d0 - fas32400_0 auto:cdsdisk oradg101 oradg1 online thinrclm shared sdl tprclm fas32400_1 auto:cdsdisk oradg201 oradg2 online thinrclm shared sdm tprclm fas32400_2 auto:cdsdisk oradg301 oradg3 online thinrclm shared sdn tprclm fas32400_3 auto:cdsdisk - - online thinrclm sdo tprclm fas32400_4 auto:cdsdisk - - online thinrclm sdp tprclm fas32400_5 auto:cdsdisk - - online thinrclm sdq tprclm fas32400_6 auto:cdsdisk fas32400_6 ocrvotedg online thinrclm shared sdr tprclm fas32400_7 auto:cdsdisk fas32400_7 ocrvotedg2 online thinrclm shared sds tprclm fas32400_8 auto:cdsdisk fas32400_8 ocrvotedg3 online thinrclm shared sdt tprclm fas32400_9 auto:cdsdisk exploitdg01 exploitdg online thinrclm shared sdu tprclm
# vxdmpadm getsubpaths NAME STATE[A] PATH-TYPE[M] DMPNODENAME ENCLR-NAME CTLR ATTRS ================================================================================ cciss/c0d0 ENABLED(A) - cciss/c0d0 Local_Server_Storage c360 - sda ENABLED(A) PRIMARY fas32400_0 fas32400 c3 - sdk ENABLED SECONDARY fas32400_0 fas32400 c3 - sdl ENABLED(A) PRIMARY fas32400_0 fas32400 c4 - sdv ENABLED SECONDARY fas32400_0 fas32400 c4 - sdb ENABLED(A) PRIMARY fas32400_1 fas32400 c3 - sdm ENABLED(A) PRIMARY fas32400_1 fas32400 c4 - sdw ENABLED SECONDARY fas32400_1 fas32400 c3 - sdx ENABLED SECONDARY fas32400_1 fas32400 c4 - sdc ENABLED(A) PRIMARY fas32400_2 fas32400 c3 - sdn ENABLED(A) PRIMARY fas32400_2 fas32400 c4 - sdy ENABLED SECONDARY fas32400_2 fas32400 c3 - sdz ENABLED SECONDARY fas32400_2 fas32400 c4 - sdaa ENABLED SECONDARY fas32400_3 fas32400 c3 - sdab ENABLED SECONDARY fas32400_3 fas32400 c4 - sdd ENABLED(A) PRIMARY fas32400_3 fas32400 c3 - sdo ENABLED(A) PRIMARY fas32400_3 fas32400 c4 - sdac ENABLED SECONDARY fas32400_4 fas32400 c3 - sdad ENABLED SECONDARY fas32400_4 fas32400 c4 - sde ENABLED(A) PRIMARY fas32400_4 fas32400 c3 - sdp ENABLED(A) PRIMARY fas32400_4 fas32400 c4 - sdae ENABLED SECONDARY fas32400_5 fas32400 c3 -
...