Operating System - HP-UX
1827845 Members
1903 Online
109969 Solutions
New Discussion

vgimport: Cannot open the control file

 
sysad_boy
Frequent Advisor

vgimport: Cannot open the control file

Why am I getting this kind of error?

root:/dev/vggtdwase2> vgimport -v -s -m /tmp/gca/gtdwase2 /dev/vggtdwase2
Beginning the import process on Volume Group "/dev/vggtdwase2".
vgimport: Cannot open the control file "/dev/vggtdwase2/group":
No such device


When I try to activate this volume group: /dev/vggtdwase2 it says:

vgchange: Volume group "/dev/vggtdwase2" does not exist in the "/etc/lvmtab" file.

I need help badly on this one.



4 REPLIES 4
johnsonpk
Honored Contributor

Re: vgimport: Cannot open the control file

Hi ,

You need to create vg group file before proceeding with vgimport

#mkdir /dev/vggtdwase2
#mknod /dev/vggtdwase2/group c 64 0xYY0000
replace YY with uniq minor number

Then do vgimport


Rgds
Johnson
Nido
Trusted Contributor

Re: vgimport: Cannot open the control file

Hi,

>>>> vgimport: Cannot open the control file "/dev/vggtdwase2/group":
No such device
This warning is self explainatory, vgimport expects group device file :/dev/vggtdwase2/group

In addition:
Your command would have been running successfully if you would have LVM2.0 which don't need other steps provided above.

Check this URL:
http://parwatraj-naidu.blogspot.com/2009/06/whats-happening-part-i-hpux-lvm-2x.html


Good Luck!!
" Let Villagers Be Happy!! "
Basheer_2
Trusted Contributor

Re: vgimport: Cannot open the control file

Either your map file is missing or not spelled right

/tmp/gca/gtdwase2

or this vg doesn't exist.
/dev/vggtdwase2

check with strings /etc/lvmtab | grep vggtdwase2

if the above 2 are correct, then do
kctune |grep maxvgs

if it reports 10, then you increase this by
kctune maxvgs=256 and then reboot

if maxvgs is > 10, then
did you do

mkdir /dev/vggtdwase2
mknod /dev/vggtdwase2/group c 64 0x##0000
(make sure ## is same as the one from where you exported)

Sajjad Sahir
Honored Contributor

Re: vgimport: Cannot open the control file

Dear Friend

Make VG directories and group control files for all VGs on second node and then import the the map filles.
mkdir /dev/vggtdwase2
ls -l /dev/*/group
mknod /dev/vggtdwase2/group c 64 0x##0000
(minor number should be unique in system)

vgimport -v -s -m /tmp/gca/gtdwase2 /dev/vggtdwase2

thanks and regards

Sajjad Sahir