[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#657843: mdcfg-utils: Wrong minimum number for RAID5 / RAID6 arrays



Package: mdcfg-utils
Version: 1.33
Severity: normal
Tags: d-i patch

Dear Maintainer,

while '3' ist a reasonable academic number for theoretical RAID5 devices,
mdadm allows to create RAID5 arrays with only 2 disks. Compared to a
RAID1, you can expand the the RAID later by adding more disks.
Similar should be true for RAID6, but I have not tested that one.

Regards,
	Adrian
Gemeinsame Unterverzeichnisse: mdcfg-1.33/debian und mdcfg-1.33-patched/debian.
diff -u mdcfg-1.33/mdcfg.sh mdcfg-1.33-patched/mdcfg.sh
--- mdcfg-1.33/mdcfg.sh	2011-01-19 05:48:35.000000000 +0100
+++ mdcfg-1.33-patched/mdcfg.sh	2012-01-29 11:09:37.349451448 +0100
@@ -206,9 +206,9 @@
 	    RAID1)
 		MIN_SIZE=2 ;;
 	    RAID5)
-		MIN_SIZE=3 ;;
+		MIN_SIZE=2 ;;
 	    RAID6)
-		MIN_SIZE=4 ;;
+		MIN_SIZE=3 ;;
 	    RAID10)
 		MIN_SIZE=2 ;;
 	    *)

Reply to: