mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-19 14:04:17 +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:
parent
2a6078f961
commit
ffea7daec3
@ -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: Consider using the raid1 mirror type to avoid this.");
|
||||||
log_warn("WARNING: See global/mirror_segtype_default in lvm.conf.");
|
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";
|
err = "raid subvolumes";
|
||||||
|
} else if (lv_is_writecache(origin_lv)) {
|
||||||
|
err = "writecache";
|
||||||
|
}
|
||||||
|
|
||||||
if (err) {
|
if (err) {
|
||||||
log_error("Snapshots of %s are not supported.", err);
|
log_error("Snapshots of %s are not supported.", err);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user