Commit 605ba7fb authored by Vinicius Ruoso's avatar Vinicius Ruoso

prd_fixraid: added remove of partition from array before adding it again

This is not necessary, but will secure that when trying to add the disk to
some array, it will not be there already.
Signed-off-by: default avatarVinicius Ruoso <>
parent edf9805b
......@@ -545,6 +545,10 @@ elif grep -q "_" /proc/mdstat; then
# lets try to remove it first
mdadm /dev/$MD -f /dev/$PART -r /dev/$PART 2> /dev/null
print "REMOVED /dev/$PART from /dev/$MD"
# re-add the partition on array
case "$PART" in
sda1|sdb1) addtoarray "$PART" md0 ;;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment