====== CLeaner des paths FAILED ====== scsimgr lun_map | grep disk | awk '{print $7}' > /tmp/disk.txt for i in `cat /tmp/disk.txt`; do scsimgr -p lun_map -D $i | grep FAILED | cut -d: -f3 | xargs -i -t rmsf -H {} ; done vxdctl enable ====== Lister les cartes fibres ====== root@parc2899:/$ ioscan -fnkCfc Class I H/W Path Driver S/W State H/W Type Description =========================================================================== fc 0 1/0/10/1/0/4/0 fcd CLAIMED INTERFACE HP A9784-60002 PCI/PCI-X Fibre Channel /dev/fcd0 fc 1 1/0/11/1/0/4/0 fcd CLAIMED INTERFACE HP A9784-60002 PCI/PCI-X Fibre Channel /dev/fcd1 ====== Afficher les infos ====== On utilise la commande //fcmsutil// avec le nom du device en paramètre (cf. ci-dessus). /opt/fcms/bin/fcmsutil /dev/fcd0 On peut voir d'autres infos avec : /opt/fcms/bin/fcmsutil /dev/fcd0 vpd N_Port Port World Wide Name ====== PowerPath & PVlink ====== Le nombre d'alternate PV est effectivement différent selon les VG. Ils sont utilisés lorsque PVlink est en charge du failover. Dans le cas de PowerPath, ils n'ont pas d'utilité car le driver PowerPath agit à une couche inférieur du LVM HP-UX. Quelquesoit le chemin utilisé par LVM, PowerPath redirigera les I/Os vers le chemin actif du disque. En clair, la définition d'alternate PV dans LVM n'est pas utilisé dans la gestion du failover par PowerPath. ====== Divers ====== ioscan -fuNC disk ioscan -fnClunpath scsimgr lun_map ====== scsimgr ====== * Serial number [root@ivm15 - /var/adm/syslog ] # scsimgr get_attr -D /dev/rdisk/disk640 -a wwid -a serial_number SCSI ATTRIBUTES FOR LUN : /dev/rdisk/disk640 name = wwid current = 0x60000970000292600696533030314346 default = saved = name = serial_number current = "6006961CF000" default = saved = [root@ivm15 - /var/adm/syslog ] # /opt/emcgrab/tools/bin/inq.HPUXIA64 -nodots -sym_wwn -showvol |grep disk640 /dev/rdisk/disk640 000292600696 001CF 60000970000292600696533030314346 [root@ivm15 - /var/adm/syslog ] # scsimgr lun_map -D /dev/rdisk/disk150 LUN PATH INFORMATION FOR LUN : /dev/rdisk/disk150 Total number of LUN paths = 4 World Wide Identifier(WWID) = 0x60000970000292600696533030373139 LUN path : lunpath119 Class = lunpath Instance = 119 Hardware path = 0/0/0/7/0/0/1.0x50000974080ae165.0x40f2000000000000 SCSI transport protocol = fibre_channel State = UNOPEN Last Open or Close state = ACTIVE LUN path : lunpath120 Class = lunpath Instance = 120 Hardware path = 0/0/0/7/0/0/1.0x50000974080ae161.0x40f2000000000000 SCSI transport protocol = fibre_channel State = UNOPEN Last Open or Close state = ACTIVE LUN path : lunpath121 Class = lunpath Instance = 121 Hardware path = 0/0/0/7/0/0/0.0x50000974080ae159.0x40f2000000000000 SCSI transport protocol = fibre_channel State = UNOPEN Last Open or Close state = ACTIVE LUN path : lunpath122 Class = lunpath Instance = 122 Hardware path = 0/0/0/7/0/0/0.0x50000974080ae15d.0x40f2000000000000 SCSI transport protocol = fibre_channel State = UNOPEN Last Open or Close state = ACTIVE [root@ivm07 - /var/adm/syslog ] # scsimgr get_info -C lunpath -I 47 STATUS INFORMATION FOR LUN PATH : lunpath47 Generic Status Information SCSI services internal state = UNOPEN Open close state = ACTIVE Protocol = fibre_channel EVPD page 0x83 description code = 1 EVPD page 0x83 description association = 0 EVPD page 0x83 description type = 3 World Wide Identifier (WWID) = 0x60000970000292600696533031333032 Total number of Outstanding I/Os = 0 Maximum I/O timeout in seconds = 30 Maximum I/O size allowed = 2097152 Maximum number of active I/Os allowed = 8 Maximum queue depth = 8 Queue full delay count = 0 Asymmetric state = NA Device preferred path = No Relative target port identifier = 147 Target port group identifier = NA