[dm-devel] [RFC] [PATCH] lvm2: mirroredlog support

Alasdair G Kergon agk at redhat.com
Wed Sep 30 21:18:26 UTC 2009


On Wed, Sep 30, 2009 at 02:48:22PM -0500, Jon Brassow wrote:
> Inserting a new allocation level is a possibility.  I don't think it's  
> necessary to solve (what I see as) the problem.  Do you have a reason  
> for this?  

It doesn't actually fit into the existing hierarchy very well at all - it's
pretty much an independent property (which the existing allocation routines
do not support).  E.g. consider if you require 'cling' with the log on the
same disk as some of the mirror's data.  Falling through to 'Normal' or
'anywhere' and allowing the log to share a disk could give you a wrong
layout.  But you want to give priority to arrangements with the log on a
different disk where possible.  So do you have to try all the policies twice,
first with the existing find_parallel_areas, and then with a new flag which
allows some specified areas to be 'anywhere' (almost doubling the number of
policies), or perhaps break it into two independent allocations at that point,
one for the data and then one for the log?

Alasdair




More information about the dm-devel mailing list