8.4.1 Removing a Failed Drive Example Below is an example of removing a failed drive from a RAID 5 volume with IMSM metadata. In the example, “md127” is the IMSM container and “md126” is the RAID 5 volume, and the RAID 5 container has the following drives: “/dev/nvme0n1”, “/dev/nvme1n1”, “/dev/nvme2n1”, and “/dev/nvme3n1”. Personalities : [raid0] [raid1] [raid5] [raid10] md127 : active (read-only) raid5 nvme0n1[3] nvme1n1[2] nvme2n1[1] nvme3n1[0] 39999488 blocks super external:/md0/0 level 5, 512k chunk, algorithm 0 [5/5] [UUUUU] md0 : inactive - 11285 blocks super external:imsm unused devices: The following is displayed in /proc/mdstat when a drive fails (in this case, /dev/nvme2n1).
To remove the failed drive, use the following command: # mdadm --remove /dev/md0 /dev/nvme2n1 or use the following command to remove the failed drive from the container: # mdadm /dev/md/Volume0 --fail detached --remove detached After the failed drive is removed, the system must be powered off before replacing the NVMe SSD. Supermicro Intel ® VROC Linux User’s Guide Personalities : [raid0] [raid1] [raid5] md127 : active raid5 nvme0n1[3] nvme3n1[0] 39999488 blocks super external:/md0/0 level 6, 512k chunk, algorithm 0 [5/4] md0 : inactive - nvme2n1[1](S) 1045 blocks super external:imsm unused devices: 42