[lvm-devel] [PATCH 05/23] Replicator: suspend/deactivate replicator

Alasdair G Kergon agk at redhat.com
Thu May 6 10:14:20 UTC 2010


On Thu, May 06, 2010 at 10:34:47AM +0200, Zdenek Kabelac wrote:
> With the Replicator we have the logic, which has the use case for both
> variants (and no other target so far needed this) - thus we need to
> distinguish between them somehow.
> 
>      master replicator node     (replicator0)
>            replicator-dev node  (lv1)
>            replicator-dev node  (lv2)
> 
> We may want to either 'remove/suspend' the whole replicator - or just one leg.
> Thus cutting the leg without suspending master node is valid and supported
> operation here. So to differentiate between cutting leg or replicator the
> parent suspend flag is used. That way we may atomically freeze the whole
> replicator and avoid damage in the ordering of rlogged data.
 
Elsewhere we issue the suspend at the top part of the tree that we wish to 
suspend.  So distinguish the two cases by suspend(replicator0) vs suspend(lv1).

So I'm still not seeing the complete picture/problem here.

Alasdair




More information about the lvm-devel mailing list