1834931 Members
2577 Online
110071 Solutions
New Discussion

vgcreate failed

 
SOLVED
Go to solution
Luca Frigatti
Contributor

vgcreate failed

Hi All!
I try to create a new volume group on my server and I received the following error message :
vgcreate: Cannot open the control file "/dev/vg_rwh_1/group":
No such device

The command that I use is the follow :
vgcreate -e 5000 /dev/vg_rwh_1 /dev/dsk/c0t8d1

The maxvgs parameter in the kernel is 30.
The vg that I create on this server are 20.

Any idea?

TIA.

Regards.

5 REPLIES 5
Rita C Workman
Honored Contributor

Re: vgcreate failed

Did you...
mkdir /dev/vg_rwh_1/group
mknod /dev/vg_rwh_1/group c 64 0xnn0000

and then:
vgcreate -e 5000 /dev/.....

Rgrds,
Rita
Chris Wilshaw
Honored Contributor

Re: vgcreate failed

Have you created the directory and group file for the VG?

mkdir /dev/vg_rwh_1
mknod /dev/vg_rwh_1/group c 64 0x0N0000

(where N is an arbitrary number for your VG, best suggestion is to increase this by one from your existing highest value)

pvcreate /dev/rdsk/c0t8d1

then your vgcreate command should work.
Luca Frigatti
Contributor

Re: vgcreate failed

I've the following situation :

/dev/vg_rwh_1:
total 10
drwxr-xr-x 2 root sys 1024 Sep 3 14:31 .
dr-xr-xr-x 34 oracle dba 4096 Sep 3 14:31 ..
crw-r----- 1 root sys 64 0x200000 Sep 3 14:31 group
pvcreate /dev/rdsk/c0t8d1
Physical volume "/dev/rdsk/c0t8d1" has been successfully created.
6981 root@devux!/ $ vgcreate -e 5000 /dev/vg_rwh_1 /dev/dsk/c0t8d1
vgcreate: Cannot open the control file "/dev/vg_rwh_1/group":
No such device

TIA.

Regards
James R. Ferguson
Acclaimed Contributor
Solution

Re: vgcreate failed

Hi:

Did you create the device file with 'mknod' and specify a unique minor number?

Remember that the minor number is expressed in hexadecimal, so if you used '20' you really have a decimal minor number of '32' -- too large for the 'maxvgs'.

Regards!

...JRF...
Vincent Farrugia
Honored Contributor

Re: vgcreate failed

Hello,

I saw this thread and didn't mind replying because there were already 2 good replies. Rita Workman and Chris Wilshaw's answers are both very correct, and were given to you before that of JRF, so you should assign them 10 points as well.

Assign me 0 points please.

Thanks,
Vince
Tape Drives RULE!!!