Originally posted by: SystemAdmin
Now that the mirror break is done, here are two quick ways that you could use to push the PPs around (using your example disks/lv):
1) Use 'migratepv' to move the content from one drive to another, like:
migratepv vpath49 vpath36
This command will likely fill in towards the head of the disk, and may change the position of the PPs on the new disk relative to the old disk. This might matter, it might not. If it does matter, you can do a little more leg (or script) work and use...
2) the 'migratelp' command to move each LP from PP1(on vpath49) to PP2(on vpath36).
If your output (post mirror split) is something like the sample output:
# lslv -m P03datap4l2lv P03datap4l2lv:N/A LP PP1 PV1 PP2 PV2 PP3 PV3 0001 0146 vpath49 0002 0147 vpath49 0003 0148 vpath49 0004 0149 vpath49 ...
Your commands would be:
migratelp P03datap4l2lv/1 vpath36/146 migratelp P03datap4l2lv/2 vpath36/147 migratelp P03datap4l2lv/3 vpath36/148 migratelp P03datap4l2lv/4 vpath36/149 ...
This would preserve the same shape/location of the data on the LUN as it had pre-split.
#AIX-Forum