LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-09-2013, 01:28 AM   #1
tuxsea
LQ Newbie
 
Registered: Jan 2013
Posts: 2

Rep: Reputation: Disabled
repair lvm superblock


Hi. I have an lvm partion with two volumes (/home and /) with no space unallocated. Since I needed more room for / i shrinked /home 1G and extended / both using system-config-lvm. But when i reboot i saw something like this
Code:
 ext4_check_descriptors: Block bitmap for group 577 not in group (block 18918726)!
group descriptors corrupted!
run e2fsck -b 32768
...
i restarted again with a fedora12 livecd, root mounts fine. I found some information, but since its my /home and don't have any backup, cause that's how my brilliant self rolls :fp: I wanted to do an image of the partion at least, with d3dd or ddrescue but they both have to perform fsck and i don't want to screw it i also read its not so bright triying to image a damaged partition so i'd like someone to guide me into which is the safest bet, please

As far as i tell i should be using vgcfgrestore, however will it restore both volumes to their original size or will it fix whatever is wrong with the /home volume. where to begin?

http://blog.adamsbros.org/2009/05/30...thout-backups/
http://forums.fedoraforum.org/archiv.../t-162893.html
http://]http://www.linuxquestions.or...l-size-497534/
https://bbs.archlinux.org/viewtopic.php?id=141904
http://www.cyberciti.biz/faq/recover...ted-partition/
http://www.linuxquestions.org/questi...taloss-557746/
http://www.linuxquestions.org/questi...th-lvm-637951/

Thanks!
 
Old 01-10-2013, 04:10 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,834

Rep: Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820
Quote:
Originally Posted by tuxsea View Post
... i also read its not so bright triying to image a damaged partition so i'd like someone to guide me into which is the safest bet, please
This is one of the few occasions when you really want to use dd itself.
Take an image of the disk and play around with that. If it all goes to hell, copy it again and try something else. I'm surprised the GUI tool would mess up, but I wouldn't use it myself.

Then again, I'm anal about backups - especially when screwing around with partitions that contain data I care about.
 
Old 01-17-2013, 09:41 PM   #3
tuxsea
LQ Newbie
 
Registered: Jan 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hi I haven't fix this yet. I set up a vm but i've been unable to reproduce the bad superblock error. I did however resize the logical volume but not the fs and partially fix it with vgrestore.
So can someone help me to reproduce the error, also what's the difference between /etc/lvm/archives and /etc/lvm/backup?
Thanks
 
Old 01-18-2013, 12:11 AM   #4
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 2,959

Rep: Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268
The "backup" directory contains a listing of the current configuration of each volume group. The "archives" directory contains up to 10 (by default) previous versions of the listing for each volume group.
 
  


Reply


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
Repair FAT hard drive superblock conormacaoidh Linux - Hardware 5 01-14-2012 05:10 AM
[SOLVED] LVM repair via /etc/lvm files? Ezplan Linux - Server 2 05-19-2011 09:46 AM
Repair corrupt partition on LVM Peter Bushnell Linux - General 3 05-09-2010 02:15 AM
repair failed lvm partition aclhkaclhk Linux - Hardware 1 09-08-2009 11:45 PM
Repair LVM partition megerdin Linux - Newbie 7 02-24-2009 09:30 AM


All times are GMT -5. The time now is 10:22 AM.

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