- A
mdadm --add /dev/md0 /dev/sdc
Why wrong: Must fail and remove the old disk first.
- B
mdadm --manage /dev/md0 --fail /dev/sdb --remove /dev/sdb --add /dev/sdc
Correct sequence: fail, remove, add.
- C
mdadm --remove /dev/md0 /dev/sdb --add /dev/sdc
Why wrong: Must fail the disk before removing.
- D
mdadm --replace /dev/md0 --with /dev/sdc
Why wrong: --replace is not a valid mdadm option.
Quick Answer
The correct command is `mdadm --manage /dev/md0 --fail /dev/sdb --remove /dev/sdb --add /dev/sdc`. This sequence is necessary because mdadm requires you to explicitly mark the failed disk with `--fail` before removing it with `--remove`, and then the replacement disk is added with `--add`; skipping any of these steps can leave the array in an inconsistent state or fail to register the new disk. On the Red Hat Certified System Administrator EX200 exam, this task tests your understanding of managing degraded software RAID arrays under real-world conditions, often appearing as a performance-based item where you must type the exact command. A common trap is attempting to remove the failed disk without first failing it, which mdadm will reject. Remember the mnemonic "Fail, Remove, Add" in that strict order—never skip the fail step, as it tells the kernel to stop using that device and allows the array to continue operating degraded.
EX200 Configure local storage Practice Question
This EX200 practice question tests your understanding of configure local storage. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
An administrator has created a RAID 1 array using mdadm with two 1TB disks. After a disk failure, the array is in a degraded state. Which command should be used to replace the failed disk with a new one?
Clue words in this question
Noticing these words before you look at the options changes how you read each choice.
Clue:
"which command"Why it matters: Tests specific CLI syntax. Recall the exact command and its required context — near-synonyms and partial matches are common distractors.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
mdadm --manage /dev/md0 --fail /dev/sdb --remove /dev/sdb --add /dev/sdc
Option B is correct because it uses the `--manage` subcommand to first mark the failed disk (`/dev/sdb`) as failed with `--fail`, then remove it with `--remove`, and finally add the replacement disk (`/dev/sdc`) with `--add`. This is the proper sequence in mdadm to replace a failed disk in a RAID 1 array while the array is degraded.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
mdadm --add /dev/md0 /dev/sdc
Why it's wrong here
Must fail and remove the old disk first.
- ✓
mdadm --manage /dev/md0 --fail /dev/sdb --remove /dev/sdb --add /dev/sdc
Why this is correct
Correct sequence: fail, remove, add.
Clue confirmation
The clue word "which command" in the question point toward this answer.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
mdadm --remove /dev/md0 /dev/sdb --add /dev/sdc
Why it's wrong here
Must fail the disk before removing.
- ✗
mdadm --replace /dev/md0 --with /dev/sdc
Why it's wrong here
--replace is not a valid mdadm option.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates often think they can simply add a new disk with `--add` or remove the old disk directly without first marking it as failed, but mdadm requires the explicit `--fail` step to safely replace a failed disk in a degraded array.
Detailed technical explanation
How to think about this question
Under the hood, mdadm manages RAID arrays via the `/dev/md*` device and kernel MD driver. When a disk fails, the array enters a degraded state and continues operating with reduced redundancy. The `--fail` action updates the superblock to mark the disk as faulty, `--remove` detaches it from the array, and `--add` triggers a recovery process that rebuilds the array onto the new disk. In a real-world scenario, if you skip `--fail` and directly remove a disk that has not been properly failed, the kernel may still consider it part of the array, leading to I/O errors or a failure to re-add the new disk.
KKey Concepts to Remember
- Read the scenario before looking for a memorised answer.
- Find the constraint that changes the correct option.
- Eliminate answers that are true in general but not in this case.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A practitioner preparing for the EX200 exam encounters this exact type of scenario on the job. The correct answer here is not the most general option — it is the best answer for the specific constraint described. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Real exam questions reward reading the full scenario before eliminating options, because the constraint defines which answer fits.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
- →
Configure local storage — study guide chapter
Learn the concepts, then practise the questions
- →
Configure local storage practice questions
Targeted practice on this topic area only
- →
All EX200 questions
527 questions across all exam domains
- →
Red Hat Certified System Administrator EX200 study guide
Full concept coverage aligned to exam objectives
- →
EX200 practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related EX200 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Operate running systems practice questions
Practise EX200 questions linked to Operate running systems.
Configure local storage practice questions
Practise EX200 questions linked to Configure local storage.
Create and configure file systems practice questions
Practise EX200 questions linked to Create and configure file systems.
Deploy, configure, and maintain systems practice questions
Practise EX200 questions linked to Deploy, configure, and maintain systems.
Manage users and groups practice questions
Practise EX200 questions linked to Manage users and groups.
Manage security practice questions
Practise EX200 questions linked to Manage security.
Manage containers practice questions
Practise EX200 questions linked to Manage containers.
Create simple shell scripts practice questions
Practise EX200 questions linked to Create simple shell scripts.
Essential Tools practice questions
Practise EX200 questions linked to Essential Tools.
EX200 fundamentals practice questions
Practise EX200 questions linked to EX200 fundamentals.
EX200 scenario practice questions
Practise EX200 questions linked to EX200 scenario.
EX200 troubleshooting practice questions
Practise EX200 questions linked to EX200 troubleshooting.
Practice this exam
Start a free EX200 practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this EX200 question test?
Configure local storage — This question tests Configure local storage — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: mdadm --manage /dev/md0 --fail /dev/sdb --remove /dev/sdb --add /dev/sdc — Option B is correct because it uses the `--manage` subcommand to first mark the failed disk (`/dev/sdb`) as failed with `--fail`, then remove it with `--remove`, and finally add the replacement disk (`/dev/sdc`) with `--add`. This is the proper sequence in mdadm to replace a failed disk in a RAID 1 array while the array is degraded.
What should I do if I get this EX200 question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
Are there clue words in this question I should notice?
Yes — watch for: "which command". Tests specific CLI syntax. Recall the exact command and its required context — near-synonyms and partial matches are common distractors.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Same concept, more angles
2 more ways this is tested on EX200
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. A server has a software RAID 5 array /dev/md0. One of its disks fails. The administrator wants to replace it without rebooting. Which command should be used to mark the disk as failed?
hard- A.mdadm --fault /dev/md0 /dev/sdb
- B.echo faulty > /sys/block/md0/md/dev-sdb/state
- C.mdadm --set-faulty /dev/md0 /dev/sdb
- ✓ D.mdadm --fail /dev/md0 /dev/sdb
Why D: The correct command to mark a disk as failed in a software RAID array without rebooting is `mdadm --fail /dev/md0 /dev/sdb`. This command tells the md driver to mark the specified disk as faulty, which triggers the RAID 5 array to degrade and allows the failed disk to be removed and replaced while the system remains online.
Variation 2. An administrator suspects a disk failure in /dev/md0. Which command would be used to simulate a failure on /dev/sdb and then remove it from the array?
hard- A.mdadm --manage /dev/md0 --fail /dev/sdb --remove /dev/sdc
- B.mdadm --fail /dev/md0 /dev/sdb; mdadm --remove /dev/md0 /dev/sda
- ✓ C.mdadm /dev/md0 -f /dev/sdb -r /dev/sdb
- D.mdadm --manage /dev/md0 --fault /dev/sdb --remove /dev/sdb
Why C: Option C is correct because the `mdadm` command with the `-f` (fail) and `-r` (remove) flags in a single command line first marks /dev/sdb as faulty in the /dev/md0 array, then immediately removes it. This is the standard syntax for simulating a failure and removing the disk in one step, as tested in the EX200 exam.
Last reviewed: Jun 11, 2026
This EX200 practice question is part of Courseiva's free Red Hat certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the EX200 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.