diff options
author | Alasdair Kergon <agk@redhat.com> | 2012-05-14 16:18:57 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2012-05-14 16:18:57 +0000 |
commit | e0ed1b458db0a10458a34fdb94b804304f2bc0c1 (patch) | |
tree | e9911247721966a2c86b572ed453e92243c019f5 /lib | |
parent | 8b59522d67f459667b983d65c631f3064e49c5d2 (diff) | |
download | lvm2-e0ed1b458db0a10458a34fdb94b804304f2bc0c1.tar.gz lvm2-e0ed1b458db0a10458a34fdb94b804304f2bc0c1.tar.xz lvm2-e0ed1b458db0a10458a34fdb94b804304f2bc0c1.zip |
Warn of deadlock risk when using snapshots of mirror segment type.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/metadata/lv_manip.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/metadata/lv_manip.c b/lib/metadata/lv_manip.c index 15a1945a..3913680c 100644 --- a/lib/metadata/lv_manip.c +++ b/lib/metadata/lv_manip.c @@ -4231,9 +4231,9 @@ static struct logical_volume *_lv_create_an_lv(struct volume_group *vg, struct l if (lv_is_mirror_type(org) && !seg_is_raid(first_seg(org))) { - log_error("Snapshots of \"mirror\" segment types" - " are not supported"); - return NULL; + log_warn("WARNING: Snapshots of mirrors can deadlock under rare device failures."); + log_warn("WARNING: Consider using the raid1 mirror type to avoid this."); + log_warn("WARNING: See global/mirror_segtype_default in lvm.conf."); } if (!lv_info(cmd, org, 0, &info, 0, 0)) { |