summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-07-01 07:59:40 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-07-01 07:59:40 +0000
commit72d5805da9b30a8066d865b2a6ea9a0f6dd2500c (patch)
treea29212c43f727504349f3e9bacee5977762a2e10 /perl-install
parent8553975347fb2eb9fa22fa2795ca7f4f143157b9 (diff)
downloaddrakx-backup-do-not-use-72d5805da9b30a8066d865b2a6ea9a0f6dd2500c.tar
drakx-backup-do-not-use-72d5805da9b30a8066d865b2a6ea9a0f6dd2500c.tar.gz
drakx-backup-do-not-use-72d5805da9b30a8066d865b2a6ea9a0f6dd2500c.tar.bz2
drakx-backup-do-not-use-72d5805da9b30a8066d865b2a6ea9a0f6dd2500c.tar.xz
drakx-backup-do-not-use-72d5805da9b30a8066d865b2a6ea9a0f6dd2500c.zip
- we can keep vg available when using vgreduce
- we must update the vg total size after removing a pv
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/lvm.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/lvm.pm b/perl-install/lvm.pm
index f46fa2482..79aac82d9 100644
--- a/perl-install/lvm.pm
+++ b/perl-install/lvm.pm
@@ -126,9 +126,9 @@ sub vg_add {
sub vg_reduce {
my ($lvm_vg, $part_pv) = @_;
- lvm_cmd('vgchange', '-a', 'n', $lvm_vg->{VG_name});
lvm_cmd('vgreduce', $lvm_vg->{VG_name}, devices::make($part_pv->{device})) or die N("Physical volume %s is still in use", $part_pv->{device});
@{$lvm_vg->{disks}} = difference2($lvm_vg->{disks}, [ $part_pv ]);
+ update_size($lvm_vg);
delete $part_pv->{lvm};
set_isFormatted($part_pv, 0);
}