recover lvm partition

Patrick Dupre pd520 at york.ac.uk
Sun Dec 19 01:53:16 UTC 2010


On Sun, 19 Dec 2010, Gregory Hosler wrote:

> -----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.a
Yes, I though that it will have do it by itself !
probably that system-config-lvm would have do it, but I did not find
a cd live with system-config-lvm !
I did not what to touch the lv on an active system.
So question, is it safe to resize the logical partition on an active
drive ?
Is there a live CD with a system-config-lvm ?

Thank.


  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-----
>

-- 
---
==========================================================================
  Patrick DUPRÉ                      |   |
  Department of Chemistry            |   |  Phone: (44)-(0)-1904-434384
  The University of York             |   |  Fax:   (44)-(0)-1904-432516
  Heslington                         |   |
  York YO10 5DD  United Kingdom      |   |  email: patrick.dupre at york.ac.uk
==========================================================================


More information about the users mailing list