Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 12-17-2012, 04:09 PM   #1
LQ Newbie
Registered: Jan 2011
Posts: 12

Rep: Reputation: 0
HELP! Restoring a LVM Logical Volume

I accidentally added a PV to a LV, I couldn't remove it the proper way so I formatted it (No data had been added to it, it was empty anyway!) Now the whole LV is just GONE. There was a lot of info on there ~7 TB. Can I restore the LV?

Edit: I reactivated it with --partial. I removed the PV from the VG with vgreduce --removemissing but it says 'Partial LV lvhome needs to be repaired', do I actually have to repair it considering no information is gone? Or will it give errors now?

I just did vgreduce --removemissing --force and now the LV is gone, please don't tell me all the data is gone, PLEASE HELP?

I just want that data back, I don't have a full backup because the backup volume was what I was TRYING to extend, why have removing an EMPTY volume broken it? There was NOTHING on it!

Can I just recreate the LV?

Volume group "backup" using metadata type lvm2
Volume group "fileshare" using metadata type lvm2 <-- this one

lvscan doesn't show it anymore.

pvscan still shows the 3 drives as part of VG fileshare but it dsays they are mainly 'free'.

Edit: Using the information here:

I managed to restore it to how it was before I even added in the 4th drive, panic over... breathe...

Last edited by Checksumfail; 12-17-2012 at 05:03 PM.
Old 12-18-2012, 07:45 AM   #2
Registered: Jan 2005
Location: Summer Midwest USA, Central Illinois, Winter Central Florida
Distribution: SlackwareŽ
Posts: 13,023
Blog Entries: 28

Rep: Reputation: 2277Reputation: 2277Reputation: 2277Reputation: 2277Reputation: 2277Reputation: 2277Reputation: 2277Reputation: 2277Reputation: 2277Reputation: 2277Reputation: 2277
Moderator Response


I am marking this thread as [Solved], since your edit seems to show the situation as solved. You can mark the post as [Solved] via the thread tools as OP.

In the future please post to the thread instead of editing to include changes or updates to your problem.

That way anyone can follow your thread with continuity for the constructive posts to the thread.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LVM Mount Physical Volume/Logical Volume without a working Volume Group mpivintis Linux - Newbie 10 01-11-2014 07:02 AM
HELP! Restoring a LVM Logical Volume Checksumfail Linux - Server 2 12-18-2012 12:07 AM
Extended LVM Volume group and Logical Volume. But space not usable linuxlover.chaitanya Linux - Server 1 11-19-2012 09:37 AM
[SOLVED] delete logical volume (lvm) Art McClure Slackware 6 04-01-2012 07:04 PM
Shrinking a Logical Volume With LVM jimmyjiang Red Hat 1 02-28-2008 04:45 PM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:21 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration