Operating System - HP-UX
1753797 Members
8482 Online
108805 Solutions
New Discussion юеВ

Re: vgcreate: Cannot open the control file

 
SOLVED
Go to solution
Vipin Singhal
Super Advisor

vgcreate: Cannot open the control file

i have given these commands:

#pvcreate /dev/rdsk/c26t6d0
#pvcreate /dev/rdsk/c29t6d0
#mkdir /dev/vg72
#mknod /dev/vg72/group c 64 0x720000
#vgcreate /dev/vg72 /dev/dsk/c26t6d0

vgcreate: Cannot open the control file "/dev/vg72/group":
No such device

Please suggest what should i do?

these are the list of this command:

# ll /dev/vg*/group |awk '{print$6}'
0x000000
0x040000
0x050000
0x060000
0x070000
0x080000
0x090000
0x100000
0x110000
0x120000
0x130000
0x140000
0x150000
0x160000
0x170000
0x180000
0x190000
0x200000
0x210000
0x220000
0x230000
0x240000
0x250000
0x260000
0x270000
0x280000
0x290000
0x300000
0x310000
0x320000
0x330000
0x340000
0x350000
0x360000
0x370000
0x380000
0x390000
0x400000
0x410000
0x420000
0x430000
0x440000
0x450000
0x460000
0x470000
0x480000
0x490000
0x3a0000
0x3b0000
0x3c0000
0x3d0000
0x3e0000
0x3f0000
0x1f0000
0x2a0000
0x1a0000
0x1b0000
0x1c0000
0x1d0000
0x1e0000
0x2b0000
0x720000

all permission .owner,groups are ok , i compared these things from other group file of different VG.

I also tried to create new VG74
same problem with VG74 group file

crw-r--r-- 1 root sys 64 0x740000 Nov 16 02:40 group

# vgcreate /dev/vg74 /dev/dsk/c26t6d0
vgcreate: Cannot open the control file "/dev/vg74/group":
No such device

should i create the VG using -f option?

please suggest
thanks
vipin
18 REPLIES 18
Vipin Singhal
Super Advisor

Re: vgcreate: Cannot open the control file

should i use again:

#mknod /dev/vg72/group c 64 0x720000

with hexadecimal no.

what will be the hexadecimal no. for minor no. 0x720000

thanks
vipin
Muthukumar_5
Honored Contributor

Re: vgcreate: Cannot open the control file

0x720000 is hexa decimal only. 0x prefix is saying that the number is hexadecimal.

More than that, minor and major device number can be in hexa decimal or decimal too.

hth.
Easy to suggest when don't know about the problem!
Luk Vandenbussche
Honored Contributor

Re: vgcreate: Cannot open the control file

Hi,

What is your maxvgs kernel parameter?

cat /stand/system | grep maxvgs ?

Vipin Singhal
Super Advisor

Re: vgcreate: Cannot open the control file

#cat /stand/system
tunable maxvgs 80
Vipin Singhal
Super Advisor

Re: vgcreate: Cannot open the control file

all permission ,owner,groups of group file are ok , i compared these things from other group file of different VG.

I also tried to create new VG74
same problem with VG74 group file

crw-r--r-- 1 root sys 64 0x740000 Nov 16 02:40 group

# vgcreate /dev/vg74 /dev/dsk/c26t6d0
vgcreate: Cannot open the control file "/dev/vg74/group":
No such device

should i create the VG using -f option?

please suggest
thanks
vipin
melvyn burnard
Honored Contributor

Re: vgcreate: Cannot open the control file

why use 72?
that is in Hex, which relates to 114 decimal
Why not try something like 0x2c0000 (I do not see that in your list)
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Muthukumar_5
Honored Contributor

Re: vgcreate: Cannot open the control file

Is this your thread? http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=975294

You've used -f option with vgcreate. Did you see the usage,

-f This option will force a volume group to be
created with a physical volume which has
alternate block(s) already allocated, (i.e.
this physical volume was not initialized
using pvcreate -f.) This option should be
used with extreme caution. If the volume
group to be created has a different physical
extent size, the alternate block(s) might be
inside the user data area. Potential data
corruption could occur.

It may give corruption on data. Be cautious.

hth.
Easy to suggest when don't know about the problem!
Vipin Singhal
Super Advisor

Re: vgcreate: Cannot open the control file

How i will change the minor no.

# mknod /dev/vg72/group c 64 0x2c0000
mknod: File exists
# cd /dev/vg72
# ll
total 0
crw-r--r-- 1 root sys 64 0x720000 Nov 16 01:35 group

I was trying to change it from 72 to 2c

thanks
vipin
saju_2
Respected Contributor
Solution

Re: vgcreate: Cannot open the control file

Hi

Remove the existing group file by rm command
rm /dev/vg74/group

Create new group file by

mknod /dev/vgxx/group c 64 0x2c0000

Regards
CS