1753679 Members
5665 Online
108799 Solutions
New Discussion юеВ

vgimport

 
SOLVED
Go to solution
Animesh Chakraborty
Honored Contributor

vgimport

Hi All,
I am facing problem while importing vgs.
# vgimport -v -/tmp/vg01.map /dev/vg01 /dev/dsk/c5t9d7

Beginning the import process on Volume Group "/dev/vg01".
vgimport: Cannot open the control file "/dev/vg01/group":
No such device
But I have created the group file using mknod command.
# pwd
/dev/vg01
# ll
total 0
crw-r--r-- 1 root sys 64 0x110000 Mar 28 14:17 group

Any help ??

Thanks
Animesh



Did you take a backup?
9 REPLIES 9
Printaporn_1
Esteemed Contributor

Re: vgimport

Hi Animesh,

Does minor of group file was duplicate with other vg
check with
#ll /dev/*/group

Regards,
enjoy any little thing in my life
GE CompuNet (Einfeldt)
Occasional Advisor
Solution

Re: vgimport

Hi Animesh,

you forgot the "m", "/dev" not neccessary for vg- name:

vgimport -m /tmp/vg01.map vg01 /dev/dsk/c5t9d7


Hi All,
I am facing problem while importing vgs.
# vgimport -v -/tmp/vg01.map /dev/vg01 /dev/dsk/c5t9d7

Another possibility is that your Majornumber is higher than the Kernel tunable "maxvgs"(typically 10), show with "sysdef"
. It is impossible to have a VG with a Majornumber higher than maxvgs !!

Sorry for my english...;-)

reply to mathias.zubek@gmx.de

Regards
Beginning the import process on Volume Group "/dev/vg01".
vgimport: Cannot open the control file "/dev/vg01/group":
No such device
But I have created the group file using mknod command.
# pwd
/dev/vg01
# ll
total 0
crw-r--r-- 1 root sys 64 0x110000 Mar 28 14:17 group

Any help ??

Thanks
Animesh



Steven Sim Kok Leong
Honored Contributor

Re: vgimport

Hi,

The minor number for the group file can only run from 0x000000 to 0x090000.

You are using 0x110000 which is outside the allowable range, resulting in the errors you faced.

You will need to recreate the group file again with a unique minor number within range.

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
Andreas Voss
Honored Contributor

Re: vgimport

Hi,

1) the correct syntax has to be:
vgimport -v -m /tmp/vg01.map /dev/vg01 /dev/dsk/c5t9d7
2)
The minor number of the group file in your case is 0x11 = 17 decimal.
The default kernel value for max vol. groups is 10, so if you haven't changed the parameter the highest minor number is 0x0a.
If you want more vgs you have to change the kernel parameter 'maxvgs' , build new kernel and reboot.
You could check the parameter with:

sysdef | grep maxvgs

Regards
Andreas Voss
Honored Contributor

Re: vgimport

Sorry,
i have forgotten to count the 0 so the max minor is 0x09 as Steven Sim said.

Regards
Steven Sim Kok Leong
Honored Contributor

Re: vgimport

Hi,

Because the default kernel value for maxvgs as highlighted is 10, the highest minor number should be 0x090000. This is because 0x000000 is counted as well. From 0x000000 to 0x090000, you have a total of 10 VGs.

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
Animesh Chakraborty
Honored Contributor

Re: vgimport

hi,
My maxvg was set to 10.
after increasing the number it is ok now.

thanks for your response.

animesh
Did you take a backup?
coysting
New Member

Re: vgimport

Answer from

GE CompuNet (Einfeldt)

is really helpful,

I met the exact same problem when doing vgimport. I'll adjust maxvgs to solve this problem.

Thank you very much!
coysting
New Member

Re: vgimport

As I mentioned earlier on Sep 14, the problem is resolved after I adjusted the Kernel Parameter maxvgs.

Thank you very much!