From f6bb0ea980cf118ab604cc03a8086a83f7ce7e27 Mon Sep 17 00:00:00 2001 From: Thomas Backlund Date: Wed, 22 Aug 2018 14:27:07 +0300 Subject: raid10 can be created with just 2 disks as a high-performance raid1 --- perl-install/raid.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/raid.pm') diff --git a/perl-install/raid.pm b/perl-install/raid.pm index 898b276ac..9ae70b6d8 100644 --- a/perl-install/raid.pm +++ b/perl-install/raid.pm @@ -196,7 +196,7 @@ sub format_part { sub verify { my ($raids) = @_; foreach (@$raids) { - my $nb = $_->{level} =~ /10/ ? 4 : $_->{level} =~ /4|5|6/ ? 3 : 2; + my $nb = $_->{level} =~ /4|5|6/ ? 3 : 2; @{$_->{disks}} >= $nb or die N("Not enough partitions for RAID level %d\n", $_->{level}); } } -- cgit v1.2.1