[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[lvm-devel] Re: Deactivating volume with mounted snapshot

On Wed, May 14, 2008 at 04:28:09PM -0400, Mikulas Patocka wrote:
> Now you mount one of the snapshots. And then, type:
> lvchange -an volume
> --- the result is, that the volume and all the snapshots except the 
> mounted one are deactivated. The mounted snapshot is still active.

> It looks like a bug to me --- it was never indented to have some snapshots 
> active and some not. 

This does *not* of course lead to corruption: it's a constraint we
chose to have LVM2 impose, not device-mapper.

It's not a perfect constraint as you discovered because it would be
impossible to prevent this from ever happening in our current model.

The code "does its best" to do what you asked.  Sure, we could try to
add more checks before deactivating and make the process more
robust, but I'd draw the line at attempting to reactivate already-deactivated
devices in the event of a failure part way through.

agk redhat com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]