1838413 Members
2942 Online
110126 Solutions
New Discussion

lvm

 
sanmukh
Occasional Contributor

lvm

I want to recover my lvmtab configuration file. How do i recover it?
5 REPLIES 5
Pete Randall
Outstanding Contributor

Re: lvm

It depends on what you mean by recover. You could restore a prior version (though I wouldn't guarantee that it would then reflect the reality of your LVM layout as it currently exists) or you could run vgscan:

mv /etc/lvmtab /etc/lvmtab.old (just in case)
vgscan -a


Pete

Pete
James R. Ferguson
Acclaimed Contributor

Re: lvm

Hi:

Use 'vgscan' to recreate an 'lvmtab':

# mv /etc/lvmtab /etc/lvmtab.old
# vgscan -a -v
# vgchange -a y
# lvlnboot -R

...and then use 'vgreduce' and 'vgextend' as necessary to promote secondary 'pvlinks' to primary ones if you need to reorder alternate LVM links for high-availablity.

Regards!

...JRF...
sanmukh
Occasional Contributor

Re: lvm

After i run vgscan, it shows error that etc/lvmtab could not be read into memory. what could be the problem.
Sunny Jaisinghani
Trusted Contributor

Re: lvm

hello,

after taking the backup of the /etc/lvmtab file; remove it and then try running vgscan.

sunny
James R. Ferguson
Acclaimed Contributor

Re: lvm

Hi:

Follow the procedures outlined in Technical Knowledge Base document # KBRC00017128.

If you have a good backup copy of '/etc/lvmtab' you can try restoring that first.

Regards!

...JRF...