LPIC-2 Exam 201 (Linux Engineer) — Question 33
Which single command simulates a failed device within a RAID 5 array?
Answer options
- A. mdadm --remove /dev/md0 /dev/sdd1
- B. mdadm --zero-superblock /dev/sdf3
- C. mdadm --force-fault /dev/md2 /dev/sde2
- D. mdadm --fail /dev/md0 /dev/sdc1
- E. mdadm /dev/md0 --offline /dev/sdc1
Correct answer: D
Explanation
The correct command to simulate a failed device in a RAID 5 array is 'mdadm --fail /dev/md0 /dev/sdc1', as it specifically marks the device as failed. The other options either remove the device, zero the superblock, or mark the device as offline, but they do not simulate a failure in the same manner.