AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
  • 1.  How to replace failed PV ?

    Posted Tue June 29, 2010 01:43 AM

    Originally posted by: SystemAdmin


    Hi All,

    How to replace failed PV ?
    Anybody have good book or tutorials? please suggest i have raise change to replace hdisk , i am doing this first time . please help me.


  • 2.  Re: How to replace failed PV ?

    Posted Tue June 29, 2010 12:07 PM

    Originally posted by: pumpkinhead


    Just check for the following
    fir determine the volume group of the disk. login as root and type lsvg
    this will output all the VGs in your system
    then do lsvg -p vgname for all vgs in your system till you get the faulty pv name
    then do a lspv -l hdiskx where x is the number for faulty drive . now move all the data from faulty pv using migratepv command. remove the disk from vg using reducevg vgname hdiskx
    then you can safely remove the faulty drive


  • 3.  Re: How to replace failed PV ?

    Posted Wed June 30, 2010 04:16 AM

    Originally posted by: SystemAdmin


    Thanks Friends,

    Rootvg is always mirrored for redundancy of data i am expecting some good books for PV issues.


  • 4.  Re: How to replace failed PV ?

    Posted Tue July 06, 2010 04:57 PM

    Originally posted by: srinivas_AIX


    Follow the below steps,

    Before doing this know the VG of that PV by using- lspv <pvname> command

    1) First unmirror the VG: unmirrorvg <vgname>
    2) Reduce the PV from the VG: reducevg vgname pvname
    3) clear the boot record: chpv -c <pvname>
    4) Remove the disk definition from ODM: rmdev -dl <pvname>
    5) Finally, remove the failed hard disk/PV manually from the server.

    I hope this helps you.


  • 5.  Re: How to replace failed PV ?

    Posted Thu July 08, 2010 03:24 AM

    Originally posted by: Renaud


    Hello,

    I suggest to you, to use the diag tool, in order to replace a failed PV.
    Once your disk is removed from your VG, use smitty diag and use the hot plug task to remove the failed disk and regonize the new one.