diff options
author | Thomas Backlund <tmb@mageia.org> | 2018-08-22 14:38:51 +0300 |
---|---|---|
committer | Thomas Backlund <tmb@mageia.org> | 2018-08-22 14:38:51 +0300 |
commit | 5fd229bcc5185379c5478cccae4fd1f85bc7082f (patch) | |
tree | 1ab2da742dfba30305f9b022e5abc55dfeb9d739 | |
parent | aef4a318ae22905c13eb202108a4ecf89f358990 (diff) | |
download | drakx-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
-rw-r--r-- | perl-install/NEWS | 1 | ||||
-rw-r--r-- | perl-install/raid.pm | 1 |
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", |