[linux-lvm] Cannot get rid of root filesystem LVM snapshot

Martin Dvořák 155144 at gmail.com
Sat Sep 9 23:53:34 UTC 2006


Thanks for info. I suggest to stress the fact that snapshotting of
root filesystem is not yet supported somewhere in documentation,
HOWTOs etc. Many people might not be as lucky as me and find it out
only after they are left with frozen or even corrupted system.

Martin

2006/9/10, Alasdair G Kergon <agk at redhat.com>:
> The tools do not support root snapshots properly yet - whether or not they
> work is down to chance.  To remove one reliably you need lvremove from a
> rescue environment - you're lucky lvremove is refusing to proceed - if it
> got further it could hang your machine.  In principle you can recover
> without rebooting but you'll need to write a custom script to run various
> dmsetup commands from a ramdisk, for example, and then fix up the lvm2
> metadata with activation disabled.  [If you learn how snapshots are
> created/destroyed you can work out what to do: sorry, it's too much for me
> to explain here.  This is what the tools will want enhancing to do to
> provide proper support.]
>
> Older kernels like yours however can get into a state where recovery is only
> possible by writing directly to kernel memory, if you already ran certain
> commands in the wrong sequence.
>
> Alasdair
> --
> agk at redhat.com
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm at redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>




More information about the linux-lvm mailing list