RAID1 disappeared

  • Hi everyone
    I'm recreating the topic because the original one was in the wrong section and also hard to read.


    I bought 2 Seagate Ironwolf 6TB and I created a RAID1.
    After that I immediately shared it and copied 1TB of files on it.
    After that I had to reboot my NAS, and I found that the RAID1 was gone!
    I tried to see with gparted what was happening, and I saw that both the 6TB hard drive didn't even have a partion, it was like I never created and ext4 RAID1.


    I checked like tkaiser suggest me if my usb key had problem with f3 and the result is fine.


    I'll post here everything:. The RAID1 that disappeared was made with 2 Ironwolf 6TB

    • cat /proc/mdsta
    Code
    root@Delibird:~# cat /proc/mdstat
    Personalities : [raid1]
    md127 : active raid1 sdb[0] sda[1]
          3906887360 blocks super 1.2 [2/2] [UU]
    
    
    unused devices: <none>




    • blkid
    Code
    root@Delibird:~# blkid
    /dev/sda: UUID="ed696fd2-96fe-ba4f-ab44-fb72b800fb01" UUID_SUB="05959c09-ecb2-6cf8-facc-6603333b02f6" LABEL="NAS:Data" TYPE="linux_raid_member"
    /dev/sdb: UUID="ed696fd2-96fe-ba4f-ab44-fb72b800fb01" UUID_SUB="47bf0e53-a2c5-2b44-1db5-c0e2eadf7300" LABEL="NAS:Data" TYPE="linux_raid_member"
    /dev/sde1: LABEL="Test1" UUID="e2e97456-a32f-4c7b-82f2-8ba5d8320dc1" TYPE="ext4" PARTLABEL="HDDTest" PARTUUID="c3e5ef33-dd1a-46d5-84bc-d66470473ed3"
    /dev/sde2: LABEL="Test2" UUID="b34f8189-6a4e-4a02-bcf0-1fc73641d055" TYPE="ext4" PARTLABEL="HDDTest" PARTUUID="dfdbab85-4777-416e-8f09-51e55840336b"
    /dev/md127: LABEL="Dati" UUID="8d1d82dc-45af-438d-9c7c-271640aed5b2" TYPE="ext4"
    /dev/sdf1: UUID="3ea78407-b370-43c7-ae25-290c365a4927" TYPE="ext4" PARTUUID="a94754ac-01"
    /dev/sdf5: UUID="462536b4-33a7-439b-8ed3-13e27998acdb" TYPE="swap" PARTUUID="a94754ac-05"
    /dev/sdc: PTUUID="8defa52c-34a0-4c6e-8508-3c922ba3807d" PTTYPE="gpt"
    /dev/sdd: PTUUID="36911ee8-885f-4a0e-8662-a913cd447094" PTTYPE="gpt"


    • fdisk -l | grep "Disk "
    • cat /etc/mdadm/mdadm.conf
    • mdadm --detail --scan --verbose
    Code
    MAILFROM rootroot@Delibird:~# mdadm --detail --scan --verbose
    ARRAY /dev/md127 level=raid1 num-devices=2 metadata=1.2 name=NAS:Data UUID=ed696fd2:96feba4f:ab44fb72:b800fb01
       devices=/dev/sda,/dev/sdb

    Intel G4400 - Asrock H170M Pro4S - 8GB ram - Be Quiet Pure Power 11 400 CM - Nanoxia Deep Silence 4 - 6TB Seagate Ironwolf - RAIDZ1 3x10TB WD - OMV 5 - Proxmox Kernel

  • Just to save others some time: /dev/md127 is made up of sda/sdb and the 'problem' mdraid that's missing is sdc/sdb. The old thread is here https://forum.openmediavault.org/index.php/Thread/20206


    I'm out of this mdraid madness. A sane way to collect support data is missing in OMV as well as warnings in big red letters in the user interface if people want to start sending their data to /dev/null not knowing what they're doing...

  • Hi
    I have the same problem, I have odroid Xu4 with 2x usb to sata bridge boards http://www.hardkernel.com/main….php?g_code=G145197048960 and 2x 2TB HDD RED, I have created RAID, and after one day of working, after moving some files on it and rebooted, whole raid dissapeard. I have tried to follow some quides, but it looks that it lost config, in blklid I see the disks that are member of array, but in mdadm.conf was nothing and also in /etc/openmediavault/config.xml it loast raid definition. I have tried some steps without succes. I reinstall whole omv and make make disks separate, it looks like sw RAID1 has some real issues.
    Only proble I see is that in web interface hdd are identified by serial number readed from sata to usb bridge and not from serial of HDD itself (for example I turn on SMART monitor on sda, it automatically turn on also on sdb, maybe this is another issue tu post it on separate list)
    thank you for advices

  • I have odroid Xu4 with 2x usb to sata bridge boards hardkernel.com/main/products/p….php?g_code=G145197048960

    You do NOT have these devices since they use a GL controller and you have JMicron. Then playing USB RAID is dangerous, RAID-1 is absolutely useless and you should try to get a clue why configuration changes aren't written to your installation (rootfs on SD card, true?)

  • Hi thank you for quick response, I used emmc card to store system on it, I move only mysql database outside to HDD, I install Flashmemory plugin,
    So please witch hw you suppose to use to put 2 HDD inside and have raid1? I have only usb ports on odroidxu4 (no sata). when I build raid, config was written to files, but after it dissapears (I think it was during system up, after restart it did not came up at all, I have checked configs but raid was gone. so I decide to use only one hdd now and second hdd will be synced with RSnaphot, to make some redundancy (backup) in data.
    Only one tnink it freaks my out is that I see same serials on hdd

    Raspberry pi 2/3, Odroid XU4 those are my hw to build on.

  • So please witch hw you suppose to use to put 2 HDD inside and have raid1?

    None of course. RAID-1 is IMO a pretty stupid waste of disks so why should I use it or recommend anything? Better use Rsnapshot configured correctly, way better than primitive RAID-1.


    when I build raid, config was written to files, but after it dissapears (I think it was during system up, after restart it did not came up at all, I have checked configs but raid was gone.

    That's filesystem vs physical storage. When stuff appears to be there (filesystem buffer) but disappears after a reboot then it was not written to disk/eMMC. Though no idea why and how to diagnose (other than issueing a sync command prior to reboot what has to happen anyway). You might want to provide output from 'armbianmonitor -u' then I can have a look.


    Same serials with same USB-to-SATA bridges --> a firmware flaw in the chip. I would assume you use the newer Hardkernel boards that use JMS578 and this chip needs another firmware update urgently: https://forum.odroid.com/viewtopic.php?f=97&t=28535#p205745

  • Hi,
    here is output http://sprunge.us/aGJY but this is config on same hw but without raid enabled, one disk is not inicialised yet. Tbank you for your help, I read the link about fw of Jmicron, but I think I do not have this issue about spindown, I do not know if fw of Jmicron can be updated, sorry I am only user with limited skill and knowledge, but still trying to build something. thank you

    Raspberry pi 2/3, Odroid XU4 those are my hw to build on.

  • Hi,

    Did you have a look at this one?

    Yeah ... after the vacation ... "of course" :D


    I tried to see with gparted what was happening, and I saw that both the 6TB hard drive didn't even have a partion, it was like I never created and ext4 RAID1.

    That's normal, because OMV uses the blockdevice option of md ...


    But what happend to your RAID1 is unclear:
    - blkid shows your (correct) members
    - "cat /proc/mdstat" shows the raid-array running
    - "mdadm --detail --scan --verbose" show also correct infos as
    - "cat /etc/mdadm/mdadm.conf" looks also normal


    Questions:
    - current status?
    - which OMV-version do U use?


    Analysis (so far):
    It seems that your RAID1 got struck by two well-known bugs:
    - Debian related bug auf changing md0 to md127 (caused by naming the array)
    (this should be the minor error, since autodetect should do the trick ... automaticly)
    - and (possible) Bootsect-Bug of the harddrives, which made the "superblock" disappear after reboot
    (unconfirmed)
    - and fdisk readings are wired, try sfdisk instead ... the drives should show up as 5,7TiB-drives, not as 3,7 TiB!


    Hints:
    (especially for @betupet)
    - RAID1 is one of the badest raid-level (right after 0 :P) - here i agree with @tkaiser (one drive-config with rsync to the second drive instead, or ZFS)
    - never use RAID-setups with PicoPSU and/or USB/SATA-adapters, that includes also every raid-setup on RPi and other single-board computers


    Sc0rp

  • Thank you Sc0rp and tkaiser,
    I remake whole omv from start. I am now not using RAID, I will try to setup some Rsyns job. I change USB sata to another chip brand which works fine. Now everything looks ok, except SMART vaules, but it is a problem of WD RED disks, I receive some counters increments by mail every day, but this is not to post to this thread.
    thx all

    Raspberry pi 2/3, Odroid XU4 those are my hw to build on.

  • thanks @Sk0rp , I already made a ZFS-mirror, so I think that this topic can be closed as unresolved :(

    Intel G4400 - Asrock H170M Pro4S - 8GB ram - Be Quiet Pure Power 11 400 CM - Nanoxia Deep Silence 4 - 6TB Seagate Ironwolf - RAIDZ1 3x10TB WD - OMV 5 - Proxmox Kernel

Jetzt mitmachen!

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