summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-02-16 19:29:38 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-02-16 19:29:38 +0000
commitc7b7f7ee000f735fa8f2fffd99bf8bf649190381 (patch)
tree65ee0e039a0e87e7c987989f159fab80b5bdc0cb
parent9f2281eb0ecd04f06c652c219e0f779733f807b0 (diff)
downloaddrakx-backup-do-not-use-c7b7f7ee000f735fa8f2fffd99bf8bf649190381.tar
drakx-backup-do-not-use-c7b7f7ee000f735fa8f2fffd99bf8bf649190381.tar.gz
drakx-backup-do-not-use-c7b7f7ee000f735fa8f2fffd99bf8bf649190381.tar.bz2
drakx-backup-do-not-use-c7b7f7ee000f735fa8f2fffd99bf8bf649190381.tar.xz
drakx-backup-do-not-use-c7b7f7ee000f735fa8f2fffd99bf8bf649190381.zip
- call pvcreate with "-y -ff"
- created LVs are notFormatted
-rw-r--r--perl-install/lvm.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/lvm.pm b/perl-install/lvm.pm
index 3ff0b4612..74d831bf7 100644
--- a/perl-install/lvm.pm
+++ b/perl-install/lvm.pm
@@ -72,7 +72,7 @@ sub vg_add {
run_program::run('vgremove', $old_name);
}
my $dev = expand_symlinks(devices::make($part->{device}));
- run_program::run_or_die('pvcreate', $dev);
+ run_program::run_or_die('pvcreate', '-y', '-ff', $dev);
my $prog = run_program::run('vgdisplay', $part->{lvm}) ? 'vgextend' : 'vgcreate';
run_program::run_or_die($prog, $part->{lvm}, $dev);
}
@@ -105,6 +105,8 @@ sub lv_create {
my $nb = 1 + max(map { basename($_->{device}) } @$list);
$lv->{device} = "/dev/$lvm->{LVMname}/$nb";
run_program::run_or_die('lvcreate', '--size', int($lv->{size} / 2) . 'k', '-n', $nb, $lvm->{LVMname});
+ $lv->{notFormatted} = 1;
+ $lv->{isFormatted} = 0;
push @$list, $lv;
}