Operating System - HP-UX
1832274 Members
1837 Online
110041 Solutions
New Discussion

Re: vgimport - cannot open the control file

 
SOLVED
Go to solution
Simon P White
Advisor

vgimport - cannot open the control file

I am trying to export some vg's from 1 server and import into another. Do the minor numbers on the vg's have to match or can they be changed? When I run the import I get the above error. If I set the minor numbers the same it works. The issue I have is that some of the vg's have duplicate minor numbers on the system I want to import them on.
8 REPLIES 8
Pete Randall
Outstanding Contributor

Re: vgimport - cannot open the control file

No, the minor numbers do not have to be the same - just unique. Are you sure that they are unique on the new system?


Pete

Pete
Geoff Wild
Honored Contributor

Re: vgimport - cannot open the control file

They can be different - the vg name can be different - your error is caused by maxvgs set to low.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Simon P White
Advisor

Re: vgimport - cannot open the control file

Pete - thanks for the reply - as far as I can see the minor numbers are unique. I have tried 2 different vg's and its only when I make the minor numbers the same does the vgimport work
Matti_Kurkela
Honored Contributor

Re: vgimport - cannot open the control file

The minor number for the group file of a VG can be changed when export/importing the VG, but the minor number MUST be of the form 0xNN0000.
Note that "NN" is two hexadecimal digits, so you can have 256 VGs (from 00 to ff).

When building a ServiceGuard cluster, all the servers that access the shared VG must use identical VG minor numbers.

MK
MK
Simon P White
Advisor

Re: vgimport - cannot open the control file

Thanks guys - let me explain perhaps I'm doing something wrong
1) Server a vgexport -m mapfile -f diskfile vg
2) Copy mapfile and diskfile to server b
3) server b mkdir vg
4) server b mknod vg/group c 64 0xnn0000
5) vgimport -m mapfile -f diskfile vg
This fails unless I set the minor number the same as server a - then it works
Ninad_1
Honored Contributor
Solution

Re: vgimport - cannot open the control file

Simon,

Geoff has highlighted a very good valid point. It must be so happening that the minor number you are trying to use is more than your maxvgs kernel parameter.
What is your maxvgs parameter and what is the minor number you are trying to use, for which you are not able to import.
Also please can you post the exact error displayed while importing.

Regards,
Ninad
Geoff Wild
Honored Contributor

Re: vgimport - cannot open the control file

Thanks guys - let me explain perhaps I'm doing something wrong
1) Server a vgexport -m mapfile -f diskfile vg
2) Copy mapfile and diskfile to server b
3) server b mkdir vg
4) server b mknod vg/group c 64 0xnn0000
5) vgimport -m mapfile -f diskfile vg
This fails unless I set the minor number the same as server a - then it works


1 should be: vgexport -s -v -m /tmp/vgxx.map /dev/vgXX

and your import should be:

vgimport -s -v -m /tmp/vgxx.map /dev/vgXX


Again - what is maxvgs set to?

Also - please post the exact commands

Example - for vg10:

mkdir /dev/vg10
mknod /dev/vg10/group c 64 0x0a0000

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Simon P White
Advisor

Re: vgimport - cannot open the control file

Thanks Geoff, Ninad - your correct. The maxvgs is set to 60 which wouldn't alow me to use a minor number of 40 onwards - i have now fixed the problem