Crash of System Disc - Fresh 3.x Installation - Raid not accessible

  • Hello there,


    I am an absolute idiot... My system disc with OMV 2 crashed, so I replaced it by a new one, unplugged my three RAID drives and installed a fresh version of OMV 3.0.58.
    Now I do not have access to my existing RAID and I really do not know, what to do.
    Unfortunately I do not have any backup of my old config files. Will I have any possibility to get access to my files?



    The output of

    Code
    fdisk -l


    gives me the following:



    I hope, that anybody can help me!



    Thanks a lot in advance.


    Regards
    Gardinero

    • Offizieller Beitrag

    Were you able to mount the filesystem on the raid array in the OMV Filesystems tab?

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

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


    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!

  • Hi,


    the physical discs are listed under "Physical Discs" as


    /dev/sdb
    /dev/sdc
    /dev/sdd


    but under the "File Systems" tab I only see my system disc (/dev/sda1) and an additional archive disc (/dev/sde1),which are both already mounted.



    Regards
    Gardinero

    • 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.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4 | scripts 7.0.1


    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

    mdadm --assemble --force --verbose /dev/md127 /dev/sd[bcd]
    update-initramfs -u


    then post the content of: cat /etc/mdadm/mdadm.conf

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

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


    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!

  • mdadm --assemble --force --verbose /dev/md127 /dev/sd[bcd]


    gives me:


    mdadm: looking for devices for /dev/md127
    mdadm: /dev/sdb is busy - skipping
    mdadm: /dev/sdc is busy - skipping
    mdadm: /dev/sdd is busy - skipping


    The content of mdadm.conf:


    • Offizieller Beitrag

    I forgot to tell you to stop the existing array first.


    mdadm --stop /dev/md127
    mdadm --assemble --force --verbose /dev/md127 /dev/sd[bcd]


    mdadm --detail --scan >> /etc/mdadm/mdadm.conf
    update-initramfs -u

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

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


    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!

  • Now my mdadm.conf contains:


    • Offizieller Beitrag

    Perfect. 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.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4 | scripts 7.0.1


    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

    Looking at your output again, it is using the intel matrix storage management engine. I've never dealt with that mixed with mdadm. Try:


    mdadm --incremental --verbose --metadata imsm /dev/md127

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

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


    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!

  • Hello ryecoaaron,


    You absolutely made my day!!


    I again have access to my files.


    What I do not understand is, that the RAID is shown as /dev/md126 not /dev/md127.



    Do I need to do anything else, to keep the RAID mounted, also after rebooting my NAS?



    Regards
    Lars

    • Offizieller Beitrag

    What is the output of: cat /proc/mdstat


    Hopefully adding to mdadm.conf and executing update-initramfs -u will keep it working. I would do another update-initramfs -u just to make sure.

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

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


    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!

  • Hello and happy new year!


    Sorry for the delay.


    The output of cat /proc/mdstat again is


    Code
    Personalities : 
    md127 : inactive sdb[2](S) sdd[1](S) sdc[0](S)
          9459 blocks super external:imsm
    unused devices: <none>


    although mdadm.conf contains


    ARRAY /dev/md127 metadata=imsm UUID=dbe64fb9:524aa8c6:e1c861d2:019fe54b


    and I executed update-initramfs -u several times...



    After rebooting my NAS, I always have to execute sudo mdadm --incremental --verbose --metadata imsm /dev/md127, to get access to my RAID.



    After that the output of cat /proc/mdstat is:




    Code
    Personalities : [raid6] [raid5] [raid4] 
    md126 : active raid5 sdb[2] sdc[1] sdd[0]
          7423287296 blocks super external:/md127/0 level 5, 64k chunk, algorithm 0 [3/3] [UUU]
    md127 : inactive sdb[2](S) sdd[1](S) sdc[0](S)
          9459 blocks super external:imsm
    unused devices: <none>

    So, it is again md126 until reboot.


    mdadm --detail --scan shows:



    ARRAY /dev/md127 metadata=imsm UUID=dbe64fb9:524aa8c6:e1c861d2:019fe54b
    ARRAY /dev/md/NAS_RAID container=/dev/md127 member=0 UUID=42b0f49f:2a43e7c4:2ebafce5:bc5bd63b
    then.


    Regards
    Gardinero

    • Offizieller Beitrag

    Not sure what to do to get it to survive the reboot. Personally I would want to get rid of the imsm dependency but that would require rebuilding the array (no way to save the data on it).

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

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


    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

    But I can do it through the openmediavault GUI and it will be built without the imsm dependency?

    I think so but I honestly don't know. I don't have a board I can test on.

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

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


    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!