1844576 Members
2870 Online
110233 Solutions
New Discussion

lvremove error

 
Joe Profaizer
Super Advisor

lvremove error

Rec'd following error on lvremove. Please consult on how to correct this.
# lvremove /dev/vgdvl/lvol2

The logical volume "/dev/vgdvl/lvol2" is not empty;
do you really want to delete the logical volume (y/n) : y
Logical volume "/dev/vgdvl/lvol2" has been successfully removed.
vgcfgbackup: /etc/lvmtab is out of date with the running kernel:Kernel indicates
17 disks for "/dev/vgdvl"; /etc/lvmtab has 16 disks.
Cannot proceed with backup.
4 REPLIES 4
harry d brown jr
Honored Contributor

Re: lvremove error

rename the /etc/lvmtab file (don't delete it).

Then run vgscan, which will recreate /etc/lvmtab.

harry

live free or die
Live Free or Die
Sridhar Bhaskarla
Honored Contributor

Re: lvremove error

Joe,

This is obviously not due to your lvremove. It might have been there before also since the lvremove runs vgcfgbackup, you are seeing the error now.

Do an lvlnboot -v and you will find the disk that is missing or having problems. You can find the volume group by either doing a vgdisplay -v or strings /etc/lvmtab. You may have to replace the disk through vgcfgrestore process.

There are many threads on vgcfgrestore process in this forum. You can follow anyone of them. If this disk is a mirror disk, then it's a matter or replacing the disk and running vgcfgrestore. If it belongs to a data volume group, then you may need to restore the file systems that are part of this disk.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
James R. Ferguson
Acclaimed Contributor

Re: lvremove error

Hi Joe:

This is a potentially serious error. Document #KBRC00000632 describes this in detail and provides guidelines. I have attached the document for your convenience.

Regards!

...JRF...
Joe Profaizer
Super Advisor

Re: lvremove error

I did a strings /etc/lvmtab and all the disks check out except that there is an ";t68" entry listed as a disk. I have no idea where this came from. Please consult.
Thanks............