Page 2 of 2

Re: Recover partition table for Linux LVM2

Posted: 06 Jun 2012, 21:55
by kiper
Thank you so much, Remy. I understand better the LVM.

Mi time is over. I reinstalled Ubuntu Server, lost my data, and reconfigured all again. I wrote every step so I know exactly how to get the old configuration.

I would love to know how to solve this "issue", because it could happen again, but I'm on the deadline and this time is better to rebuild...

I reboot with Alt + Print Scr and R + E + I + S + U + B because e2fsck didn't work in normal reboot. Then I did run e2fsck -f -b 32768 /dev/mapper/grupoprincipal-volumenlogicohome and the output was:

/dev/sda1: recovering journal
e2fsck: unable to set superblock flags on /dev/mapper/grupoprincipal-volumenlogicohome


It's a shame :cry:

Remy, thank you for your time and your wise words :)

See you soon.

Re: Recover partition table for Linux LVM2

Posted: 07 Jun 2012, 07:36
by remy
You're welcome, sorry that we didn't found the solution in time. You weren't so far : e2fsck is telling that he recognized a filesystem, but wasn't able to repair with THIS superblock. Just like if you were in front of the good door, but with the wrong key. In that case, better solution is sometimes to try another key, instead of rebuilding a whole house ;)

(Waoouuuuu :geek: )

Possible solutions to try next time : Whith testdisk or with mkfs -n you should have been able to determine what were the other superblocks positions, and try to repair with other superblock. You may also try to recover with ext3grep or extundelete (even files that were not deleted).

EDIT : next time you loose data, first step is to do bit to bit copy of every disk. You can then reconfigure your server and continue searching on the copies.