Operating System - HP-UX
1753867 Members
7297 Online
108809 Solutions
New Discussion

Failed Primary Disk Mirror Steps on RP4440

 
Sharjeel Saleem
Regular Advisor

Failed Primary Disk Mirror Steps on RP4440

HI All,

 

I am going to replace failed mirror disk of RP4440 by following procedure. Can aybody validate this please.

 

==============================================================================

Backup below files prior the activity (Just for safer side)

1.cp /etc/lvmtab /etc/lvmtab.bkp
2.cp /etc/lvmconf/vg00.conf /tmp/vg00.conf.bkp

================================================================================

1. Remove the failed disk and replace it with new disk. Wait for sometime (2-3mins).
2. Check ioscan -fnC disk command to verify if the disk is getting detected. If not run "insf -e" and then check.
3. Once the disk is detected verify it with diskinfo command - to confirm if its shows correct size.

4.Restore the LVM reserved areas.
# vgcfgrestore –n vg00 /dev/rdsk/c2t0d0

4. Repopulate the LIF area.
# mkboot /dev/rdsk/c2t0d0

5. Change the AUTO file contents to hpux –lq
# mkboot –a “hpux –lq” /dev/rdsk/c2t0d0

6. Reactivate the VG to recognize the recovered disk
# vgchange –a y vg00

7. Resynchronize mirrors
# vgsync vg00

8.Check vgdisplay and confirm all lvols are in sync.
# vgdisplay –v /dev/vg00

9 Update BDRA

# lvlnboot -R

Regards, Sharjeel

 

 

2 REPLIES 2
Timothy P. Jackson
Valued Contributor

Re: Failed Primary Disk Mirror Steps on RP4440

Hi Sharjeel,

 

You may need to activate the PV before it will accept the vgcfgrestore...

 

3. Once the disk is detected verify it with diskinfo command - to confirm if its shows correct size.

4.Restore the LVM reserved areas.
# vgcfgrestore –n vg00 /dev/rdsk/c2t0d0

 

3.5 do a pvdisplay and make sure the physical volume is active

 

 

Also, check and make sure the dump,swap are correct

 

lvlnboot -v

 

 

A good resource for replacing any disk is "When Good Disks Go Bad" it will guide you through almost any disk replacement.

 

Hope you get this in time.

 

Tim

Bill Hassell
Honored Contributor

Re: Failed Primary Disk Mirror Steps on RP4440

Before you remove the disk, take the disk out of active LVM service with:

 

pvchange -a n /dev/dsk/c2t0d0

 

If your version of pvchange does not have -a as an option, you are way behind on patches.



Bill Hassell, sysadmin