RAID1 disappears after installing updates(?)

  • Hello!
    After long year of using my simple NAS server I encountered big problem. I'm not sure what happens. Yesterday I installed many updates available form 'Update Manager' menu in OMV admin panel.
    My original configuration contains two 1TB HDs (sdb, sdc) organized in one RAID1 matrix. Only one partition EXT4 labeled 'data1t' was created on this matrix.
    But today something breaks. I loose my data. In 'RAID Management' admin panel I see two data matrix:
    /dev/md126


    ...and /dev/md127


    In 'File systems' panel I see two partitions, both labeled 'data1t', but only first partition reports real capacity and mounted='Yes', the second reports capacity='n/a' and mounted='No'.


    What happens and how can I fix it? Sorry, if it is lame question, but I'm not Linux expert and I don't want destroy everything... :/

  • I found similar topics in OMV forum, for example: Single raid1 split into two degraded ones
    Those topics contains usually simple solution:

    Code
    umount /dev/md126
    umount /dev/md127
    mdadm –-stop /dev/md126
    mdadm --stop /dev/md127
    mdadm -A /dev/md0 -f –-update=summaries /dev/sdb /dev/sdc
    mdadm /dev/md0 -a /dev/sdc


    Now I have additional questions:
    - should I use /dev/md0 in fifth and sixth line? Or should I use location of my original array, which is located in /dev/md/mirror2x1t ?
    - why should I re-add device /dev/sdc in last line? And why sdc not sdb? How can I identify it?

    • Offizieller Beitrag

    I would use your first four lines (they probably aren't mounted) and then this:


    mdadm --assemble /dev/md127 /dev/sd[bc] --verbose --force


    Whether you use md0 or md127 really doesn't matter.

    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!

  • Thanks ryecoaaron for your suggestions!
    After reboot I unmounted and stopped arrays (/dev/md127 was still mounted). Next I ran:

    Code
    mdadm -A /dev/md/mirror2x1t -f –-update=summaries /dev/sdb /dev/sdc


    After this new array was established, but only sdc was active. So, I re-added sdb. This triggered rebuild process.
    After few hours my array looks like this:

    Code
    Personalities : [raid1]
    md127 : active raid1 sdb[0] sdc[1]
          976761424 blocks super 1.2 [2/2] [UU]
    
    
    unused devices: <none>


    My data are back. :thumbup:


    Current question is: how to prevent this situation in the future?

Jetzt mitmachen!

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