Operating System - HP-UX
1747980 Members
3951 Online
108756 Solutions
New Discussion юеВ

Re: vgcreate: Cannot open the control file "/dev/vg10A/group" ??

 
SOLVED
Go to solution
Stuart Abramson_2
Honored Contributor

vgcreate: Cannot open the control file "/dev/vg10A/group" ??

I go through the standard sequence to create a VG, and I get this error message:

.."vgcreate: Cannot open the control file /dev/vg10A/group"

My "maxvgs" isn't set, but it defaults to "10". I'm using 1.

+ mkdir /dev/vg10A
+ mknod /dev/vg10A/group c 64 0x010000
+ vgcreate -p 100 vg10A /dev/dsk/c7t0d1
vgcreate: Cannot open the control file "/dev/vg10A/group":
No such device

What is my problem?
7 REPLIES 7
Sanjay_6
Honored Contributor

Re: vgcreate: Cannot open the control file "/dev/vg10A/group" ??

Hi,

Review your mknod command and make sure that you are not making a typo mistake.

Hope this helps.

Regds
Hazem Mahmoud_3
Respected Contributor
Solution

Re: vgcreate: Cannot open the control file "/dev/vg10A/group" ??

From what I understand, when you are defining the minor number (ie: 0x010000), the last 4 digits should be 0000 and the first 2 are according to the name of the vg. So, if it is vg09, it would be 0x090000. That's what the documentation states, but I'm not sure if that's convention or a requirement. What output do you have from doing ll /dev/vg10A/group?

-Hazem
Steven E. Protter
Exalted Contributor

Re: vgcreate: Cannot open the control file "/dev/vg10A/group" ??

I got this message during Service Guard Class. I had mistyped the name group when I ran the mknod command.

I removed the directory and did it again without the typo and everything was fine.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
SS_6
Valued Contributor

Re: vgcreate: Cannot open the control file "/dev/vg10A/group" ??

I would only say to delete the file and directory and try again. See if the minor number is already in use or try using another minor number, permission on the group file etc..
By providing solutions I am helping myself
Sundar_7
Honored Contributor

Re: vgcreate: Cannot open the control file "/dev/vg10A/group" ??


The command line seems to be just fine. I can only suggest you to retry the commands

Learn What to do ,How to do and more importantly When to do ?
Bharat Katkar
Honored Contributor

Re: vgcreate: Cannot open the control file "/dev/vg10A/group" ??

Stuart,
What i suggest you is just run this command:
#cd /dev
#find ./ -name group -print

See how many group files you get and compare there minor addresses.
As your mknod command shows it is: 0x010000

Now last four digits will be always 0 but first two should be unique for each VG.

I think there is the problem.


You need to know a lot to actually know how little you know
Stuart Abramson_2
Honored Contributor

Re: vgcreate: Cannot open the control file "/dev/vg10A/group" ??

Okay, here is what happened. The 1st time I created the VG I used a minor number of 20, which apparently exceeded my default limit of 10. When I recreated the VG I used a minor number of 01, but I must have forgotten to remove the old /dev/vg10A, and so the old number of 20 was stuck in there, and I didn't notice the "already exists" error message.

When I went over everything again, at your suggestions "ll /dev/*/group", I found the old reference with the 20 minor number.

Thanks.