nerdexam
CompTIA

XK0-005 · Question #1227

A Linux administrator receives a call from the network operations team that one of the database applications is down on a Linux server. The Linux server is configured with RAID 1 for redundancy, and…

The correct answer is A. mdadm /dev/md0 --remove /dev/sdb1 C. mdadm /dev/md0 --fail /dev/sdb1. Removing a failed drive from a Linux software RAID array managed by mdadm requires two sequential steps. First, the device must be marked as faulty using 'mdadm /dev/md0 --fail /dev/sdb1' (Choice C) - this tells the RAID array that the drive has failed, even if mdadm hasn't…

Troubleshooting

Question

A Linux administrator receives a call from the network operations team that one of the database applications is down on a Linux server. The Linux server is configured with RAID 1 for redundancy, and the array /dev/md0 consists of two devices called /dev/sda1 and /dev/sdb1. After looking at the status of the RAID 1 array in the /proc/mdstat file, the administrator discovers the RAID 1 array is degraded and the disk /dev/sdb1 on which the database application was installed appears to have failed. Which of the following steps should the administrator take to remove the device /dev/sdb1 from the RAID array md0? (Choose two.)

Exhibit

XK0-005 question #1227 exhibit

Options

  • Amdadm /dev/md0 --remove /dev/sdb1
  • Bmdadm /dev/sdb1 --fail /dev/md0
  • Cmdadm /dev/md0 --fail /dev/sdb1
  • Dmdadm /dev/sdb1 --remove /dev/md0
  • Eracadm --remove /dev/sdb1
  • Fracadm --fail /dev/sdb1

How the community answered

(36 responses)
  • A
    72% (26)
  • B
    3% (1)
  • D
    6% (2)
  • E
    14% (5)
  • F
    6% (2)

Explanation

Removing a failed drive from a Linux software RAID array managed by mdadm requires two sequential steps. First, the device must be marked as faulty using 'mdadm /dev/md0 --fail /dev/sdb1' (Choice C) - this tells the RAID array that the drive has failed, even if mdadm hasn't already marked it as such automatically. Second, the device is removed from the array using 'mdadm /dev/md0 --remove /dev/sdb1' (Choice A) - a device cannot be removed unless it is first in a failed state. In both commands, the array device (/dev/md0) is specified first as the target, followed by the member device (/dev/sdb1). Choices B and D have the arguments reversed, which is invalid syntax. Choices E and F reference 'racadm', which is a Dell-specific remote management tool unrelated to Linux software RAID.

Topics

#RAID Management#mdadm utility#Disk Failure Recovery

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice