RAID Problem after fresh install of OMV3

  • I have an Odroid XU4 NAS with 3 HDs. Two of them where in a RAID1 to be used as a backup for my pictures and the third one was mounted to be used for bittorrent and plex. Forgot to mention that all HD are in EXT4.


    After the installation of the new OMV3, the RAID had to be rebuilt. The webgui detected the two hardisk part of the RAID and started the procedure to rebuild it. It took all the night and today I had the RAID OK, but I can't see the RAID to write data on it.


    Here the details of the RAID:


    cat /proc/mdstat



    Code
    root@odroid-jessie:~# cat /proc/mdstat
    Personalities : [raid1]
    md127 : active raid1 sdd[3] sdc[2](F) sda[0]
          976631360 blocks super 1.2 [2/2] [UU]
    unused devices: <none>



    blkid



    Code
    root@odroid-jessie:/# blkid
    /dev/mmcblk0p1: SEC_TYPE="msdos" LABEL="boot" UUID="96C3-9298" TYPE="vfat" PARTUUID="000f1766-01"
    /dev/mmcblk0p2: LABEL="GameStationTurbo" UUID="e139ce78-9841-40fe-8823-96a304a09859" TYPE="ext4" PARTUUID="000f1766-02"
    /dev/sda: UUID="0301e8e5-1ba3-7a22-e101-1fdf80d54c17" UUID_SUB="cfdc0805-38eb-2d0f-a785-4417563503d8" LABEL="odroid:BACKUP" TYPE="linux_raid_member"
    /dev/md127: UUID="ff389cf2-0cf3-47db-bdd0-d0000a9a6494" TYPE="ext4"
    /dev/sdb1: LABEL="HD3" UUID="db75e0b1-b05a-4038-acf5-8b570602b0c1" TYPE="ext4" PARTUUID="ff63fa79-7d41-4d12-b0cf-528aa71876ef"
    /dev/sdd: UUID="0301e8e5-1ba3-7a22-e101-1fdf80d54c17" UUID_SUB="1eaa485c-7a57-7258-bb51-111e74124dab" LABEL="odroid:BACKUP" TYPE="linux_raid_member"
    /dev/mmcblk0: PTUUID="000f1766" PTTYPE="dos"


    fdisk -l




    cat /etc/mdadm/mdadm.conf


    mdadm --detail --scan --verbose




    Code
    root@odroid-jessie:/# mdadm --detail --scan --verbose
    ARRAY /dev/md/odroid:BACKUP level=raid1 num-devices=2 metadata=1.2 name=odroid:BACKUP UUID=0301e8e5:1ba37a22:e1011fdf:80d54c17
       devices=/dev/sda,/dev/sdd

    Any suggestion of how to fully recover the RAID???

    • Offizieller Beitrag

    It probably isn't mounted. Try: mount -a


    Just to note... I recommend against using raid on usb hard drives especially on arm devices.

    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!

  • Well something went wrong with the RAID.


    I guess I just mount one of the disc of the RAID and not the RAID itself.


    So this is the state of the RAID now:



    I can mount one of the HD which actually caused the "degraded" status...


    Please help!!!

  • Well after unmounting one of the HDs of the raid, I did a blkid and I saw that now it was /dev/sde


    So I used mdadm 7dev/md127 --add /dev/sde


    And now the RAID is being selfrecovering again, something that will take around 10 hours.


    Here the output, but at the end I guess I will still not have my RAID monunted.


    So I need some help.



    Code
    blkid
    /dev/mmcblk0p1: SEC_TYPE="msdos" LABEL="boot" UUID="96C3-9298" TYPE="vfat" PARTUUID="000f1766-01"
    /dev/mmcblk0p2: LABEL="GameStationTurbo" UUID="e139ce78-9841-40fe-8823-96a304a09859" TYPE="ext4" PARTUUID="000f1766-02"
    /dev/sda: UUID="0301e8e5-1ba3-7a22-e101-1fdf80d54c17" UUID_SUB="cfdc0805-38eb-2d0f-a785-4417563503d8" LABEL="odroid:BACKUP" TYPE="linux_raid_member"
    /dev/md127: UUID="ff389cf2-0cf3-47db-bdd0-d0000a9a6494" TYPE="ext4"
    /dev/sde: UUID="0301e8e5-1ba3-7a22-e101-1fdf80d54c17" UUID_SUB="1eaa485c-7a57-7258-bb51-111e74124dab" LABEL="odroid:BACKUP" TYPE="linux_raid_member"
    /dev/sdf1: LABEL="HD3" UUID="db75e0b1-b05a-4038-acf5-8b570602b0c1" TYPE="ext4" PARTUUID="ff63fa79-7d41-4d12-b0cf-528aa71876ef"
    /dev/mmcblk0: PTUUID="000f1766" PTTYPE="dos"
    root@odroid-jessie:~# mdadm /dev/md127 --add /dev/sde
    mdadm: added /dev/sde

    Regards.

  • have a question or two :-).


    is there any data on the raided drives at the moment?


    is there any data on the third drive ?


    are the drives the same size (obviously the two that were raided are but the third, is it same or bigger )


    now,
    if there is no data on drives or you have a full backup.
    just do a full partition table dump and recreate on both drives
    and create new raid. from scratch.
    OR
    if data will fit on the third drive , move it there and do the whole raid from scratch again.


    now if there is data on drives and you have no spare,
    as we know that both drives are mirror.


    mount one of them, make sure you can see and read the data ok.


    un-mount the second.
    do fdisk , new partition table , new partition etc.


    create new single disk degraded raid array.
    if I remember correctly : mdadm --create /dev/mdX -l raid1 -f -n 1 /dev/sda1 !! change the mdX to what ever device you want it to be, this will give us a single device raid-1 array.


    grub the UUID "mdadm --detail /dev/md0 |grep UUID"
    and add it to the " /etc/mdadm/mdadm.conf"
    or see if OMV finds and see it as raid device.


    if all is ok expand the array to 2 devices "mdadm --grow /dev/md0 -n 2 "
    this will turn it to a degraded 2 device raid.


    mount it and copy the data onto the new raid.


    when all data is moved to new raid, un-mount the old disk, do a whole fdisk bit on it


    and add it to the new degraded array "mdadm --manage /dev/mdX --add /dev/sdb1"


    let it re-silver and presto you have a nice raid 1 to work with.


    here is the link to a how-to I found

    omv 3.0.56 erasmus | 64 bit | 4.7 backport kernel
    SM-SC846(24 bay)| H8DME-2 |2x AMD Opteron Hex Core 2431 @ 2.4Ghz |49GB RAM
    PSU: Silencer 760 Watt ATX Power Supply
    IPMI |3xSAT2-MV8 PCI-X |4 NIC : 2x Realteck + 1 Intel Pro Dual port PCI-e card
    OS on 2×120 SSD in RAID-1 |
    DATA: 3x3T| 4x2T | 2x1T

  • At the end I figured out what the mess was caused by, and guss who...


    ...it was me who almost destroy the RAID.


    And the RAID were with full Data (yes I know I am stupid).


    The problem started because my RAID has two HD of 1T, and I unpluged one just to be sure that if something was going wrong installing OMV3 I would have the other disk with the data stored.


    When OMV3 went back to life I plugged the second and the thir HD, I used mdadm --add to include in the RAID the second one, cause the TAB manage RAID didn't allow me to do it, and I made a mistake includin /dev/sdd and /dev/sde which didn't exist, so the RAID show that there are 4 HDs when there are only two.


    I sorted out with:


    mdad -r falied


    And now I have the RAID self recovering and I see the RAID ready to be mounted which I will do tomorrow when the RAID is fully restored.


    Thank you very much for your help.

Jetzt mitmachen!

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