diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2005-07-01 07:59:40 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2005-07-01 07:59:40 +0000 |
commit | 72d5805da9b30a8066d865b2a6ea9a0f6dd2500c (patch) | |
tree | a29212c43f727504349f3e9bacee5977762a2e10 /perl-install/lvm.pm | |
parent | 8553975347fb2eb9fa22fa2795ca7f4f143157b9 (diff) | |
download | drakx-72d5805da9b30a8066d865b2a6ea9a0f6dd2500c.tar drakx-72d5805da9b30a8066d865b2a6ea9a0f6dd2500c.tar.gz drakx-72d5805da9b30a8066d865b2a6ea9a0f6dd2500c.tar.bz2 drakx-72d5805da9b30a8066d865b2a6ea9a0f6dd2500c.tar.xz drakx-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/lvm.pm')
-rw-r--r-- | perl-install/lvm.pm | 2 |
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); } |