host01
Scan the bus for new devices, and add them into EMC PowerPath
lspv > /tmp/lspv.1 ; emc_cfgmgr ; lspv > /tmp/lspv.2
powermt config ; lspv > /tmp/lspv.3
host01:~# diff /tmp/lspv.1 /tmp/lspv.3 |grep hdiskpower
> hdiskpower15 none None
> hdiskpower16 none None
> hdiskpower17 none None
> hdiskpower18 none None
> hdiskpower19 none None
> hdiskpower20 none None
> hdiskpower21 none None
> hdiskpower22 none None
> hdiskpower23 none None
> hdiskpower24 none None
> hdiskpower25 none None
> hdiskpower26 none None
> hdiskpower27 none None
> hdiskpower28 none None
> hdiskpower29 none None
> hdiskpower30 none None
> hdiskpower31 none None
> hdiskpower32 none None
A quick count on how many devices were added into the system, and powerpath.
host01:~# diff /tmp/lspv.1 /tmp/lspv.3 |grep hdiskpower | wc -l
18
Set the system up with a higher queue depth and max transfer rate (for performance during migration).
As per IBM
host01:~# diff /tmp/lspv.1 /tmp/lspv.3 |grep hdiskpower |cut -c 3-14 | awk {'print "chdev -l " $1 " -a queue_depth=32 -a max_transfer=0x100000} | sh
hdiskpower15 changed
hdiskpower16 changed
hdiskpower17 changed
hdiskpower18 changed
hdiskpower19 changed
hdiskpower20 changed
hdiskpower21 changed
hdiskpower22 changed
hdiskpower23 changed
hdiskpower24 changed
hdiskpower25 changed
hdiskpower26 changed
hdiskpower27 changed
hdiskpower28 changed
hdiskpower29 changed
hdiskpower30 changed
hdiskpower31 changed
hdiskpower32 changed
Add disks into the volume group.
host01:~# extendvg vg01 hdiskpower15 hdiskpower16 hdiskpower17 hdiskpower18
0516-1254 extendvg: Changing the PVID in the ODM.
0516-1254 extendvg: Changing the PVID in the ODM.
0516-1254 extendvg: Changing the PVID in the ODM.
0516-1254 extendvg: Changing the PVID in the ODM.
Allocates the LVs across maximum number of PVs. (tail command should be tailored depending on # of LVs)
host01:~# lsvg -l vg01 | tail -6 | grep -v loglv00 | awk {'print "/usr/sbin/chlv -e'x' " $1'} |sh
Migrate PVs to the different disks.
host01:~# /usr/bin/time migratepv hdiskpower0 hdiskpower15 hdiskpower16 hdiskpower17 hdiskpower18
Real 518.55
User 2.63
System 11.59
host01:~# /usr/bin/time migratepv hdiskpower1 hdiskpower15 hdiskpower16 hdiskpower17 hdiskpower18
Remove the disks from the VG, and then remove them from the system.
host01:~# reducevg vg01 hdiskpower0 hdiskpower1
UPDATE:
The hdiskpower devices are basically a container for usually two or more hdisks. Prior to removing the hdiskpower devices, you should see what hdisks they contain. Then remove the hdiskpower devices and the affected hdisks.
host01:~# powermt -display dev=hdiskpower0
==============================================================================
--------------- Host --------------- - Stor - -- I/O Path -- -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
1 fscsi2 hdisk30 FA 11eA active alive 0 0
1 fscsi2 hdisk35 FA 7eA active alive 0 0
2 fscsi3 hdisk3 FA 10eA active alive 0 0
2 fscsi3 hdisk8 FA 6eA active alive 0 0
host01:~# rmdev -dl hdiskpower0
hdiskpower0 deleted
host01:~# rmdev -dl hdisk30 hdisk35 hdisk3 hdisk8
host01:~# powermnt -display dev=hdiskpower1
==============================================================================
--------------- Host --------------- - Stor - -- I/O Path -- -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
1 fscsi2 hdisk31 FA 11eA active alive 0 0
1 fscsi2 hdisk36 FA 7eA active alive 0 0
2 fscsi3 hdisk4 FA 10eA active alive 0 0
2 fscsi3 hdisk9 FA 6eA active alive 0 0
host01:~# rmdev -dl hdiskpower1
hdiskpower1 deleted
host01:~# rmdev -dl hdisk31 hdisk36 hdisk4 hdisk9
Continue for rest of the VG’s.
Migration Completed.