summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/NEWS1
-rw-r--r--perl-install/raid.pm1
2 files changed, 2 insertions, 0 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index b29a2f112..44004583a 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,5 +1,6 @@
- mdadm raid:
o raid10 can be created with just 2 disks as a high-performance raid1
+ o raid10: use layout f2 with 2 disks for performance
o raid6 can be used with 3 disks and up
o get_existing(): detect raid10
- finish-install: remove current media before adding online media (mga#19742)
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",