[lvm-devel] [PATCH 2/2] Fix lv-seg relationship on layer removal

Jim Meyering jim at meyering.net
Sat Feb 23 08:44:25 UTC 2008


"Jun'ichi Nomura" <j-nomura at ce.jp.nec.com> wrote:
> When removing a layer, segments are moved from the layer LV to
> the original LV (parent).
> Before doing that, call lv_empty() to cleanup the parent and
> any relationships.
>
> Without this, the relationship between the layer_lv and parent remains
> and lvconvert will fail, for example:
>
> # lvconvert -m-1 vg/lvol0
>   LV lvol0_mimagetmp_2 used by LV lvol0:0-511, but is not listed in LV lvol0 segments list.
>   Internal error: LV segments corrupted in lvol0_mimagetmp_2.
>   intermediate VG write failed.

Hi Jun'ichi,

Would you please consider writing (or just outlining) a test case
that fails without yesterday's change, but succeeds with it?

Future maintainers will be grateful :-)




More information about the lvm-devel mailing list