Product data

Chapter 3. Standalone SCSI rootvg to virtual SCSI 59
7. Use the AIX migratepv command to move the contents of the local SAS/SCSI
disk to the SAN disk. If you are migrating disks on a one-for-one basis, the
command shown below works well. If you have multiple local hard disks in
use then it is best to use the migratepv command with the -l option and
migrate each logical volume in turn:
# migratepv hdisk0 hdisk8
0516-1011 migratepv: Logical volume hd5 is labeled as a boot logical
volume.
0516-1246 migratepv: If hd5 is the boot logical volume, please run 'chpv -c
hdisk0'
as root user to clear the boot record and avoid a potential boot
off an old boot image that may reside on the disk from which this
logical volume is moved/removed.
migratepv: boot logical volume hd5 migrated. Please remember to run
bosboot, specifying /dev/hdisk8 as the target physical boot device.
Also, run bootlist command to modify bootlist to include
/dev/hdisk8.
8. You can use the AIX lspv command to ensure that every logical volume has
moved off the source disk and is now located on the SAN disk:
# lspv -l hdisk0
#
# lspv -l hdisk8
hdisk8:
LV NAME LPs PPs DISTRIBUTION MOUNT POINT
lg_dumplv 16 16 00..16..00..00..00 N/A
livedump 1 1 00..01..00..00..00 /var/adm/ras/livedump
hd11admin 1 1 00..00..01..00..00 /admin
hd8 1 1 00..00..01..00..00 N/A
hd6 2 2 00..02..00..00..00 N/A
hd2 8 8 00..00..08..00..00 /usr
hd4 1 1 00..00..01..00..00 /
hd3 1 1 00..00..01..00..00 /tmp
hd9var 2 2 00..00..02..00..00 /var
hd10opt 2 2 00..00..02..00..00 /opt
hd1 1 1 00..00..01..00..00 /home
hd5 1 1 01..00..00..00..00 N/A
#
Note: At this stage in the migration the original hdisk is no longer bootable.
If you decide to cancel the migration you can perform the migratepv
command with the original hdisk as the target disk and your SAN disk as
the source.