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.84/tools/lvchange.c =================================================================== --- LVM2.2.02.84.orig/tools/lvchange.c 2011-05-05 02:11:23.000000000 +0200 +++ LVM2.2.02.84/tools/lvchange.c 2011-05-05 02:12:09.000000000 +0200 @@ -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);