1834779 Members
2832 Online
110070 Solutions
New Discussion

vgcfgbackup

 
SOLVED
Go to solution
Ahmed Samy Amer
Occasional Advisor

vgcfgbackup

Hi Admins,

I'm getting this Error each time i do an LVM command that execute vgcfgbackup after the command:

vgcfgbackup: /etc/lvmtab is out of date with the running kernel:Kernel indicates 9 disks for "/dev/vgprod"; /etc/lvmtab has 8 disks.

lvmtab contains 8 disks fro vgprod and this is correct, but how to clean the Kernel data or fix it...i rebooted many times.

Thanks
8 REPLIES 8
Printaporn_1
Esteemed Contributor

Re: vgcfgbackup

Hi

#mv /etc/lvmtab /etc/lvmtab.orig
#vgscan

this could help.
enjoy any little thing in my life
Vincenzo Restuccia
Honored Contributor

Re: vgcfgbackup

#rm /etc/lvmtab
recreate it with:
#vgscan -v
Ahmed Samy Amer
Occasional Advisor

Re: vgcfgbackup

I did vgscan and lvmtab was rebuilt successfully then vgcfgbackup is still reporting the same.
Thierry Poels_1
Honored Contributor

Re: vgcfgbackup

hi,
did you REMOVE the original /etc/lvmtab??
vgscan will not rebuild the lvmtab completely if the entries already exist!
regards,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Ahmed Samy Amer
Occasional Advisor

Re: vgcfgbackup

of course ...i renamed lvmtab before doing this!!
Thierry Poels_1
Honored Contributor
Solution

Re: vgcfgbackup

ooops, sorry, I went for the obvious :(

okay, so I presume a disk has been removed?!
try "vgreduce -f /dev/vgxx" ; this will remove missing disks from the volume group.
(a new vgscan might be necessary afterwards)
this should do the trick,
good luck,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Ahmed Samy Amer
Occasional Advisor

Re: vgcfgbackup

Thank you so much,

It's solved.

Ahmed Samy Amer
Occasional Advisor

Re: vgcfgbackup

Sorry,
Thanks for all who replied.
Special thanks for Thierry Poels whose steps i followed and it worked fine.

Thanks again Thierry.
Best of luck for you all.