I'm looking for a way to upgrade disks containing my rootvg volume group on the fly without a reboot.
Currently, rootvg contains 2x74gb drives in RAID 10. What I want to do is swap them out one-by-one with 146gb drives then expand the volume group. I've done this with a test system before, and the new drives are recognized as being the larger capacity but I can't extend the volume group to the extra size. lsvg rootvg still shows the vg as being 74gb.
I've tried simply using 'chvg -g rootvg', but I get the following error...
# chvg -g rootvg
0516-1382 chvg: Volume group is not changed. None of the disks in the
volume group have grown in size.
0516-732 chvg: Unable to change volume group rootvg.
#
I can't seem to find a way to extend the actual RAID volume past the original 74gb.
spare slots to put new ones in that you can boot from
current disks are hdisk0 & hdisk1
If you insert a new disk and run cfgmgr -S does it discover it? Let's refer to these as hdisk100 and 101.
extendvg rootvg hdisk100 hdisk101
migratepv hdisk0 hdisk100
bosboot -ad hdisk100
bootlist -o -m normal hdisk1 hdisk100 # Just in case we lose the other disk at the wrong moment.
migratepv hdisk1 hdisk101
bosboot -ad hdisk101
bootlist -o -m normal hdisk100 hdisk101
reducevg rootvg hdisk0 hdisk1
I hope that this helps
Robin
Liverpool/Blackburn
UK
---------- Post updated at 03:54 PM ---------- Previous update was at 03:52 PM ----------
Oh great, RAID disks. What do you see as rootvg from AIX then? If it's a single protected disk, then it's all handled by the RAID manager and it's not an AIX question.
There won't be available drive slots on the systems I plan on doing this on. This is why I was hoping it be as easy as swapping out the drives in the array one-by-one.
Because if this is the case what I submitted in the first place is valid... start by adding ONE new disk to rootvg, and get it to be accepted (because sure you will have to mody PP size for the group) then just do a mirrovg...once done split the mirror and remove the other 72GB disk - not physically: Properly using appropraite commands so you can add your second 144GB disk to the VG and mirror again...