Operating System - HP-UX
1753814 Members
7759 Online
108805 Solutions
New Discussion юеВ

Problems creating Volum Groups

 
SOLVED
Go to solution
Carles Viaplana
Valued Contributor

Problems creating Volum Groups

Hello,

I recovered vg00 from system1 by ignite into other machine and now I want to configure newvolum group from a MSA1000, but I get this error (from SAM):
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
The command used to create volume groups, /sbin/vgcreate, has failed. The stderr output from the command is shown below. The volume group has not been created.

vgcreate: Volume group "/dev/vg01" 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.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Any idea?

Thanks in advance for your help.
Regards,

Carles
8 REPLIES 8
DCE
Honored Contributor
Solution

Re: Problems creating Volum Groups


Carles

run vgexport against all volume groups listed under /dev. They were created via the ignite restore. This will remove them from the system and allow you create he vg's.
Pete Randall
Outstanding Contributor

Re: Problems creating Volum Groups

When you ignited the system, the definitions for *all* the VG's were restored into /dev. You need to remove them before you can recreate them. Try running "vgexport /dev/vg01".


Pete

Pete
erics_1
Honored Contributor

Re: Problems creating Volum Groups

There's a volume group configured on that system with a minor number of 0X010000. Try running: ll /dev/*/group and check the minor numbers already in use. Use command line to manually create the new vg with a minor number not in use on the system. For instance:

mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x020000
vgcreate /dev/vg01

Regards,
Eric
john kingsley
Honored Contributor

Re: Problems creating Volum Groups

It sounds like you have remnants of vg01 from the previous system.

Do you have any files listed in /dev/vg01 ?
If you only see:
/dev/vg01/group

delete this file and the direcory /dev/vg01 then try creating the vg in sam.
Arunkumar.B
Trusted Contributor

Re: Problems creating Volum Groups

Hi Charles,

It seems that already the device files are there for that vg01.

There are two ways to recover
1)export the vg & create once again using vgexport & vgcreate

2)mv /etc/lvmtab /etc/lvmtab.prev
vgscan -a
if the device for are same as the old one.It will create the same for vg01.

cheers
Arunkumar.B
Necessity breaks iron
Marvin Strong
Honored Contributor

Re: Problems creating Volum Groups

As the others have stated vgexport the non vg00 volume groups (specificly vg01) on the machine. That will allow you to create your new volume group.
Mridul Shrivastava
Honored Contributor

Re: Problems creating Volum Groups

If you check /dev then will find that 0x0100000 is being used by some other vg which is being restored by ignite (actually doen't exist on this server). So best way is to execute vgexport command for all other vgs except vg00. After doing this try creating vg from SAM or from command line:

mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x01000000

I hope this helps.
Time has a wonderful way of weeding out the trivial
Carles Viaplana
Valued Contributor

Re: Problems creating Volum Groups

Thanks to all for your replies!

Regards,

Carles