When activating a shared snapshot, activate origin first. Signed-off-by: Mikulas Patocka --- tools/lvchange.c | 7 +++++++ 1 file changed, 7 insertions(+) Index: LVM2.2.02.60/tools/lvchange.c =================================================================== --- LVM2.2.02.60.orig/tools/lvchange.c 2010-01-06 20:08:58.000000000 +0100 +++ LVM2.2.02.60/tools/lvchange.c 2010-02-08 20:29:34.000000000 +0100 @@ -135,6 +135,13 @@ static int lvchange_availability(struct if (!deactivate_lv(cmd, lv)) return_0; } else { + struct lv_segment *snap_s; + /* If this is shared snapshot, activate origin first */ + if (lv_is_multisnap_cow(lv) && + (snap_s = first_seg(lv)) && snap_s->origin) { + if (!activate_lv_excl(cmd, snap_s->origin)) + return_0; + } if (lv_is_origin(lv) || (activate == CHANGE_AE)) { log_verbose("Activating logical volume \"%s\" " "exclusively", lv->name);