Lpic 2 Linux Engineer · Free Practice Question Medium
Question 19
- A mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sdb /dev/sdc
- B mdadm --create /dev/md0 --level=0 --raid-devices=2 /dev/sdb /dev/sdc
- C mdadm --assemble /dev/md0 /dev/sdb /dev/sdc
- D mdadm --auto-detect /dev/md0 --level=1 --raid-devices=2 /dev/sdb /dev/sdc
Reveal correct answer
Correct answer: A
A. This command creates a RAID 1 array named /dev/md0 with a mirroring level of 1 and two RAID devices (/dev/sdb and /dev/sdc). This is the correct command to achieve mirroring for redundancy in the given scenario.
B. This command creates a RAID 0 array, which is not suitable for mirroring and redundancy. RAID 0 offers striping without redundancy, so it is not the correct command for setting up a RAID 1 array.
C. This command is used to assemble an existing RAID array, not to create a new one. It is not the correct command for creating a new RAID 1 array with mirroring for redundancy.
D. The --auto-detect option is not a valid option for creating a RAID array with mdadm. This command also includes incorrect syntax for creating a RAID 1 array. It is not the correct command for setting up a RAID 1 array with mirroring for redundancy.
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
