1752782 Members
6785 Online
108789 Solutions
New Discussion юеВ

Re: vgcreate URGENT

 
SOLVED
Go to solution
Nanda M
Advisor

vgcreate URGENT

Team,

need solution for below error,

if i do vgcreate i am getting below error
A volume group is already using this major and minor number.

===============================================
gbdxgme1 # vgcreate -s 4 /dev/vgsitSD3 /dev/dsk/c0t4d0
Increased the number of physical extents per physical volume to 30499.
vgcreate: Volume group "/dev/vgsitSD3" could not be created:
A volume group is already using this major and minor number.
Please check the minor number of the "group" device file.
==============================================
12 REPLIES 12
Michal Kapalka (mikap)
Honored Contributor

Re: vgcreate URGENT

hi,

check the man page of vgcreate :

http://docs.hp.com/en/B2355-60105/vgcreate.1M.html

it always a playng with parameter

-s / -e / -p

-e max_pe

Set the maximum number of physical extents that can be allocated from any of the physical volumes in the volume group. The default value for max_pe is 1016. However, if the size of any physical volume exceeds 1016 times the pe_size, the default value for max_pe is adjusted to match the physical volume size. The maximum number of physical extents can be a value in the range 1 to 65535.

mikap
TTr
Honored Contributor
Solution

Re: vgcreate URGENT

> A volume group is already using this major and minor number.
> Please check the minor number of the "group" device file

Did you check the "group" file? You may have to recreate the group file with a different number.
ll /dev/vg*/group

If you have a group file major number conflict, delete the group file of the vgsitSD3 and recreate it with a different number.
Nanda M
Advisor

Re: vgcreate URGENT

Thanks for reply,

I have removed group file but still giving same error
Patrick Wallek
Honored Contributor

Re: vgcreate URGENT

>>I have removed group file but still giving same error

Did you create another group file with a different minor number? Each VG **MUST** have a group file.
Nanda M
Advisor

Re: vgcreate URGENT

Yes i could create with another

Sunny123_1
Esteemed Contributor

Re: vgcreate URGENT

Hi

Firsty did you have the group file having same minor number?

then use diffrent minor number

delete old group file and then

create a group file like below

mknod /dev/vgname/group c 64 0x0000001

last one is minor number you want

Also post your all group files here.


Regards
sunny
Patrick Wallek
Honored Contributor

Re: vgcreate URGENT

>>mknod /dev/vgname/group c 64 0x0000001
>>last one is minor number you want

That's not quite right.

The minor number IS the last parameter on the command line above. BUT, the minor number itself is the 1st 2 characters AFTER the 'x'.

mknod /dev/vgname/group c 64 0x??0000

Where the '??' the the appropriate minor number for this group file.

Remember that this is in HEX so the appropriate range is 00 to FF, but the value, when converted to decimal, must be LESS than the value of your MAXVGS kernel parameter.
Sunny123_1
Esteemed Contributor

Re: vgcreate URGENT

Hi

Yes Patrick you are right

This is in HEX so the range is 00 to FF

Regards
Sunny
TTr
Honored Contributor

Re: vgcreate URGENT

> Yes i could create with another

It would help if you showed us the output of the following commands

ll /dev/vg*/group
strings /etc/lvmtab