Operating System - HP-UX
1834798 Members
2500 Online
110070 Solutions
New Discussion

Re: What is the best procedure for remplacing a disk under LVM ?

 
SOLVED
Go to solution
Jej'
New Member

What is the best procedure for remplacing a disk under LVM ?

For remplacing a NON-Boot disk without LVM mirroring, a Non-Boot disk with LVM mirroring or a boot disk with LVM mirroring, what is the best procedure ?
Is there a probleme if I use "vgcfgrestore" ? I' ve checked before the /etc/lvmconf/ directory to see if the files vg**.conf were there.
Another way is to use "lvreduce", "vgreduce", "vgextend", "lvextend". What is the best procedure?
Thanks.
8 REPLIES 8
S.K. Chan
Honored Contributor
Solution

Re: What is the best procedure for remplacing a disk under LVM ?

Attached is the procedure ..

good luck
Patrick Wallek
Honored Contributor

Re: What is the best procedure for remplacing a disk under LVM ?

My recommendaitons for replacing disks within LVM:

1) Non-Boot disk without mirroring:
vgcfgrestore -n vg_name /dev/rdsk/c?t?d?
Now restore your data. Since it wasn't mirrored, you have no data left.

2) Non-Boot disk with mirroring
vgcfgrestore -n vg_name /dev/rdsk/c?t?d?
vgsync -- This will resync your mirrors, no restore needed

3) Boot disk with mirroring
vgcfgrestore -n vg_name /dev/rdsk/c?t?d?
Use mkboot commands to make the disk bootable again
vgsync to resync the mirrors

4) Boot disk without mirroring
I hope you have an Ignite/UX backup handy. You're gonna need it.

Keep in mind when replacing disks that some may be hot swappable and some may not be. If they are not and the disk you are replacing is a boot disk, you may need to boot off the alternate boot disk, assuming they are mirrored.


A. Clay Stephenson
Acclaimed Contributor

Re: What is the best procedure for remplacing a disk under LVM ?

Hi:

The following is a thread posted to the forums that discussed this issue:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0xa601670142b2d5118ff10090279cd0f9,00.html

I especially reccomend that you download the Document ID "KBAN00000347"; it fully discusses are the possible combinations and permutations.

Clay
If it ain't broke, I can fix that.
James R. Ferguson
Acclaimed Contributor

Re: What is the best procedure for remplacing a disk under LVM ?

Hi:

The Technical Knowledge Base contains an excellent docuement detailing the appropriate procedures for a variety of circumstances. See document #KBAN00000347 (attached).

Regards!

...JRF...
Craig Rants
Honored Contributor

Re: What is the best procedure for remplacing a disk under LVM ?

Attached are some processes I use. Seem to work for me.

Craig
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Craig Rants
Honored Contributor

Re: What is the best procedure for remplacing a disk under LVM ?

One more doc...
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Sanjay_6
Honored Contributor

Re: What is the best procedure for remplacing a disk under LVM ?

dhanish
Regular Advisor

Re: What is the best procedure for remplacing a disk under LVM ?

Thanks to all you replies.I will try this.

thnks
Never Say Die