Blame SOURCES/lvm2-2_03_13-vgremove-remove-forgotten-pmspare.patch

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