Discussion:
[linux-lvm] Does LVM always do 'dm suspend' when lvcreating a thin snapshot?
Mike McCracken
2015-09-03 22:04:33 UTC
Permalink
When creating a thin snapshot of a thin volume, does LVM always freeze the
FS?

I see when I run lvcreate with -vvv that it sends the 'dm suspend' message
to the origin lv, but on looking at the code I wasn't quite able to
convince myself that it will always do that, or under what circumstances it
won't.

Thanks,
-mike
Zdenek Kabelac
2015-09-04 11:05:34 UTC
Permalink
When creating a thin snapshot of a thin volume, does LVM always freeze the FS?
I see when I run lvcreate with -vvv that it sends the 'dm suspend' message to
the origin lv, but on looking at the code I wasn't quite able to convince
myself that it will always do that, or under what circumstances it won't.
Hi

Yes - suspend of thin's snapshot origin is always enforced
as you normally want snapshot FS to be in consistent state.

Zdenek
Mike McCracken
2015-09-04 16:52:37 UTC
Permalink
OK, thanks for confirming!
I'd like to help improve the documentation about this - did I miss a place
where it was mentioned explicitly? If not, where would a discussion of FS
suspending fit? I'm happy to contribute a patch.
Post by Zdenek Kabelac
When creating a thin snapshot of a thin volume, does LVM always freeze the FS?
I see when I run lvcreate with -vvv that it sends the 'dm suspend' message to
the origin lv, but on looking at the code I wasn't quite able to convince
myself that it will always do that, or under what circumstances it won't.
Hi
Yes - suspend of thin's snapshot origin is always enforced
as you normally want snapshot FS to be in consistent state.
Zdenek
_______________________________________________
linux-lvm mailing list
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
Loading...