Operating System - HP-UX
1833738 Members
2421 Online
110063 Solutions
New Discussion

Re: Recreating the Mirror

 
Leandro Lucena.
Occasional Contributor

Recreating the Mirror

Hi Budies,

I have a Jamaica with 6 disks between 2 K380. This Jamaica is part of a cluster and have 1 vg mounted on it. This vg have 5 lvols. Also, this 6 disks are with mirror (3 + 3)

Yesterday, one of this disks had trouble. So I replaced this defective disk.

I wanna know what commands I have to perform to solve this matter and back the system with redundance. Do the vgcfgrestore resolv it?

Best Regards for all! Leandro Lucena.




3 REPLIES 3
Patrick Wallek
Honored Contributor

Re: Recreating the Mirror

This is actually fairly easy:

# vgcfgrestore -n vg?? /dev/dsk/c?t?d0

Use the appropriate VG name and disk device name above.

# vgchange -a y vg??

# vgsync vg??


You should now be synced back up once the vgsync finishes.
Pete Randall
Outstanding Contributor

Re: Recreating the Mirror

In a nutshell, you run vgcfgrestore afainst the device that was replaced, then run vgchange -a y, then run vgsync to resync the mirrors.

Pete

Pete
Steve Steel
Honored Contributor

Re: Recreating the Mirror

Hi

http://www.hpworks.org.uk/newsletter/articles/lvm/

Nice info source

Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)