19 lines
488 B
Diff
19 lines
488 B
Diff
tools/vgremove.c | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/tools/vgremove.c b/tools/vgremove.c
|
|
index 8f73297..b6685ae 100644
|
|
--- a/tools/vgremove.c
|
|
+++ b/tools/vgremove.c
|
|
@@ -65,6 +65,10 @@ static int _vgremove_single(struct cmd_context *cmd, const char *vg_name,
|
|
}
|
|
}
|
|
|
|
+ if (vg->pool_metadata_spare_lv &&
|
|
+ !lvremove_single(cmd, vg->pool_metadata_spare_lv, &void_handle))
|
|
+ return_ECMD_FAILED;
|
|
+
|
|
if (!lockd_free_vg_before(cmd, vg, 0))
|
|
return_ECMD_FAILED;
|
|
|