How to remove the hd resync, I've badly assigned /dev/sdb to a raid portion

  • Hello,
    I've replaced a bad sector hd of my Raid5. I've added it to the missing raid using the webUI, but i've wrongly added to /dev/md126 the whole /deb/sdb and not it's portion. now I do


    Code
    mdadm --manage --set-faulty /dev/md126 /dev/sdb
    mdadm --manage /dev/md126 --remove /dev/sdb






    And I've to perform a reboot so that I can do after





    Code
    mdadm --manage /dev/md126 --add /dev/sdb3
    mdadm --manage /dev/md13 --add /dev/sdb4
    and so on...


    But after the reboot the resync automatically start..


    Here're the detail you request



    cat /proc/mdstat



    bldk





    fdisk -l | grep "Disk "



    cat /etc/mdadm/mdadm.conf






    and the scan



    Code
    ARRAY /dev/md4 level=raid1 num-devices=2 metadata=0.90 spares=1 UUID=402ffbf8:4ab4c138:67e60d25:4f4db159
       devices=/dev/sda2,/dev/sdc2,/dev/sdd2
    ARRAY /dev/md13 level=raid1 num-devices=4 metadata=0.90 UUID=97d58847:6b6c8f4c:b1b271e0:892c9325
       devices=/dev/sda4,/dev/sdc4,/dev/sdd4
    ARRAY /dev/md126 level=raid5 num-devices=4 metadata=0.90 UUID=604e122c:42eb5b4e:b015dd01:bc2e42fc
       devices=/dev/sda3,/dev/sdb,/dev/sdc3,/dev/sdd3
    ARRAY /dev/md9 level=raid1 num-devices=4 metadata=0.90 UUID=13ba2058:84c9b23f:94c374d5:3167e1c2
       devices=/dev/sda1,/dev/sdc1,/dev/sdd1


    What can I do in order to stop the resync and add them manually?
    Thanks

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!