Wednesday, October 10, 2012

How to replace the faulty drive on AIX LVM


Steps to replace the hdisk25 ( pdisk21) on AIX



Steps to Verify the alert are :



Errors observed in errpt

 Actual Steps for the Disk Replacement.


  1. Remove the 3rd copy


rmlvcopy  <volumeA> 2 hdisk25

rmlvcopy <volumeB> 2 hdisk25

rmlvcopy  <volumeC> 2 hdisk25


  1. Remove the disk from the VG


reducevg <VolumeC> hdisk25


  1. Set the Identifier for on the disk to be replaced


smitty diag -à Current Shell Diagnostics à Task Selection(Diagnostics,Advanced Diagnostics)—A

AàSSA Service Aids-àSMIT SSA disksàSSA Physical Disks àIdentify an SSA Physical Disk àChoose “pdisk21àFlash Disk Identification light


  1. Remove the disk from the OS


rmdev –Rdl hdisk25

rmdev –Rdl pdiskXX


  1. Verify that the disk is completely removed


collect lspv and lsdev -Cc disk output





Engineer will replace the disk.


  1. Add the new disk to the ODM


cfgmgr –v


  1. Verify the disk. ( Hopefully it’s the same number hdisk25 ;-) )


lspv




  1. Add the disk to the VG


extendvg <volumeC> hdisk25


  1. Create the 3rd copy of same LVs on hdisk??



mklvcopy <volume> 3 hdisk?? ( hopefully the same disknumber)

mklvcopy <volume> 3 hdisk??

mklvcopy <volume> 3 hdisk??


  1. Sync the VG


Syncvg –p hdisk??

Or

syncvg –v <vg>



  1. To check the sync status


lsvg –l <vg>

lsvg <vg>





No comments:

Post a Comment