Operating System - HP-UX
1844185 Members
2485 Online
110229 Solutions
New Discussion

problem to recreate volume group

 
Mike_108
Advisor

problem to recreate volume group

how to recreate volume group if the previous volume group was deleted. I'm having problem to create this volume group as system will report "the volume group already define in lvmtab"

how to solve this problem..?
4 REPLIES 4
Michael Tully
Honored Contributor

Re: problem to recreate volume group

This should fix it.

# strings /etc/lvmtab (to make sure that the group is there)
# mv /etc/lvmtab /etc/lvmtab.010802
# vgscan -p -v (if no errors)
# vgscan -v (will re-create the /etc/lvmtab file)

You should then be able to create the volume group etc.
Anyone for a Mutiny ?
T G Manikandan
Honored Contributor

Re: problem to recreate volume group

Just do this

#mv /etc/lvmtab /etc/lvmtab.old

#vgscan -a
to rebuild the lvmtab file

You are creating a new volume group vg02.

Just check your /dev/vg02/group file.
If you have removed the vg02 volume group then also remove the /dev/vg02/group file.
then re-create using

mkdir /dev/vg_name
mknod /dev/vg_name/group c 64 0x0n0000
Here n should be unique.
Check using ll /dev/*/group


Thanks
Sajid_1
Honored Contributor

Re: problem to recreate volume group

The best solution will be:
# mv /etc/lvmtab /etc/lvmtab.org
# vgscan -a
This will recreate the VG information.

Also, if you have the map file of the original VG, you can do a vgimport too:
# vgimport -m mapfile ...options ...

rgds,
learn unix ..
Mike_108
Advisor

Re: problem to recreate volume group

guys,
thanks a lot on your effort to solve this prob.
this prob. already solve by HP engineer by changing the disk drive and reconfigure back that partition.

Regards,

Mike