Details on determination if a drive needs to be removed or not. And clarification of rebuild command.
Line 125:
Line 125:
[root@sme]# mdadm --remove /dev/md2 /dev/hda2
[root@sme]# mdadm --remove /dev/md2 /dev/hda2
+
+
However if the drive has already been removed by the operating system then removing the drive is unnecessary.
+
To determine this use the command:
+
+
mdadm --query --detail /dev/md2
+
Of course use the proper md# based on your configuration.
+
This command will give you several lines of data, including the size of the array. Near the end of the output you will see the following if the drive has been removed already. There is no need to remove the drive since it has already been removed.
+
Number Major Minor RaidDevice State
+
0 3 2 0 active sync /dev/hda2
+
1 0 0 - '''removed''' <-- NOTE THIS
+
−
To add the physical partition back into that raid partition.
+
To add the physical partition back and rebuild the raid partition.