Operating System - HP-UX
1834706 Members
2333 Online
110069 Solutions
New Discussion

Volume group "/dev/vg01" does not exist in the "/etc/lvmtab" file

 
Pham Anh Quan
Advisor

Volume group "/dev/vg01" does not exist in the "/etc/lvmtab" file

In HP-UX 11i, I have two vg /dev/vg00 and /dev/vg01
Now I lost /dev/vg01
#vgdisplay -v /dev/vg01
vgdisplay: Volume group "/dev/vg01" does not exist in the "/etc/lvmtab" file.
vgdisplay: Cannot display volume group "/dev/vg01".
#vgcfgrestore -n /dev/vg01 -l
Volume Group Configuration information in "/etc/lvmconf/vg01.conf"
VG Name /dev/vg01
---- Physical volumes : 2 ----
/dev/rdsk/c5t8d0 (Non-bootable)
/dev/rdsk/c7t8d0 (Non-bootable)

Do you know how to restore vg01 ?

Thanks
quan
6 REPLIES 6
Sridhar Bhaskarla
Honored Contributor

Re: Volume group "/dev/vg01" does not exist in the "/etc/lvmtab" file

Hi Quan,

How did you lose vg01?. If you didn't export it, then you can try recreating the /etc/lvmtab

#mv /etc/lvmtab /etc/lvmtab.good
#vgscan -a

If this is not successful, then move the old lvmtab back and then try importing the vg fresh.

#mv /etc/lvmtab.good /etc/lvmtab
#mkdir /dev/vg01
#mknod /dev/vg01/group c 64 0x010000
#vgimport -v -m /etc/lvmconf/vg01.map /dev/dsk/c5t8d0 /dev/dsk/c7t8d0

If you don't have vg01.map files in /etc/lvmconf, then don't specify it. Logical volumes with default names (lvol1, lvol2) will be created. You will need to indivicually mount them and see what they were before.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Pham Anh Quan
Advisor

Re: Volume group "/dev/vg01" does not exist in the "/etc/lvmtab" file

thanks
but with cmd
#vgimport -v -m /etc/lvmconf/vg01.mapfile /dev/dsk/c5t8d0 /dev/dsk/c7t8d0
OR
#vgimport -v -m /etc/lvmconf/vg01.mapfile /dev/rdsk/c5t8d0 /dev/rdsk/c7t8d0

regards,
quan
Sunil Sharma_1
Honored Contributor

Re: Volume group "/dev/vg01" does not exist in the "/etc/lvmtab" file

Hi Quan,

Use bock device file so correct cmd is

#vgimport -v -m /etc/lvmconf/vg01.mapfile /dev/dsk/c5t8d0 /dev/dsk/c7t8d0


Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Bharat Katkar
Honored Contributor

Re: Volume group "/dev/vg01" does not exist in the "/etc/lvmtab" file

HI quan,
before importing you also need to create /dev/vg01 direcory and group special file for vg01 if they are not present. After vgexport they get lost.
so sequence would be like this:

# mkdir /dev/vg01
# mknod /dev/vg01/group c 61
#vgimport -v -m /etc/lvmconf/vg01.mapfile /dev/dsk/c5t8d0 /dev/dsk/c7t8d0


Hope that helps.
Regards,
You need to know a lot to actually know how little you know
Bharat Katkar
Honored Contributor

Re: Volume group "/dev/vg01" does not exist in the "/etc/lvmtab" file

sorry there is typo in mknod command
please read it as:

# mknod /dev/vg01/group c 64


You need to know a lot to actually know how little you know
Gerhard Roets
Esteemed Contributor

Re: Volume group "/dev/vg01" does not exist in the "/etc/lvmtab" file

As a side note

do a ll /dev/*/group to find unused / available minor numbers the format is 0x??0000, where ?? is an arbitrary hex number.

Regards
Gerhard