summaryrefslogtreecommitdiffstats
path: root/perl-install/raid.pm
diff options
context:
space:
mode:
authorThomas Backlund <tmb@mageia.org>2018-08-22 14:38:51 +0300
committerThomas Backlund <tmb@mageia.org>2018-08-22 14:38:51 +0300
commit5fd229bcc5185379c5478cccae4fd1f85bc7082f (patch)
tree1ab2da742dfba30305f9b022e5abc55dfeb9d739 /perl-install/raid.pm
parentaef4a318ae22905c13eb202108a4ecf89f358990 (diff)
downloaddrakx-5fd229bcc5185379c5478cccae4fd1f85bc7082f.tar
drakx-5fd229bcc5185379c5478cccae4fd1f85bc7082f.tar.gz
drakx-5fd229bcc5185379c5478cccae4fd1f85bc7082f.tar.bz2
drakx-5fd229bcc5185379c5478cccae4fd1f85bc7082f.tar.xz
drakx-5fd229bcc5185379c5478cccae4fd1f85bc7082f.zip
raid10: use layout f2 with 2 disks for performance
Diffstat (limited to 'perl-install/raid.pm')
-rw-r--r--perl-install/raid.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/raid.pm b/perl-install/raid.pm
index 220a391d1..480868547 100644
--- a/perl-install/raid.pm
+++ b/perl-install/raid.pm
@@ -172,6 +172,7 @@ sub make {
run_program::run_or_die('mdadm', '--create', '--run', $dev,
if_($nb == 1, '--force'),
+ if_($nb == 2 && $part->{level} == 10, '--layout=f2'),
'--chunk=' . $part->{'chunk-size'},
"--level=$part->{level}",
"--raid-devices=$nb",