1833584 Members
3768 Online
110061 Solutions
New Discussion

vgcreate

 
tigm7103105q1
Contributor

vgcreate

HI, I need you help,
whene I do "vgcreate /dev/vg05 /dev/dsk/x10t4d3" return the message "Cannot the open file /dev/vg05/group" and if exist.
Thanks

7 REPLIES 7
Geoff Wild
Honored Contributor

Re: vgcreate

Is the minor number unique?

ll /dev/vg*/group

Make sure none are the same.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Devender Khatana
Honored Contributor

Re: vgcreate

Hi,

Either minor number is not unique or the group file is not created itself. Is it ?

#mkdir /dev/vg05
#mknod /dev/vg05/group c 64 0x??0000

( Where ?? is the unique number confirm by "ll /dev/*/group", normally should be 05 for vg05 if the sequence has been maintained earlier)

#vgcreate /dev/vg05 /dev/dsk/c10t4d3

(Also note the typo in the device file name)

HTH,
Devender
Impossible itself mentions "I m possible"
Geoff Wild
Honored Contributor

Re: vgcreate

To elaborate, the minor number should be hex...

So vg05, minor 05
vg10, minor 0a
etc...

Rgds...Geoff

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Raj D.
Honored Contributor

Re: vgcreate

Hi Tigm ,

It seems you have not created the group file hence the error .

You can do as following:

1. Create the new vg directory.
# cd /dev
# mkdir vg05

2. Create the unique group file
# ls -l /dev/*/group [ to check all the group files ]
# mknod group c 64 0x050000
[ 0x050000 has to be unique , 0x0N0000 (replace N with unque number).

3. vgcreate /dev/vg05 /dev/dsk/x10t4d3

4. vgdisplay -v /dev/vg05 | more

Cheers ,
Raj.

" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: vgcreate

Need to create the group file under /dev/vg05 I missed that.
( # cd /dev/vg05/ )

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Thayanidhi
Honored Contributor

Re: vgcreate

Hi,
The kernel parameter maxvgs also affects the group file minor number! By default the maxvgs is set to 10. If so your group file's minor number shouldn't exceed 10 (0a - in hex).

Regds
TT
Attitude (not aptitude) determines altitude.
Manoj Sivan
Regular Advisor

Re: vgcreate

Hi There,

There are couple of things u need to check.

1. ll /dev/vg*/group and check whether the number u have selected is unique.

2. If you have not created the group file please complete the same first with
#mkdir /dev/vg05
#mknod /dev/vg05/group c 64 0x##0000. The ## number can be selected after verifying the output of ll /dev/vg*/group .

3. After this u can execute the vgcreate command.

If the error repeates, need to check the maxvgs kernel parametre.

cheers

manu