Operating System - HP-UX
1752770 Members
4966 Online
108789 Solutions
New Discussion

Replacing mirror root drive

 
bagek
Frequent Advisor

Replacing mirror root drive

I have a rp5470 running 11.23. one of the root drives has failed. has anything changed since the doc "when good drives go bad" came out? here is what is what i did years ago

 

Replace failing drive online then . 

  # vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t0d0
  # mkboot /dev/rdsk/c2t0d0
  # mkboot -a  "hpux(;0)/stand/vmunix"  /dev/rdsk/c2t0d0

  # vgchange -a y /dev/vg00

  # vgsync /dev/vg00 

this works on my test rp7410 box running 11.11

Thanks

 

5 REPLIES 5
Patrick Wallek
Honored Contributor

Re: replacing mirror root drive

I see no reason to shut the system down.

 

You should be able to replace the drive, then start at the vgcfgrestore step and proceed.

 

 

Torsten.
Acclaimed Contributor

Re: replacing mirror root drive

If you patched your system within the last 5 or 6 years you should have the command

 

# pvchange -a n ...

 

available. So you can do a real online replacement according to the manual.


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
pradeep m
Respected Contributor

Re: replacing mirror root drive

Refer the below web link for LVM Online Disk Replacement Procedure whitepaper.

 

LVM Online Disk Replacement (LVM OLR)

Regards,
Pradeep

I am an HP Employee
A quick resolution to technical issues for your HP Enterprise products is just a click away HP Support Center Knowledge-base
See Self Help Post for more details


bagek
Frequent Advisor

Re: replacing mirror root drive

Replace failing drive online then . 

  # vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t0d0
  # mkboot /dev/rdsk/c2t0d0
  # mkboot -a  "hpux(;0)/stand/vmunix"  /dev/rdsk/c2t0d0

  # vgchange -a y /dev/vg00

  # vgsync /dev/vg00 

this works on my test rp7410 box running 11.11

 

should i be using this? i found it on an HP blog. ehat's the difference? thanks. 

#vgcfgrestore -n vg00 /dev/rdsk/c2t0d0 

#pvchange -a /dev/dsk/c2t0d0

#vchange -a y dev/dsk/c2t0d0

#mkboot /dev/rdsk/c2t0d0

#mkboot /-a "hpux" /dev/rdsk/c2t0d0

Torsten.
Acclaimed Contributor

Re: replacing mirror root drive

You should use this, nothing else:

 

 

When_Good_Disks_Go_Bad_WP
http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c01911837/c01911837.pdf

 

 

Without doing "pvchange -a n ..." the command "vgcfgrestore ..." will fail!


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!