Operating System - HP-UX
1833777 Members
1886 Online
110063 Solutions
New Discussion

Re: need to repair lvmtab file on cluster

 
meekrob
Super Advisor

need to repair lvmtab file on cluster

Dear All,

I need information on how to repair the lvmtab file on cluster (I know we can use vgscan but I know also that sometimes there are risks).
In fact, the package VG entries are missing in lvmtab so I canâ t do the move of package from one node to another.
Your help is appreciated

Thanks a
6 REPLIES 6
T G Manikandan
Honored Contributor

Re: need to repair lvmtab file on cluster

check the DocId: UMCSGKBRC00010012
G. Vrijhoeven
Honored Contributor

Re: need to repair lvmtab file on cluster

Hi,

You can use vgimport to import the vginfo on other servers that are a part of a cluster. Mind that you specify the correct devices, since they can differ on different nodes.

HTH,

Gideon

Hoefnix
Honored Contributor

Re: need to repair lvmtab file on cluster

See also:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=382227

Where Gideon explans how to do this.

Regards,
Peter
Florian Heigl (new acc)
Honored Contributor

Re: need to repair lvmtab file on cluster

I'd start with a vgscan -v -p to check all disks are actually detected as lvm devices.
afterwards You can use a vgimport, but this would mean deactivating the vg, so I'd rather move away /etc/lvmtab and run vgscan without the -p option.
OTOH, if this is the inactive node, vgimport -s -p is the way to go.

(-p is "preview" :)

Regards,
Florian
yesterday I stood at the edge. Today I'm one step ahead.
Vasikaran Venkatesan
Frequent Advisor

Re: need to repair lvmtab file on cluster

Understand No package VG info in node 1.
Assumption: only Package VG entries are missing.

Is the package VG info available on the failover node (node 2)?.
If so,
Node 2:
Import the VG in node 2.
vgexport -pvs -m
rcp the map.file (or ftp) to Node 1
Node 1:
delete directories of the pkg VG in Node 1.
mkdir /dev/
mknod /dev//group c 64 0x??0000
(Replace the ?? w/ unique VG # - preferrably similar to one in Node 2).
vgimport -s -m

the lvmtab should have the correct entries.

Assuming non pkg VGs are also corrupt, you can try to gather VG disks but not in VG, by doing non-destructive vgimport -p (preview option) and go from there.

hope this helps.
Sanjay_6
Honored Contributor

Re: need to repair lvmtab file on cluster

Hi,

If the vg's don't exist in the lvmtab, then shutdown the package on the other node, and import the vg on this node. That will create the lvmtab entries. Of course, do a vgexport on the other node and copy the map file to the node on which the lvmtab entry is missing. Just assume that you forgot to do the vgimport on this node when you were doing the sg configuration.

Hope this helps.

Regds