Operating System - HP-UX
1753331 Members
5051 Online
108792 Solutions
New Discussion юеВ

Re: Could not able to create new Vg because of control file problem

 
SOLVED
Go to solution
GSK_2
Advisor

Could not able to create new Vg because of control file problem

HI Guys,

I have checked about this type of error in these postings, but could not able to get what i needed to make this one available/created.

[root@oradb]/: vgcreate -p 8 -s 8 /dev/r04 /dev/dsk/c33t1d4
vgcreate: Cannot open the control file "/dev/r04/group":
No such device

$ /usr/sbin/kctune | grep -i maxvg
maxvgs 20 20
$
$ ls -ltr /dev/*/group
crw-r----- 1 root sys 64 0x000000 Sep 6 2005 /dev/vg00/group
crw-r--r-- 1 root sys 64 0x020000 Dec 24 2006 /dev/u02/group
crw-r--r-- 1 root sys 64 0x030000 Dec 24 2006 /dev/u03/group
crw-r--r-- 1 root sys 64 0x040000 Dec 24 2006 /dev/u04/group
crw-r--r-- 1 root sys 64 0x050000 Dec 24 2006 /dev/u05/group
crw-r--r-- 1 root sys 64 0x060000 Dec 24 2006 /dev/u06/group
crw-r--r-- 1 root sys 64 0x100000 May 15 19:13 /dev/u10/group
crw-r--r-- 1 root sys 64 0x110000 May 15 19:36 /dev/u50/group
crw-r--r-- 1 root sys 64 0x120000 May 15 19:37 /dev/u51/group
crw-r--r-- 1 root sys 64 0x130000 May 18 12:29 /dev/u52/group
crw-r--r-- 1 root sys 64 0x010000 Jun 7 15:48 /dev/u12/group
crw-r--r-- 1 root sys 64 0x070000 Sep 10 10:49 /dev/r01/group
crw-r--r-- 1 root sys 64 0x080000 Sep 10 10:49 /dev/r02/group
crw-r--r-- 1 root sys 64 0x090000 Sep 10 10:50 /dev/r03/group
crw-r--r-- 1 root sys 64 0x140000 Sep 19 04:25 /dev/r04/group ==> Problem control file
$

Tried creating other control file with minor number 0x150000 but still the same.
Your reply's are very much appreciated. Thanks in advance.

Regards,
Satish
5 REPLIES 5
melvyn burnard
Honored Contributor

Re: Could not able to create new Vg because of control file problem

check your maxvgs kernel parameter setting, sounds like you need to increase it
Also, your numbering is not the best, as these numbers are in hex, you should preferable have the minor numbers as folows:

0x000000 Sep 6 2005 /dev/vg00/group
0x020000 Dec 24 2006 /dev/u02/group
0x030000 Dec 24 2006 /dev/u03/group
0x040000 Dec 24 2006 /dev/u04/group
0x050000 Dec 24 2006 /dev/u05/group
0x060000 Dec 24 2006 /dev/u06/group
0x070000 Sep 10 10:49 /dev/r01/group
0x080000 Sep 10 10:49 /dev/r02/group
0x090000 Sep 10 10:50 /dev/r03/group
0x0a0000 May 15 19:13 /dev/u10/group
0x0b0000 May 15 19:36 /dev/u50/group
0x0c0000 May 15 19:37 /dev/u51/group
0x0d0000 May 18 12:29 /dev/u52/group
0x0e0000 Jun 7 15:48 /dev/u12/group
0x0f0000 Sep 19 04:25 /dev/r04/group
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
GSK_2
Advisor

Re: Could not able to create new Vg because of control file problem

My Question is we have maxvg set to 20.
And we have only 14 vg's created till now, why can't we use the rest with our above approach ( i mean 0x14 or 0x15 or 0x16 etc)?
/usr/sbin/kctune | grep -i maxvg
maxvgs 20 20
$
melvyn burnard
Honored Contributor
Solution

Re: Could not able to create new Vg because of control file problem

That is due to your minor numbering scheme
you have a minor number of 0x140000 you ar etrying to use, this translates to
20 dec, and as you start with 0x000000 for vg00, theat equates to 21 VG's
The kernel does NOT count how many you have, it goes via the minor number.
Try creating the VG with the minor number 0x0a0000
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
GSK_2
Advisor

Re: Could not able to create new Vg because of control file problem

Thank you melvyn for you reply.

Regards,
Satish
GSK_2
Advisor

Re: Could not able to create new Vg because of control file problem

thank you.