1834127 Members
2335 Online
110064 Solutions
New Discussion

vgimport & control file

 
SOLVED
Go to solution
msaygak
Frequent Advisor

vgimport & control file

I have drive that previosly was in mirror with other. I want to import this drive in new system. But when I'm trying to import it I receve a message:
vgimport: Cannot open the control file "/dev/vgtest/group":
I think that couse of error is incorrect minor. But i cannot create control file with minor of previous control file.

Here is all my actions:

#pvck -n /dev/dsk/c20t1d2
pvck: using default blocksize
pvck: /dev/dsk/c20t1d2: LVM checksums usable
#vgdisplay vgtest
vgdisplay: Volume group "/dev/vgtest" does not exist in the "/etc/lvmtab" file.
vgdisplay: Cannot display volume group "vgtest".
#mkdir /dev/vgtest
#mknod /dev/vgtest/group c 64 0x100000
#vgimport vgtest /dev/dsk/c20t1d2
vgimport: Cannot open the control file "/dev/vgtest/group":
No such device
#ls -l "/dev/vgtest/group"
crw-r--r-- 1 root sys 64 0x100000 Sep 9 16:27 /dev/vgtest/group

What should I do to import this drive?
4 REPLIES 4
melvyn burnard
Honored Contributor

Re: vgimport & control file

64 0x100000 is the major/minor number
what OS version is this?
Given that minor number, the first two digits are the number of the vg in hex.
This means that you are adding VG number 16, and if you have HP-UX 11iv2 or below, then you need to have the maxvgs kernel parameter set to allow this many VG's

What other VG minor numbers are in use?
ll /dev/vg*/group

Maybe see if there is a number free between 00 and 09, if so try that instead of 10
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Torsten.
Acclaimed Contributor
Solution

Re: vgimport & control file

The minor number 0x100000 is probably too high if your maxvg maximum is 16.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
James R. Ferguson
Acclaimed Contributor

Re: vgimport & control file

Hi:

To add to the 'maxvgs' parameter discussion. This is zero-relative, so a 'maxvgs' value of decimal 17 would be required to use a minor number of decimal 16 (or 0x10).

Regards!

...JRF...
msaygak
Frequent Advisor

Re: vgimport & control file

Thanks!
maxvg was set to 10.