1837208 Members
2553 Online
110115 Solutions
New Discussion

VG recup

 
SOLVED
Go to solution
Alessio_6
Occasional Advisor

VG recup

Hello everybody!
Before boot disk crashed we had a J5600 with two disks and two vgs, one per disk (so, vg01 for the second disk).
The boot disk was replaced and we reinstalled the os. I was wandering if a recup of vg01 would be possible. Can you help us?

best regards,
Alessio
3 REPLIES 3
Helen French
Honored Contributor

Re: VG recup

You can do a vgscan and vgimport:

# ioscan -fnC disk ( find out the SCSI device file of second disk)
# vgscan -a (will tell you about the second disk which has LVM information on that)
# mkdir /dev/vg01
# mknod /dev/vg01/group c 64 0x010000
# vgimport /dev/vg01 /dev/dsk/cxtydz ( import the disk in to vg01)
# vgchange -a y /dev/vg01
# strings /etc/lvmtab (checking)
# vgdisplay -v /dev/vg01 ( checking LVM info)
# mkdir mount_points
# vi /etc/fstab ( add mount entries for vg01's lvols)
# mount -a

good luck !
Life is a promise, fulfill it!
S.K. Chan
Honored Contributor

Re: VG recup

Take a look at this thread that I answered about recovering non-root VG from a fresh install. First you would want to try Shiju's suggestion. If that works then you can ignore this.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x3240eea29889d611abdb0090277a778c,00.html
Joseph C. Denman
Honored Contributor
Solution

Re: VG recup

The vg info is still on the disk. You should have no problem recooping the info. After you have reloaded the os (vg00).

cd /dev
umask 022
mkdir vg01
cd vg01
mknod group c 64 0x10000
chmod 644 group
vgimport -v vg01 /dev/dsk/c?t?d? (the v option will let you see what lvols are being imported)
vgchange -a y vg01

recreate you mount points
mount the lvols on the mount points.

modify the fstab as applicable.

Hope this helps.

...jcd...
If I had only read the instructions first??