1752796 Members
6094 Online
108789 Solutions
New Discussion юеВ

Activate LVM

 
vipi
New Member

Activate LVM

Hi there is a vg which has failed to import i keep getting "already exists in lvmtab" and also mknod fails can any please help also it is part of a cluster , i don't have much exp on this so would appreaciate some help on this
4 REPLIES 4
A. Clay Stephenson
Acclaimed Contributor

Re: Activate LVM

Do a strings /etc/lvmtab; I think you will find an entry already there. Since you don't bother to give many details (like what was mknod's error message), it;s difficult to be very specific.
If it ain't broke, I can fix that.
YoungHwan, Ko
Valued Contributor

Re: Activate LVM

First, backup your mapfile.
# vgchange -a n vg@@
# vgexport -v -p -m /tmp/vg@@.map /dev/vg@@
# vgexport vg@@

And make device file.
# mkdir /dev/vg@@
# mknod /dev/vg@@/group c 64 0x0@0000

Import map file.
# vgimport -v -p -m /tmp/vg@@.map /dev/vg@@ /dev/dsk/c#t#d#

David Bellamy
Respected Contributor

Re: Activate LVM

check in /dev and see if the vg is already listed if it is do a vgexport and start aover
Rocco Foti
Occasional Advisor

Re: Activate LVM

Hi,
you must to create a mapfile from the node that already has the vg (node A):
#vgexport -p -s -m vgXX.map -v vgXX
now if you see the vgXX in the other node (node B) with:
#strings /etc/lvmtab
you must to export the vgXX from node B:
#vgexport vgXX
copy the mapfile from node A to node B and re-create the vg structure (on node B):
#mkdir /dev/vgXX
#mknode /dev/vgXX/group c 64 0x0y0000
where y is the same of node A
import the vg:
#vgimport -s -m vgXX.map -v vgXX
now the vg is ready for activation.

Bye Rocco Foti