Degraded RAID6... How can i readd the drive?

  • Hi,


    I have:


    Zitat

    root@omv:~# cat /proc/mdstat
    Personalities : [raid6] [raid5] [raid4]
    md126 : inactive sde[4](S)
    3906887512 blocks super 1.2


    md127 : active raid6 sda[0] sdf[7] sdg[6] sdh[5] sdd[3] sdc[2] sdb[1]
    23441323008 blocks super 1.2 level 6, 512k chunk, algorithm 2 [8/7] [UUUU_UUU]


    How can i get the sde back into my RAID?


    I tried:


    Zitat

    root@omv:~# mdadm --stop /dev/md126
    mdadm: stopped /dev/md126
    root@omv:~# mdadm /dev/md127 --re-add /dev/sde
    mdadm: --re-add for /dev/sde to /dev/md127 is not possible


    But you can see it wont work...


    HELP PLEASE :(


    THX!


    Should i use

    Zitat

    mdadm --zero-superblock /dev/sde


    to delete the superblock and do a recover via webgui? It is not possible to readd the drive without a full resync (> 10 hours)?


    Edit:


    I did

    Zitat

    mdadm /dev/md127 --add /dev/sde


    and now he makes a recovery...


    Zitat

    md127 : active raid6 sde[8] sda[0] sdf[7] sdg[6] sdh[5] sdd[3] sdc[2] sdb[1]
    23441323008 blocks super 1.2 level 6, 512k chunk, algorithm 2 [8/7] [UUUU_UUU]
    [>....................] recovery = 0.0% (2536308/3906887168) finish=564.4min speed=115286K/sec


    as you can see that #4 is gone, i hope that will not be a problem at all?

    • Offizieller Beitrag

    With one drive missing (#4), you are running the equivalent of raid 5.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    You could try adding /dev/sdh like you did /dev/sde but I would wait until it is done syncing.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    sde was the first one. You added it back. sdh is the one missing now.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    What is the output of: cat /proc/mdstat

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • What is the output of: cat /proc/mdstat


    Zitat

    root@omv:~# cat /proc/mdstat
    Personalities : [raid6] [raid5] [raid4]
    md127 : active raid6 sda[0] sdf[7] sdg[6] sdh[5] sde[8] sdd[3] sdc[2] sdb[1]
    23441323008 blocks super 1.2 level 6, 512k chunk, algorithm 2 [8/7] [UUUU_UUU]
    [========>............] recovery = 41.7% (1632967260/3906887168) finish=363.1min speed=104365K/sec


    unused devices: <none>

    • Offizieller Beitrag

    How about: mdadm --detail /dev/md127

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • How about: mdadm --detail /dev/md127


    • Offizieller Beitrag

    I guess it is still sde since it is marked as a spare (but rebuilding). That is good for you :)

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    I think so but it may be marked as a spare. If so, you may need to stop the array and re-assembed:

    Code
    mdadm --stop /dev/md127
    mdadm --assemble --run --force /dev/md127 /dev/sd[abcdefgh]

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • The process is finished:



    It looks like, that i have nothing to do?

    • Offizieller Beitrag

    Looks like everything is working now :)

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Even though mdstat says


    Zitat

    root@omv:~# cat /proc/mdstat
    Personalities : [raid6] [raid5] [raid4]
    md127 : active raid6 sda[0] sdf[7] sdg[6] sdh[5] sde[8] sdd[3] sdc[2] sdb[1]
    23441323008 blocks super 1.2 level 6, 512k chunk, algorithm 2 [8/8] [UUUUUUUU]


    the #4 is missing but it looks like that these numbers don't really matter at all?

    • Offizieller Beitrag

    Yep, the numbers don't matter. #4 is probably your OS drive. The [UUUUUUUU] with no missing U's is all that matters :)

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

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