--- cdrom.image/sme10/Packages/base/sme-kickstart.cfg 2020/11/25 13:33:10 1.5 +++ cdrom.image/sme10/Packages/base/sme-kickstart.cfg 2020/12/29 15:12:14 1.6 @@ -126,8 +126,8 @@ EOF # from https://wiki.contribs.org/Raid # 2 Drives - Software RAID 1 # 3 Drives - Software RAID 1 + 1 Hot-spare - # 4-6 Drives - Software RAID 5 + 1 Hot-spare - # 7+ Drives - Software RAID 6 + 1 Hot-spare + # 4 Drives - Software RAID 6 + # 5+ Drives - Software RAID 6 + 1 Hot-spare if [ ${#DRIVES[@]} == 2 ] ; then LEVEL=1 @@ -135,9 +135,9 @@ EOF elif [ ${#DRIVES[@]} == 3 ] ; then LEVEL=1 SPARE=1 - elif (( ${#DRIVES[@]} > 3 && ${#DRIVES[@]} <= 6 )) ; then - LEVEL=5 - SPARE=1 + elif [ ${#DRIVES[@]} == 4 ] ; then + LEVEL=6 + SPARE=0 else LEVEL=6 SPARE=1 @@ -150,10 +150,10 @@ EOF # Include the EFI partition if necessary if [ -d /sys/firmware/efi ] ; then - printf "raid /boot/efi --fstype=efi --level=1 --spares=%s --device=md9 %s\n" "$SPARE" "$EFIDEVS" >> /tmp/part-include + printf "raid /boot/efi --fstype=efi --level=1 --spares=0 --device=md9 %s\n" "$EFIDEVS" >> /tmp/part-include fi - printf "raid /boot --fstype=xfs --level=1 --spares=%s --device=md0 %s\n" "$SPARE" "$BOOTDEVS" >> /tmp/part-include + printf "raid /boot --fstype=xfs --level=1 --spares=0 --device=md0 %s\n" "$BOOTDEVS" >> /tmp/part-include printf "raid pv.01 --level=%s --spares=%s --device=md1 %s\n" "$LEVEL" "$SPARE" "$ROOTDEVS" >> /tmp/part-include # Set up LVM