Skip to contentSkip to conversation

accidentally removed an lv. can i restore it?

linux-lvm Brian J. Murrell 3 participants 4 messages Sep 23, 2009

lore
Share & tools
lore
#0 lore raw

I can't believe what I just did, but I just accidentally removed an LV. I have done nothing to the disk since doing this however. Is there any hope at all at restoring it? Fortunately it has never been resized at all so should at least be contiguous on the disk, somewhere.

Any help whatsoever would be greatly appreciated. Thanx!

b.

#2 lore raw
Quoted 1 line · Alasdair G Kergon [[email protected]] wrote:

Look into vgcfgrestore.

Also look at your /etc/lvm/archive/ for all archived metadata. You should be able to use '--list' option.

#3 lore raw
In reply to Alasdair G Kergon
Quoted 1 line · Alasdair G Kergon

Look into vgcfgrestore.

This did the trick. Thanx Alasdair!

I have never had occasion to use vgcfgrestore prior to this fubar but it worked like a charm.

Again, many, many, thanx! I owe you at least one beer. You saved a lot of data.

b.