recover lvm partition

Gregory Hosler ghosler at redhat.com
Sun Dec 19 01:49:16 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/18/2010 11:25 PM, Patrick Dupre wrote:
> Hello,
> 
> I made a big mistake, think that lvm partitionning was working has
> gparted !
> 
> In a couple of words
> I made a lvreduce -l+250 /dev/Vol0/part1
> then
> lvextend -l+250 /dev/Vol0/part2
> 
> part1 had more than 250 extends free but fsck abort on /dev/Vol0/part1
> (but is OK on part2).
> Can I go back, ie. move back the 250 extends ?

no. not exactly.

sounds like you forgot to resize2fs the filesystem prior to the reduction. That
is a non-recoverable, catastrophic, mistake. You will need to recover from your
most recent backup.

you *may* be able to mount the non-fsck filesystem and copy it somewhere. do not
expect that everything will be recovered, from what you have described, it is
likely that any files that were in the extends that you gave up will be
corrupted. in fact, the copy of those files will fail because the blocks that
the file used to be in is no longer balled to the block device.

but you *may* be able to recover other files, before you go about the business
of rebuilding and reconstructing your lvm...

All the best,

- -Greg

> Thank.
> 


- -- 
+---------------------------------------------------------------------+

Please also check the log file at "/dev/null" for additional information.
                (from /var/log/Xorg.setup.log)

| Greg Hosler                                   ghosler at redhat.com    |
+---------------------------------------------------------------------+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAk0NZJsACgkQ404fl/0CV/RqbgCbBt1l97BnA/dxKa4CcEB8JWgB
1s4AnihgvQPwB7YVbp5kKvc/r6AOYxlW
=kH5q
-----END PGP SIGNATURE-----


More information about the users mailing list