Disk replacement on AIX
This is documentation of root file system disk replacement
Unmirror failed disk (ex: hdisk2)
#unmirrorvg rootvg hdisk2
Logical volume has single copy so we need to remove it and recreate it on the good disk (if necessary)
#umount /var/adm/ras/livedump
#umount -f /var/adm/ras/livedump
#rmfs /var/adm/ras/livedump
#chpv -c hdisk2
#reducevg rootvg hdisk2
#rmdev -dl hdisk2
Ready for HW to be replaced
################ Prior to Physical Disk Removal
>>SERVER REPORTED MULTIPLE SC_DISK_ERR3 ON HDISK2.
>>REPLACE HDISK2 AT LOC:U789D.001.DQD09H5-P3-D3.
Steps to replace the faulty disk
#diag
#Task Selection
#Hot Plug Task
#SCSI and SCSI RAID Hot Plug Manager/RAID Hot Plug Devices
#Select adapter
#Commit
#Remove
Put in the new replaced disk
################ After Physical Disk Removal task is completed
#cfgmgr
#extendvg rootvg hdisk2
#mirrorvg rootvg hdisk2 ==> this command will take sometime to complete.
#bosboot -ad hdisk2
#bootlist -m normal hdisk1 hdisk2
#bootlist -m normal -o ==> to validate the bootlist.
################ Create dump on secondary disk
# mklv -t jfs2 -y livedump rootvg 1 hdisk2
# crfs -v jfs2 -d /dev/livedump -m /var/adm/ras/livedump -A yes