Operating System - HP-UX
1836746 Members
2813 Online
110109 Solutions
New Discussion

Re: Problem with VG and LVG

 
qamar_2
Occasional Contributor

Problem with VG and LVG

Hello All,

With reference to my earlier mail , Now I have decided to recreate volume groups and restore data from the backup.When I crate a volume group, it gives the error "A volume group is already using this major and minor number".

pls help me...

Best Regards,

Qamar Khan


Qamar Jamal
4 REPLIES 4
A. Clay Stephenson
Acclaimed Contributor

Re: Problem with VG and LVG

Hi qamar:

If you want to do that you will need to a vgexport on each volume group other that vg00.

e.g. vgexport /dev/vg01

But before you restore from backup you really need to figure out what is going on or it will happen again at the next reboot. You need to fix the problem not the symptom. If you can't do a vhange it's time to do the vgscan - you will be no worse off.

Clay
If it ain't broke, I can fix that.
Sachin Soni_1
Frequent Advisor

Re: Problem with VG and LVG

you can try creating Vg's by using another major and mnor no..man specify different no. in mknod command when u r creating group file.
thats all!!!
N-joy
Carsten Krege
Honored Contributor

Re: Problem with VG and LVG

The problem is that there are still LVM structures of this VG resident in the memory. There are two workarounds:

- reboot and retry
- use a new minor number for the group device file

mknod /dev/vgXX/group c 64 0xYY0000

where YY a free minor number in the range 00 .. 09 (or even higher if the kernel parameter maxvgs (default=10) has been increased).


Carsten
-------------------------------------------------------------------------------------------------
In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move. -- HhGttG