aix-logo

Suppression de liens dead sous powerpath – AIX 5.2

Après certains changements de configuration il apparaît parfois nécessaire de reconfigurer Powerpath afin de supprimer les liens dead pour ce faire voici la procédure :

Création des fichiers spéciaux :

toto@AIX52:/# cfgmgr

Découvertes des devices présentés par la baie symmetrix :

toto@AIX52:/logi/emc/SYMCLI/V5.5.1/bin# ./symcfg discover

This operation may take up to a few minutes. Please be patient…
toto@AIX52:/logi/emc/SYMCLI/V5.5.1/bin# ./sympd list

Symmetrix ID: 000*********

Device Name Directors Device
————————— ————- ————————————-
Cap
Physical Sym SA 😛 DA :IT Config Attribute Sts (MB)
————————— ————- ————————————-

/dev/rhdiskpower0 00C0 07B:1 01A:C2 RAID-5 N/Grp’d (M) RW 1031
/dev/rhdiskpower1 0A93 07B:1 02A:D2 RAID-5 N/Grp’d (M) RW 1547
/dev/rhdiskpower2 0A96 07B:1 16A:C1 RAID-5 N/Grp’d (M) RW 1547
/dev/rhdiskpower3 0A99 07B:1 15A:D1 RAID-5 N/Grp’d (M) RW 1547
/dev/rhdiskpower4 0B58 07B:1 01A:D1 RAID-5 N/Grp’d (M) RW 51199
/dev/rhdiskpower5 0B5E 07B:1 16A:D2 RAID-5 N/Grp’d (M) RW 51199
/dev/rhdiskpower6 0230 07B:1 01A:C4 RAID-5 N/Grp’d RW 516
/dev/rhdiskpower7 0232 07B:1 16A:D6 RAID-5 N/Grp’d RW 516
/dev/rhdiskpower8 0234 07B:1 01A:C6 RAID-5 N/Grp’d RW 516
/dev/rhdiskpower9 008F 07B:1 02A:D0 RAID-5 N/Grp’d RW 4266
/dev/rhdiskpower10 0090 07B:1 01A:C0 RAID-5 N/Grp’d RW 4266
/dev/rhdiskpower11 0A9C 07B:1 01A:D3 RAID-5 N/Grp’d RW 516
/dev/rhdiskpower12 0A9D 07B:1 15A:D3 RAID-5 N/Grp’d RW 516
/dev/rhdiskpower13 0A9E 07B:1 16A:D2 RAID-5 N/Grp’d RW 516
/dev/rhdiskpower14 08F4 07B:1 01D:D2 2-Way Mir N/Grp’d RW 3
/dev/rhdiskpower15 08F5 07B:1 02A:D2 2-Way Mir N/Grp’d RW 3
/dev/rhdisk2 0000 10B:1 02B:C0 2-Way Mir N/Grp’d VCM WD 45
/dev/rhdisk3 0000 07B:1 02B:C0 2-Way Mir N/Grp’d VCM WD 45
/dev/rhdisk4 00C0 07B:1 01A:C2 RAID-5 N/Grp’d (M) RW 1031
/dev/rhdisk5 0A93 07B:1 02A:D2 RAID-5 N/Grp’d (M) RW 1547
/dev/rhdisk6 0A96 07B:1 16A:C1 RAID-5 N/Grp’d (M) RW 1547
/dev/rhdisk7 0A99 07B:1 15A:D1 RAID-5 N/Grp’d (M) RW 1547
/dev/rhdisk8 0B58 07B:1 01A:D1 RAID-5 N/Grp’d (M) RW 51199
/dev/rhdisk9 0B5E 07B:1 16A:D2 RAID-5 N/Grp’d (M) RW 51199
/dev/rhdisk10 0230 10B:1 01A:C4 RAID-5 N/Grp’d RW 516
/dev/rhdisk11 0232 10B:1 16A:D6 RAID-5 N/Grp’d RW 516
/dev/rhdisk12 0234 10B:1 01A:C6 RAID-5 N/Grp’d RW 516
/dev/rhdisk13 008F 07B:1 02A:D0 RAID-5 N/Grp’d RW 4266
/dev/rhdisk14 0090 07B:1 01A:C0 RAID-5 N/Grp’d RW 4266
/dev/rhdisk15 0A9C 07B:1 01A:D3 RAID-5 N/Grp’d RW 516
/dev/rhdisk16 0A9D 07B:1 15A:D3 RAID-5 N/Grp’d RW 516
/dev/rhdisk17 0A9E 07B:1 16A:D2 RAID-5 N/Grp’d RW 516
/dev/rhdisk18 00C0 10B:1 01A:C2 RAID-5 N/Grp’d (M) RW 1031
/dev/rhdisk19 0A93 10B:1 02A:D2 RAID-5 N/Grp’d (M) RW 1547
/dev/rhdisk20 0A96 10B:1 16A:C1 RAID-5 N/Grp’d (M) RW 1547
/dev/rhdisk21 0A99 10B:1 15A:D1 RAID-5 N/Grp’d (M) RW 1547
/dev/rhdisk22 0B58 10B:1 01A:D1 RAID-5 N/Grp’d (M) RW 51199
/dev/rhdisk23 0B5E 10B:1 16A:D2 RAID-5 N/Grp’d (M) RW 51199
/dev/rhdisk24 008F 10B:1 02A:D0 RAID-5 N/Grp’d RW 4266
/dev/rhdisk25 0090 10B:1 01A:C0 RAID-5 N/Grp’d RW 4266
/dev/rhdisk26 0A9C 10B:1 01A:D3 RAID-5 N/Grp’d RW 516
/dev/rhdisk27 0A9D 10B:1 15A:D3 RAID-5 N/Grp’d RW 516
/dev/rhdisk28 0A9E 10B:1 16A:D2 RAID-5 N/Grp’d RW 516
/dev/rhdisk29 0230 07B:1 01A:C4 RAID-5 N/Grp’d RW 516
/dev/rhdisk30 0232 07B:1 16A:D6 RAID-5 N/Grp’d RW 516
/dev/rhdisk31 0234 07B:1 01A:C6 RAID-5 N/Grp’d RW 516
/dev/rhdisk32 08F4 07B:1 01D:D2 2-Way Mir N/Grp’d RW 3
/dev/rhdisk33 08F5 07B:1 02A:D2 2-Way Mir N/Grp’d RW 3
/dev/rhdisk34 08F4 10B:1 01D:D2 2-Way Mir N/Grp’d RW 3
/dev/rhdisk35 08F5 10B:1 02A:D2 2-Way Mir N/Grp’d RW 3

