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.54/tools/lvchange.c =================================================================== --- LVM2.2.02.54.orig/tools/lvchange.c 2009-09-29 22:22:35.000000000 +0200 +++ LVM2.2.02.54/tools/lvchange.c 2009-10-29 20:32:37.000000000 +0100 @@ -118,6 +118,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);