Operating System - HP-UX
1833762 Members
2627 Online
110063 Solutions
New Discussion

volume groups restoration

 
bassey essien_1
Frequent Contributor

volume groups restoration

I recently lost three of my new VGs, vg12, vg18, vg27, but the configurations is recorded
on the /etc/lvmtab strings, when i ran vgcfgrestore, it saved the configuration on the /etc/lvmtab, also noticed that the
vgscan output says that the "following pv belongs to one VG, unable to match those pv to
volume group, use vgimport command to complete the process". I have tried vgexport and vgimport in an attempt to recreate the volume groups, but could not open MAPFILE /dev/dsk/cxtxd0.Iam wondering if i need to remove the device files for each of the disk. Any suggestion will be honored.
thanks.
3 REPLIES 3
Pal Szabo_1
Valued Contributor

Re: volume groups restoration

I don't know what happend with your configuration, but i has a few general tips:

1. Check which volumes are in lvmtab and in lvmtab.old
strings /etc/lvmtab
strings /etc/lvmtab.old
Volumes already in lvmtab cannot exported.

2. Check the saved volume configuration data (vgcfgrestore)
vgcfgrestore -f /etc/lvmconf/vg00.conf

3. The lvmtab contains only the system information, de detailed volume group information in: /etc/lvmconf/

Sorry my bad english ...


Regards:
Paul
Sandor Horvath_2
Valued Contributor

Re: volume groups restoration

Hi !

For removing do:
vgchange -a n vgxx
vgexport vgxx

after that for importing do:
vgscan -a
mkdir /dev/vgxx
mknod /dev/vgxx/group c 64 0xyy0000
vgimport vgxx /dev/dsk/c....

remarks: yy uniq Your system
use all device file in Your vg.

regards, Saa
If no problem, don't fixed it.
Darrel Louis
Honored Contributor

Re: volume groups restoration

Bassey,

You can only import a VG, if you have created a map file via vgexport.
Whta you should do is try to restore the volume group.
e.g.
If you want to restore vg27, which was on disk c1t1d1 then restore it asfollow:
- vgcfgrestore -n /dev/vg27 -f /etc/lvmconf/vg27.conf /dev/rdsk/c1t1d1
- vgchange -a y
- mount the Filesystem

Regards

Darrel