From 22724967131e7f327e7d7aa6974b58fb87ad56b3 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 22 Sep 2004 03:46:21 +0000 Subject: call pvremove on every PVs when destroying a VG (to clear the LVM2 magic) (bugzilla #11579) --- perl-install/lvm.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/perl-install/lvm.pm b/perl-install/lvm.pm index 23a069565..fae0a8c6b 100644 --- a/perl-install/lvm.pm +++ b/perl-install/lvm.pm @@ -116,6 +116,7 @@ sub vg_destroy { lvm_cmd('vgchange', '-a', 'n', $lvm->{VG_name}); lvm_cmd_or_die('vgremove', $lvm->{VG_name}); foreach (@{$lvm->{disks}}) { + lvm_cmd_or_die('pvremove', devices::make($_->{device})); delete $_->{lvm}; set_isFormatted($_, 0); } -- cgit v1.2.1