1833330 Members
4980 Online
110051 Solutions
New Discussion

Empty lvmtab

 
SOLVED
Go to solution
Bona_1
Frequent Advisor

Empty lvmtab

Hello All,
My server has an empty /etc/lvmtab all of a sudden. Does anyone know how to re-create an lvmtab file?

Thanks
Bona
7 REPLIES 7
Mark Grant
Honored Contributor
Solution

Re: Empty lvmtab

"vgscan -a"
Never preceed any demonstration with anything more predictive than "watch this"
RAC_1
Honored Contributor

Re: Empty lvmtab

do

vgscan -pva (in preview mode to know what is going one here.)

To rebuild do
vgscan -a

Anil
There is no substitute to HARDWORK
Robert-Jan Goossens
Honored Contributor

Re: Empty lvmtab

Hi Bone,

Before the vgscan -a move the empty file.

# mv /etc/lvmtab /etc/lvmtab.bad
# vgscan -a

Robert-Jan
Geoff Wild
Honored Contributor

Re: Empty lvmtab

Either run vgscan -a, or restore from backup.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
SS_6
Valued Contributor

Re: Empty lvmtab

You must move current lvmtab file before creating new one.
# mv /etc/lvmtab /etc/lvmtab.orig
#vgscan -a -v
By providing solutions I am helping myself
Paula J Frazer-Campbell
Honored Contributor

Re: Empty lvmtab

Hi

AS well as recreating the lvmtab you should investigate as to how it ended up empty.

Check shell history and syslog.log.


Paula
If you can spell SysAdmin then you is one - anon
Michael Tully
Honored Contributor

Re: Empty lvmtab

All of a sudden means that it has been removed. Suggest you do this:

Change the root password.
Make sure there is only one account that has a UID of 0.
Review /etc/sudoers if you utilise this utility.

As suggested, you can re-create it with vgscan or restore from backup.
Anyone for a Mutiny ?