diff options
Diffstat (limited to 'tools/lvremove.c')
-rw-r--r-- | tools/lvremove.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/lvremove.c b/tools/lvremove.c index 94c22c3b..e5069a1f 100644 --- a/tools/lvremove.c +++ b/tools/lvremove.c @@ -34,6 +34,12 @@ static int lvremove_single(struct cmd_context *cmd, struct logical_volume *lv, return ECMD_FAILED; } + if (lv->status & MIRROR_LOG) { + log_error("Can't remove logical volume %s used as mirror log", + lv->name); + return ECMD_FAILED; + } + if (lv->status & LOCKED) { log_error("Can't remove locked LV %s", lv->name); return ECMD_FAILED; |