1832592 Members
2929 Online
110043 Solutions
New Discussion

Re: pvchange ?

 
SOLVED
Go to solution
Jerry_109
Super Advisor

pvchange ?

Hello All,

Just wanted to know if any of you have used this pvchange to replace a mirrored root drive ? From what I heard/read it's simple as :
1) pvchange -a N /dev/dsk/
2) replace drive
3) pvchange -a y /dev/dsk/

no vgchange, vgcfgrestore , vgsync
needed.

##########################################
# uname -a ; model
HP-UX hohp231 B.11.11 U 9000/800/L3000-7x
######################################

10 REPLIES 10
Robert-Jan Goossens
Honored Contributor
Solution

Re: pvchange ?

Hi Jerry,

http://www.docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf

Check if you have the OLR patches installed

# swlist | grep OLR

chapter 6

# pvchange -a N pvname
# vgcfgrestore â n vgname pvname
# pvchange -a Y pvname

Regards,
Robert-Jan
Sandman!
Honored Contributor

Re: pvchange ?

Imho that procedure is specific only to the failed drive. Even if you decide to use pvchange instead of "vgcfgrestore followed by vgchange followed by vgsync" you would still need to restore the LVM headers on the new drive; re-attach it to vg00 w/ either pvchange or vgchange and synchronize the mirrors with vgsync.
Jerry_109
Super Advisor

Re: pvchange ?

Thanks for the doc. My system does not locate OLR with :
# swlist | grep OLR

but does find it with
# swlist -l product | grep OLR
PHKL_34518 1.0 LVM Cumulative Patch; LVM OLR; SLVM 16 Node

Thanks.
James R. Ferguson
Acclaimed Contributor

Re: pvchange ?

Hi Jerry:

The requisite patches are documented in the "When Good Disks Go Bad" whitepaper cited by Robert-Jan.

You can see from that document that you need PHKL_31216 and PHCO_30698, which have been superseded by PHKL_35970 and PHCO_35955 (or PHCO_34196 if you wish). A reboot will be required to install these.

Regards!

...JRF...
Torsten.
Acclaimed Contributor

Re: pvchange ?

"no vgchange, vgcfgrestore , vgsync
needed"

Where did you read this?
It's not true.

You need at least to restore the LVM config to the disk (vgcfgrestore) and restore the boot files (mkboot).

Complete procedures up to 11.23 are here:

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.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!   
Torsten.
Acclaimed Contributor

Re: pvchange ?

BTW, "pvchange" is intended to change the availability of the disk, it is NOT a command to automate the exchange process.

See the man page

# man pvchange
or
http://docs.hp.com/en/B2355-60130/pvchange.1M.html

"...
Attaching and Detaching Physical Volumes

Detaching a physical volume makes the data on that disk unavailable
..."


A disk must be detached from LVM access - otherwise 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!   
Jerry_109
Super Advisor

Re: pvchange ?

I have finally read the doc's. Thank you all for your support. There are no short cuts to executing a task correctly.

Sincerely Yours,

Jerry Sims
Torsten.
Acclaimed Contributor

Re: pvchange ?

Now please read this:
http://forums11.itrc.hp.com/service/forums/helptips.do?#33

Have fun!

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!   
Jerry_109
Super Advisor

Re: pvchange ?

Hello All,

I submitted your points, but I'm not sure if you received them? My system seems to be very slow, and somewhat sparatic at times.
Torsten.
Acclaimed Contributor

Re: pvchange ?

Everything received - thank you.
See you on your next thread ...

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!