Originally posted by: ColombianJoker
Simple. I use
-
extendvg rootvg hdiskY
for LV in $(lsvg -l rootvg | awk 'NR>2 {print $1}')
do
printf "$LV ... "
migratepv -l $LV hdiskX hdiskY
printf "\n"
done ;
bosboot -ad /dev/hdiskY
bootlist -m normal -o hdiskY
chpv -c hdiskX
Where:
extendvg includes a new hdiskY in rootvg
hdiskX is the disk in original rootvg
hdiskY is the new disk, or new LUN
migratepv is the real command working the data/volume migration
bosboot makes the new disk bootable (a disk containing a boot LV)
bootlist makes IBM Power firmware aware of a new bootable disk
chpv -c clears the boot section of old OS hdisk
#AIX-Forum