1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

writecache: prevent snapshots

there appear to be problems with taking a snapshot
of an LV with a writecache, so block it until that
is understood or fixed.
This commit is contained in:
David Teigland 2020-02-06 11:27:33 -06:00
parent 2a6078f961
commit ffea7daec3

View File

@ -385,8 +385,11 @@ int validate_snapshot_origin(const struct logical_volume *origin_lv)
log_warn("WARNING: Consider using the raid1 mirror type to avoid this.");
log_warn("WARNING: See global/mirror_segtype_default in lvm.conf.");
}
} else if (lv_is_raid_type(origin_lv) && !lv_is_raid(origin_lv))
} else if (lv_is_raid_type(origin_lv) && !lv_is_raid(origin_lv)) {
err = "raid subvolumes";
} else if (lv_is_writecache(origin_lv)) {
err = "writecache";
}
if (err) {
log_error("Snapshots of %s are not supported.", err);