diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2005-07-01 08:00:58 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2005-07-01 08:00:58 +0000 |
commit | 1d92ae482c1537a946ef2f15edea636397b095f0 (patch) | |
tree | 508d7d2a6a23f04d369e335d50bf0431ba5d5f5e /perl-install/lvm.pm | |
parent | 72d5805da9b30a8066d865b2a6ea9a0f6dd2500c (diff) | |
download | drakx-1d92ae482c1537a946ef2f15edea636397b095f0.tar drakx-1d92ae482c1537a946ef2f15edea636397b095f0.tar.gz drakx-1d92ae482c1537a946ef2f15edea636397b095f0.tar.bz2 drakx-1d92ae482c1537a946ef2f15edea636397b095f0.tar.xz drakx-1d92ae482c1537a946ef2f15edea636397b095f0.zip |
handle pvmove
Diffstat (limited to 'perl-install/lvm.pm')
-rw-r--r-- | perl-install/lvm.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/perl-install/lvm.pm b/perl-install/lvm.pm index 79aac82d9..802096e43 100644 --- a/perl-install/lvm.pm +++ b/perl-install/lvm.pm @@ -77,6 +77,12 @@ sub pv_to_vg { get_pv_field($pv, 'vg_name') =~ /(\S+)/ && $1; } +sub pv_move { + my ($pv) = @_; + my $dev = expand_symlinks(devices::make($pv->{device})); + lvm_cmd('pvmove', '-v', $dev) or die N("Moving used physical extents to other physical volumes failed"); +} + sub update_size { my ($lvm) = @_; $lvm->{extent_size} = to_int(run_program::get_stdout('lvm2', 'vgs', '--noheadings', '--nosuffix', '--units', 's', '-o', 'vg_extent_size', $lvm->{VG_name})); |