From 5fd229bcc5185379c5478cccae4fd1f85bc7082f Mon Sep 17 00:00:00 2001 From: Thomas Backlund Date: Wed, 22 Aug 2018 14:38:51 +0300 Subject: raid10: use layout f2 with 2 disks for performance --- perl-install/NEWS | 1 + perl-install/raid.pm | 1 + 2 files changed, 2 insertions(+) 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", -- cgit v1.2.1