La procédure ci-dessous permet de passer d'un système avec utilisation MPIO sur disques redondant vers un système contrôlé par PowerPATH.
# lspath
Enabled hdisk0 fscsi0
Enabled hdisk1 fscsi0
Enabled hdisk0 fscsi1
Enabled hdisk1 fscsi1
# lsdev -Cc disk
hdisk0 Available C4-T1-01 MPIO Other FC SCSI Disk Drive
hdisk1 Available C4-T1-01 MPIO Other FC SCSI Disk Drive
Récupération des pilotes EMC et PowerPath
-rw-r----- 1 root system 57753600 Feb 20 11:41 EMC.AIX.5.3.0.7
-rw-r----- 1 root system 69120000 Feb 20 11:41 EMCpower_install
-rw-r----- 1 root system 45102 Feb 20 11:41 README.5307
Désactiver les paths pour ne laisser qu’un seul chemin :
All Paths |
| Enabled hdisk0 0 fscsi0 5006048c52a79f98,b1000000000000
| Enabled hdisk0 1 fscsi1 5006048c52a79f97,b1000000000000
| Enabled hdisk1 0 fscsi0 5006048c52a79f98,ef000000000000
| Enabled hdisk1 1 fscsi1 5006048c52a79f97,ef000000000000
# lspath
Enabled hdisk0 fscsi0
Disabled hdisk1 fscsi0
Disabled hdisk0 fscsi1
Disabled hdisk1 fscsi1
Installation des Pilotes EMC et Powerpath:
# smitty installp # depuis le répertoire des filesets.
geninstall -I "a -cgNQqwX -J" -Z -d . -f File 2>&1
File:
EMC.CLARiiON.aix.rte 5.3.0.7
EMC.CLARiiON.fcp.rte 5.3.0.7
EMC.Symmetrix.aix.rte 5.3.0.7
EMC.Symmetrix.fcp.rte 5.3.0.7
I:EMCpower.base 5.5.0.5
I:EMCpower.encryption 5.5.0.5
I:EMCpower.migration_enabler 5.5.0.5
I:EMCpower.mpx 5.5.0.5
…
+-----------------------------------------------------------------------------+
Installing Software...
+-----------------------------------------------------------------------------+
installp: APPLYING software for:
EMCpower.base 5.5.0.5
EMCpower.mpx 5.5.0.5
EMCpower.migration_enabler 5.5.0.5
EMCpower.encryption 5.5.0.5
. . . . . << Copyright notice for EMCpower >> . . . . . . .
Copyright (c) 2012 EMC Corporation. All rights reserved.
All trademarks used herein are the property of their respective owners.
License registration is NOT required to manage the CLARiiON AX series array.
Build 001
. . . . . << End of copyright notice for EMCpower >>. . . .
0518-307 odmdelete: 0 objects deleted.
powerpath0 created
Filesets processed: 4 of 8 (Total time: 14 secs).
installp: APPLYING software for:
EMC.Symmetrix.aix.rte 5.3.0.7
EMC.Symmetrix.fcp.rte 5.3.0.7
EMC.CLARiiON.aix.rte 5.3.0.7
…
installp: bosboot verification starting...
installp: bosboot verification completed.
installp: bosboot process starting...
bosboot: Boot image is 51228 512 byte blocks.
0503-292 This update will not fully take effect until after a
system reboot.
* * * A T T E N T I O N * * *
System boot image has been updated. You should reboot the
system as soon as possible to properly integrate the changes
and to avoid disruption of current functionality.
installp: bosboot process completed.
+-----------------------------------------------------------------------------+
Summaries:
+-----------------------------------------------------------------------------+
Installation Summary
--------------------
Name Level Part Event Result
-------------------------------------------------------------------------------
EMCpower.base 5.5.0.5 USR APPLY SUCCESS
EMCpower.mpx 5.5.0.5 USR APPLY SUCCESS
EMCpower.migration_enabler 5.5.0.5 USR APPLY SUCCESS
EMCpower.encryption 5.5.0.5 USR APPLY SUCCESS
EMC.Symmetrix.aix.rte 5.3.0.7 USR APPLY SUCCESS
EMC.Symmetrix.fcp.rte 5.3.0.7 USR APPLY SUCCESS
EMC.CLARiiON.aix.rte 5.3.0.7 USR APPLY SUCCESS
EMC.CLARiiON.fcp.rte 5.3.0.7 USR APPLY SUCCESS
EMC.Symmetrix.aix.rte 5.3.0.7 ROOT APPLY SUCCESS
EMC.Symmetrix.fcp.rte 5.3.0.7 ROOT APPLY SUCCESS
EMC.CLARiiON.aix.rte 5.3.0.7 ROOT APPLY SUCCESS
EMC.CLARiiON.fcp.rte 5.3.0.7 ROOT APPLY SUCCESS
File /etc/inittab has been modified.
REBOOT du serveur.
Après reboot, les disques ont changé:
# lspv
hdisk0 00c9abc29c334bae rootvg active
hdisk1 none None
hdisk2 00c9abc29c334bae rootvg active
hdisk3 none None
hdiskpower0 none None
Lancer ‘pprootdev on’ pour un disque en BOS.
# pprootdev on
bosboot: Boot image is 55324 512 byte blocks.
PowerPath boot is enabled for the next system boot.
# lspath
# lspv
hdisk0 00c9abc29c334bae rootvg active
hdisk1 none None
hdisk2 00c9abc29c334bae rootvg active
hdisk3 none None
hdiskpower0 none None
# lsdev -Cc disk
hdisk0 Available C4-T1-01 EMC Symmetrix FCP RDF1 Raid5 # Chemin 1 vers disque de données
hdisk1 Available C4-T1-01 EMC Symmetrix FCP Raid1 # Disque de management( Taille=2)
hdisk2 Available C5-T1-01 EMC Symmetrix FCP RDF1 Raid5 # Chemin 2 vers disque de données
hdisk3 Available C5-T1-01 EMC Symmetrix FCP Raid1 # Disque de management( Taille=2)
hdiskpower0 Available C5-T1-01 PowerPath Device
Puis rebooter pour prendre en compte le passage sur hdiskpower.
# lspath # <<< Il n’y a plus d’utilisation de MPIO.
# lsdev -Cc disk
hdisk0 Available C4-T1-01 EMC Symmetrix FCP RDF1 Raid5
hdisk1 Available C4-T1-01 EMC Symmetrix FCP Raid1
hdisk2 Available C5-T1-01 EMC Symmetrix FCP RDF1 Raid5
hdisk3 Available C5-T1-01 EMC Symmetrix FCP Raid1
hdiskpower0 Available C5-T1-01 PowerPath Device
# lspv
hdisk0 none None
hdisk1 none None
hdisk2 none None
hdisk3 none None
hdiskpower0 00c9abc29c334bae rootvg active
# lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 1 1 closed/syncd N/A
hd6 paging 8 8 1 open/syncd N/A
hd8 jfs2log 1 1 1 open/syncd N/A
hd4 jfs2 5 5 1 open/syncd /
hd2 jfs2 38 38 1 open/syncd /usr
hd9var jfs2 8 8 1 open/syncd /var
hd3 jfs2 32 32 1 open/syncd /tmp
hd1 jfs2 1 1 1 open/syncd /home
hd10opt jfs2 7 7 1 open/syncd /opt
hd11admin jfs2 2 2 1 open/syncd /admin
lg_dumplv sysdump 64 64 1 open/syncd N/A
livedump jfs2 4 4 1 open/syncd /var/adm/ras/livedump
# lsvg -p rootvg
rootvg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdiskpower0 active 539 368 107..32..13..108..108 # C’est bien le hdiskpower qui est défini.
# powermt display dev=all
Pseudo name=hdiskpower0
Symmetrix ID=000290100910
Logical device ID=051A
state=alive; policy=BasicFailover; priority=0; queued-IOs=0;
==============================================================================
--------------- Host --------------- - Stor - -- I/O Path -- -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
0 fscsi0 hdisk0 FA 9dA active alive 0 0
1 fscsi1 hdisk2 FA 8dA unlic alive 0 0
NOTE : IL FAUT ACTIVER LES LICENCES POUR AVOIR LES 2 CHEMINS ACTIFS.
#
# emcpreg -add B6P6-MB4K-T9DB-0000-MP9P-KYYB
1 key(s) successfully added.
# powermt config # << permet de reconfigurer la redondance.
# powermt display dev=all
Pseudo name=hdiskpower0
Symmetrix ID=0002901910
Logical device ID=051A
state=alive; policy=SymmOpt; priority=0; queued-IOs=0;
==============================================================================
--------------- Host --------------- - Stor - -- I/O Path -- -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
0 fscsi0 hdisk0 FA 9dA active alive 0 0
1 fscsi1 hdisk2 FA 8dA active alive 0 0