System Management
A technician has four unused partitions, /dev/sdb1 through /dev/sde1. The company needs a RAID 5 array that uses three partitions as active members and keeps the fourth as a hot spare that is rebuilt into the array automatically if a member fails. Which command creates this array?
Show the answer
Correct answerD. mdadm --create /dev/md0 --level=5 --raid-devices=3 --spare-devices=1 /dev/sd[b-e]1
--raid-devices=3 sets three active members and --spare-devices=1 leaves the fourth partition as a hot spare. Making all four devices active would leave no spare. RAID 6 needs at least four active devices, and --assemble only starts an existing array.