OMV does not display RAID 5

  • Hi evrybody,

    I have a big problem with my RAID 5. I was tring to move a file from my PC to the NAS but the PC said me that the shared folder was not accessible. In the web interface the RAID wasn't displayed.

    I tryed to read some other thread but nothig helped me.

    After recoverd the files, i won't use RAID anymore.


    I thank you for your time in advance.

    • Offizieller Beitrag
  • Hi,

    thanks for dedicating your time for me.

    I used four 1 TB WesternDigital Hard Disks connected via USB.

    Code: Command: cat/proc/mdstat
    pi@raspberrypi:~ $ cat /proc/mdstat
    Personalities : [raid6] [raid5] [raid4]
    md127 : inactive sdd1[4] sdc1[2] sdb1[0] sda1[1]
          3906517790 blocks super 1.2
    
    unused devices: <none>
    Code: Command: blkid
    pi@raspberrypi:~ $ blkid
    /dev/mmcblk0p1: LABEL_FATBOOT="boot" LABEL="boot" UUID="37E2-62C3" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="5396768c-01"
    /dev/mmcblk0p2: LABEL="rootfs" UUID="6a932c1f-7335-42d9-9351-1b1b2ca538d4" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="5396768c-02"
    /dev/sda1: UUID="a3322ecf-d5ec-026f-aef4-739a2420e0f3" UUID_SUB="b97b2002-9928-9827-5ece-340947a91ba1" LABEL="raspberrypi:name" TYPE="linux_raid_member" PARTUUID="66566343-2cb0-488e-8c4d-b7e471dd8319"
    /dev/sdb1: UUID="a3322ecf-d5ec-026f-aef4-739a2420e0f3" UUID_SUB="1efbee9b-1c46-88e3-666d-a01d45fd2eeb" LABEL="raspberrypi:name" TYPE="linux_raid_member" PARTUUID="6f35a3a7-b822-4cfe-85a1-e105fee0cfde"
    /dev/sdc1: UUID="a3322ecf-d5ec-026f-aef4-739a2420e0f3" UUID_SUB="8b48065d-4d08-9a7c-e9b8-1444c44e0bd8" LABEL="raspberrypi:name" TYPE="linux_raid_member" PARTUUID="ef802f7b-7bfc-4a85-99a6-5001b1b3a409"
    /dev/sdd1: UUID="a3322ecf-d5ec-026f-aef4-739a2420e0f3" UUID_SUB="3b3c8718-806f-f002-6ea4-8178ce334ac6" LABEL="raspberrypi:name" TYPE="linux_raid_member" PARTUUID="e39f6094-41cf-4ccc-a6da-b70b86d0a7b6"

    I tried to run the command with sudo:


    Code: Commad: mdadm --detail --scan --verbose (SUDO)
    pi@raspberrypi:~ $ sudo mdadm --detail --scan --verbose
    INACTIVE-ARRAY /dev/md127 level=raid5 num-devices=4 metadata=1.2 spares=1 name=raspberrypi:name UUID=a3322ecf:d5ec026f:aef4739a:2420e0f3
       devices=/dev/sda1,/dev/sdb1,/dev/sdc1,/dev/sdd1
  • After recoverd the files, i won't use RAID anymore

    I used four 1 TB WesternDigital Hard Disks connected via USB

    pi@raspberrypi:~

    If you have a RAID via USB on the Pi, it was done with guides outside OMV.

    This is unsupported.


    Or you need to explain better what hardware you're running besides a Raspberry Pi.

    If it's a box that allows RAID, which one is it?

  • Hi, what do you mean?

    OMV by default doesn't allow RAID via USB.


    Since you're running a Pi, I'm certain that, for you to have RAID5 there's only 2 ways to have it done:

    Either you did it on CLI by yourself following guides that are outside the scope of OMV or the USB box you have can do RAID5 via hardware.

    Neither is supported or advised on OMV.


    And the drives are attached either via a HAT (RADXA) (Argon EON) or with an external USB box. Which is it?


    It's possible you might recover the DATA but be prepared that it might also be gone for good.


    Maybe geaves can guide you through on what to do next.

  • Either you did it on CLI by yourself following guides that are outside the scope of OMV or the USB box you have can do RAID5 via hardware.

    Neither is supported or advised on OMV.

    I did it on CLI following a tutorial on the internet.

    • Offizieller Beitrag

    Ok ssh into omv as root, if you cannot use root add sudo in front of each command, the following should get the raid back after that you're on your own as this is not a supported feature;


    mdadm --stop /dev/md127


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


    if that fails I have no idea

  • Code
    pi@raspberrypi:~ $ sudo mdadm --assemble --force --verbose /dev/md127 /dev/sd[a1b1c1d1]
    
    mdadm: looking for devices for /dev/md127
    
    mdadm: Cannot assemble mbr metadata on /dev/sda
    
    mdadm: /dev/sda has no superblock - assembly aborted

    This is what comes out

  • Code
    pi@raspberrypi:~ $ sudo mdadm --assemble --force --verbose /dev/md127 /dev/sd[b1c1d1]
    mdadm: looking for devices for /dev/md127
    mdadm: Cannot assemble mbr metadata on /dev/sdb
    mdadm: /dev/sdb has no superblock - assembly aborted

Jetzt mitmachen!

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