diff --git a/WHATS_NEW b/WHATS_NEW index 519802fae..2b486cc0e 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.43 - 10th November 2008 ==================================== + Cope with snapshot dependencies when removing a whole VG with lvremove. Make man pages consistent with either-or options (use "|" everywhere). Merge device-mapper into the lvm2 tree. Correct prototype for --permission on lvchange and lvcreate man pages. diff --git a/man/lvremove.8.in b/man/lvremove.8.in index fc9a6435c..e44ed52bd 100644 --- a/man/lvremove.8.in +++ b/man/lvremove.8.in @@ -12,6 +12,7 @@ lvremove \- remove a logical volume Confirmation will be requested before deactivating any active logical volume prior to removal. Logical volumes cannot be deactivated or removed while they are open (e.g. if they contain a mounted filesystem). +Removing an origin logical volume will also remove all dependent snapshots. .sp If the logical volume is clustered then it must be deactivated on all nodes in the cluster before it can be removed. A single lvchange command diff --git a/tools/lvremove.c b/tools/lvremove.c index 24278b256..8b8401d62 100644 --- a/tools/lvremove.c +++ b/tools/lvremove.c @@ -18,7 +18,7 @@ static int lvremove_single(struct cmd_context *cmd, struct logical_volume *lv, void *handle __attribute((unused))) { - if (!lv_remove_single(cmd, lv, arg_count(cmd, force_ARG))) + if (!lv_remove_with_dependencies(cmd, lv, arg_count(cmd, force_ARG))) return ECMD_FAILED; return ECMD_PROCESSED;