1830498 Members
2314 Online
110006 Solutions
New Discussion

vgcreate

 
SOLVED
Go to solution
jamshed
Frequent Advisor

vgcreate

# vgcreate vgu10 /dev/dsk/c14t1d4
vgcreate: Cannot open the control file "/dev/vgu10/group":
Device busy
#
How can I fix this problem?
6 REPLIES 6
Albert_31
Trusted Contributor
Solution

Re: vgcreate

Hello Jamshed,

Check the following

# ll /dev/vgu10

See if you find a file called "group", else you need to do the following

# ll /dev/*/group (to find out the minor numbers used)
example
0x020000 --> here the minor number is 02
0x010000 --> here the minor number is 01

# mkdir /dev/vgu10
# mknod /dev/vgu10/group c 64 0xYY0000
Replace YY with the minor number you want to assign to the volume.
# vgcreate /dev/vgu10 /dev/dsk/c14t1d4
should work.

regards

albert
Warren_9
Honored Contributor

Re: vgcreate

hi,

# kmtune -l -q maxvgs

the default max number of VG is 10, need to change the paramter and rebuild the kernel if you already have 10 VGs.

GOOD LUCK!!


jamshed
Frequent Advisor

Re: vgcreate

Thank you Albert!
A. Clay Stephenson
Acclaimed Contributor

Re: vgcreate

Almost certainly the /dev/vgu10/group device node that you (presumably) created does not have a unique (to this host) minor device number. Do an "ls -l /dev/vg*/group" and note the minor device numbers currently in use. You then create a device node that does not conflict with any existing device nodes.

By convention (though certainly not required) vg10 would use major 64 monir 0x0a0000
e.g.

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

Now you should be ready to vgcreate (assuming that 0x0a0000 is truly unique).
If it ain't broke, I can fix that.
jjh_1
Advisor

Re: vgcreate

Hi,
I think you already used group minor number 10. Check othr group's group minor number.
Mridul Shrivastava
Honored Contributor

Re: vgcreate

By default minor no. for vg can be between 00-09, ie max 10 vgs can be created. If there are already 10 vgs created and this is the next one then you have to change the maxvgs and then recreate vg.
Else check for the existing minor no.'s using ll /dev/vg*/group

then use minor no. which is currently not in use....

HTH
Time has a wonderful way of weeding out the trivial