Découverte et auto-configuration de Powerpath :

toto@AIX52:/logi/emc/SYMCLI/V5.5.1/bin# powermt config

Vérification des liens « dead » :

toto@AIX52:/logi/emc/SYMCLI/V5.5.1/bin# dev=all | grep dead <
1 fcp2 hdisk24 FA 10bB active dead 0 0
1 fcp2 hdisk25 FA 10bB active dead 0 0
1 fcp2 hdisk18 FA 10bB active dead 0 0
1 fcp2 hdisk10 FA 10bB active dead 0 0
1 fcp2 hdisk11 FA 10bB active dead 0 0
1 fcp2 hdisk12 FA 10bB active dead 0 0
1 fcp2 hdisk34 FA 10bB active dead 0 0
1 fcp2 hdisk35 FA 10bB active dead 0 0
1 fcp2 hdisk19 FA 10bB active dead 0 0
1 fcp2 hdisk20 FA 10bB active dead 0 0
1 fcp2 hdisk21 FA 10bB active dead 0 0
1 fcp2 hdisk26 FA 10bB active dead 0 0
1 fcp2 hdisk27 FA 10bB active dead 0 0
1 fcp2 hdisk28 FA 10bB active dead 0 0
1 fcp2 hdisk22 FA 10bB active dead 0 0
1 fcp2 hdisk23 FA 10bB active dead 0 0

Suppression des liens dead :

toto@AIX52:/logi/emc/SYMCLI/V5.5.1/bin# powermt check

Warning: Symmetrix device path hdisk10 is currently dead.
Do you want to remove it (y/n/a/q)? y
Warning: Symmetrix device path hdisk11 is currently dead.
Do you want to remove it (y/n/a/q)? y
Warning: Symmetrix device path hdisk12 is currently dead.
Do you want to remove it (y/n/a/q)? y
Warning: Symmetrix device path hdisk18 is currently dead.
Do you want to remove it (y/n/a/q)? y
Warning: Symmetrix device path hdisk19 is currently dead.
Do you want to remove it (y/n/a/q)? y
Warning: Symmetrix device path hdisk20 is currently dead.
Do you want to remove it (y/n/a/q)? y
Warning: Symmetrix device path hdisk21 is currently dead.
Do you want to remove it (y/n/a/q)? y
Warning: Symmetrix device path hdisk22 is currently dead.
Do you want to remove it (y/n/a/q)? y
Warning: Symmetrix device path hdisk23 is currently dead.
Do you want to remove it (y/n/a/q)? y
Warning: Symmetrix device path hdisk24 is currently dead.
Do you want to remove it (y/n/a/q)? y
Warning: Symmetrix device path hdisk25 is currently dead.
Do you want to remove it (y/n/a/q)? y
Warning: Symmetrix device path hdisk26 is currently dead.
Do you want to remove it (y/n/a/q)? y
Warning: Symmetrix device path hdisk27 is currently dead.
Do you want to remove it (y/n/a/q)? y
Warning: Symmetrix device path hdisk28 is currently dead.
Do you want to remove it (y/n/a/q)? y
Warning: Symmetrix device path hdisk34 is currently dead.
Do you want to remove it (y/n/a/q)? y
Warning: Symmetrix device path hdisk35 is currently dead.
Do you want to remove it (y/n/a/q)? y

Relance de la découverte et de l’auto-configuration :

toto@AIX52:/logi/emc/SYMCLI/V5.5.1/bin# powermt config

Sauvegarde de la configuration :

toto@AIX52:/logi/emc/SYMCLI/V5.5.1/bin# powermt save

Vérification que les liens dead ont bien disparus :

toto@AIX52:/logi/emc/SYMCLI/V5.5.1/bin# dev=all | grep dead

Normalement la commande ne renvoi aucune sortie, les liens dead étant correctement supprimés et nettoyés.