How To Replace A Disk in IBM AIX
How To Replace A Disk in IBM AIX
# lsvg -p rootvg
rootvg:
* Here we make sure that both disks are assigned to the volume group
(rootvg)
# lsvg –l rootvg
rootvg:
# lslv -l dumplv
dumplv:N/A
# Rmdev -l hdisk1 –d
*Before you power down, it’s a good idea to check the system to make sure
it will boot from the good drive. Do that by performing;
# Bootinfo -b
hdisk1
*This tells us from which drive it was last booted up. We want to change
this so that it boots from new drive.
# bootlist –m normal –o
NOW WE CAN POWER DOWN THE BOX AND REPLACE THE DRIVE
Once disk has been replaced, power up the server. Once at command
prompt, run;
# Cfgmgr
This will install the new device and allow the OS to see it.
*Make sure that the OS says it’s available. If it is, we can assign it to a
volume group.
*This will assign it a PVID and assign it to the volumegroup rootvg to make
it available for use. Now we can mirror;
# Mirrorvg rootvg
*This will take some time as it’s taking all data now on hdisk0 and making a
copy to hdisk1.
# lsvg -p rootvg
rootvg:
*Once it’s mirrored , we can check that it’s assigned to rootvg by doing the
above. We can also check that there are mirror copies;
# lsvg -l rootvg
rootvg:
# bosboot –a
# bootlist –m normal –o