Operating System - HP-UX
1833300 Members
2773 Online
110051 Solutions
New Discussion

Re: Major & Minor Number error when try to to VGcreate

 
SOLVED
Go to solution
Muda Ikhsan
Advisor

Major & Minor Number error when try to to VGcreate

Hi got this erro when try to create the pv... i have check several time that no major or minor number used for the Vg.


# pvcreate /dev/rdsk/c7t0d4
Physical volume "/dev/rdsk/c7t0d4" has been successfully created.
# vgcreate /dev/vgsapdbp014 /dev/dsk/c7t0d5
vgcreate: Volume group "/dev/vgsapdbp014" 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.

# ls -ll /dev/*/group
crw-r----- 1 root sys 64 0x000000 Nov 15 2002 /dev/vg00/group
crw-rw-rw- 1 root sys 64 0x020000 Apr 17 12:06 /dev/vginfdev/group
crw-rw-rw- 1 root sys 64 0x050000 Jul 8 14:21 /dev/vgsapdbp011/group
crw-rw-rw- 1 root sys 64 0x060000 Jul 8 15:31 /dev/vgsapdbp012/group
crw-rw-rw- 1 root sys 64 0x070000 Jul 8 15:31 /dev/vgsapdbp013/group
crw-rw-rw- 1 root sys 64 0x040000 Jul 9 11:40 /dev/vgsapdbp014/group
crw-rw-rw- 1 root sys 64 0x010000 Apr 17 11:49 /dev/vgsapdev/group
crw-rw-rw- 1 root sys 64 0x030000 Apr 17 12:18 /dev/vgsapp01/group
11 REPLIES 11
Michael Tully
Honored Contributor

Re: Major & Minor Number error when try to to VGcreate

How did the /dev/vgsapdbp014/group file get created ?

Be aware that the disk you've used for the pvcreate and the vgcreate are different.

Post back the answer after you've tried again and I'm sure we can fix this.
Anyone for a Mutiny ?
Suresh Patoria
Super Advisor

Re: Major & Minor Number error when try to to VGcreate

Hi,

You delete the group file and recreate with major and minor according to your vgvolume

then try to create the volume group using vgcreate

T G Manikandan
Honored Contributor

Re: Major & Minor Number error when try to to VGcreate

remove the group file and recreate it.

# rmsf /dev/vgsapdb014/group
# mknod /dev/vgsapdb014/group c 64 0x040000
Muda Ikhsan
Advisor

Re: Major & Minor Number error when try to to VGcreate

Hi Michael,
i've create the vg with the same method as others vg vgsapdbp011,012,013... and i only have problem with this vg014.

here is my steps:
#mkdir /dev/vgsapdbp014
#ls -ll /dev/*/group checking the unused number)
#mknod /dev/vgsapdbp014 /dev/vgname/group c 64 0x040000

tehn after this i'm doing the pvcreate
..
when i did the ls -ll /dev/*/group.. the 0x040000 is not listed there.
Muda Ikhsan
Advisor

Re: Major & Minor Number error when try to to VGcreate

Hi Michael,

i lefty this one :

# vgcreate /dev/vgsapdbp014 /dev/dsk/c7t0d4
vgcreate: Volume group "/dev/vgsapdbp014" 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.
T G Manikandan
Honored Contributor

Re: Major & Minor Number error when try to to VGcreate

Just do a
#vgexport /dev/vgsapdbp014


Then try re-creating the vg.
Muda Ikhsan
Advisor

Re: Major & Minor Number error when try to to VGcreate

Hi..
i've got this error when issuing the statement

# vgexport /dev/vgsapdbp014
vgexport: Volume group "/dev/vgsapdbp014" does not exist in the "/etc/lvmtab" file.
vgexport: Couldn't export volume group "/dev/vgsapdbp014".

i'm also already did

#rm lvmtab
#vgscav -a -v
#lvlnboot -R

and re-create the same thing again&again
and still getting the error
T G Manikandan
Honored Contributor
Solution

Re: Major & Minor Number error when try to to VGcreate

Massimo Bianchi
Honored Contributor

Re: Major & Minor Number error when try to to VGcreate

Hi,
i had similar issues, because some kernel structure got some dirty in it, and didn't let re-use a minor untill a reboot if that had been previously used.

There were some patched regarding this... have you some recent lvm patches ?

swlist | grep -i lvm


But, you can try with a different minor, like 0x080000, one that you have never used till so far.


HTH,
Massimo
Muda Ikhsan
Advisor

Re: Major & Minor Number error when try to to VGcreate

Hi..

Thanks... will try to reboot my systems. and do it all over again..
the swlist | grep -i lvm does not show me anything
Massimo Bianchi
Honored Contributor

Re: Major & Minor Number error when try to to VGcreate

Hi,
forgot a little piece :)

swlist -l product | grep -i lvm

Output similar to the following:


risap004:/root/home/root> swlist -l product | grep -i lvm
LVM B.11.00 LVM
PHCO_21630 1.0 LVM commands cumulative patch
PHKL_22267 1.0 11.00 LVM Cumulative patch


Mine is not recent, but it works...

Massimo