1751695 Members
5160 Online
108781 Solutions
New Discussion юеВ

LVM Root replace

 
bagek
Frequent Advisor

LVM Root replace

I have a rp2470 with a bad vg00 mirrored root disk. I shut the system dwon and replaced the failed disk. It got claimed. Should I use these commands to attach it to vg00? I've done it before but not on the root. HPUX 11.23 Thanks.

Replacing a bad disk with MIRROR:

# vgcfgrestore -n /dev/vgXX /dev/rdsk/cxtxdx
# vgchange -a y /dev/vgXX                       (to make v.group available)
# vgsync /dev/vgxx                              (resync logical volumnes)

2 REPLIES 2
Torsten.
Acclaimed Contributor

Re: LVM Root replace

Some steps are missing! Refer to When_Good_Disks_Go_Bad_WP
http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c01911837/c01911837.pdf

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!   
bagek
Frequent Advisor

Re: LVM Root replace

is this it? thanks. 

Replacing a bad BOOT disk with mirror:

# vgcfgrestore -n /dev/vgXX /dev/rdsk/cxtxdx
# vgchange -a y /dev/vgXX (to make v.group available)
# vgsync /dev/vgxx (resync logical volumnes)
# mkboot /dev/rdsk/cxtxdx
# mkboot -a "hpux -lq" /dev/rdsk/cxtxdx
# shutdown -yr 0 (Test the replaced disk)