Raid1 with 1TB of data disappeared!

  • Hi everyone.
    I don-t know how but after that I rebooted my NAS with OMB 3.0.89 the RAID1 that I built was gone!
    This is a huge hissue since I already copied more than 1TB of data on it!


    How can I recover it?!


    In the filesystem tab I can see it, but his status is missing as shown in the attachment.
    In the RAID Management it say that I can build a RAID1 with the hard drive that I previously used to build it!



    This is the output of cat /etc/fsta





    This is the output of mount:

    This is the outpud of blkid


    Code
    root@Delibird:~# blkid
    /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/sda: UUID="ed696fd2-96fe-ba4f-ab44-fb72b800fb01" UUID_SUB="05959c09-ecb2-6cf8-facc-6603333b02f6" LABEL="NAS:Data" TYPE="linux_raid_member"
    /dev/md127: LABEL="Dati" UUID="8d1d82dc-45af-438d-9c7c-271640aed5b2" TYPE="ext4"
    /dev/sdb: UUID="ed696fd2-96fe-ba4f-ab44-fb72b800fb01" UUID_SUB="47bf0e53-a2c5-2b44-1db5-c0e2eadf7300" LABEL="NAS:Data" TYPE="linux_raid_member"
    /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/sdd: PTUUID="36911ee8-885f-4a0e-8662-a913cd447094" PTTYPE="gpt"
    /dev/sdc: PTUUID="8defa52c-34a0-4c6e-8508-3c922ba3807d" PTTYPE="gpt"

    Finally this is the outpud of df -h:





    Please, can someone help me to recover the 1TB data that I lost?

  • I forgot to write That after that I built the RAID 1 and mounted it I didn't restart my nas, but I started using it immediately, can this be the problem? :(

    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

  • Please, can someone help me to recover the 1TB data that I lost?

    Really unbelievable. Why do people skip backup and trust in BS like RAID when they're after data protection/safety? RAID-1 besides that it's the most stupid way to waste a disk for redundancy is only about availability.


    BTW: Check the contents of /media/8d1d82dc-45af-438d-9c7c-271640aed5b2 before you totally panic.

  • That's the old RAID1 that is currently working.
    The new RAID1 had this path: /srv/dev-disk-by-id-md-name-Delibird-Telefilm and if I try to use "ls" it doesn't show anything.

    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

  • /srv/dev-disk-by-id-md-name-Delibird-Telefilm and if I try to use "ls" it doesn't show anything.

    Yeah, there's nothing mounted. I've no idea why OMV makes it that easy to create RAID arrays (at least accepting once a dialog that reads 'I understand that RAID is not backup' should IMO be mandatory) and I've no idea why the 'recovery procedures' don't mention that people should provide log files when something happened.

  • So if I try to use the "recover" button I may be able to recover everything?

    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

  • So if I try to use the "recover" button I may be able to recover everything?

    No idea, I don't use mdraid (and especially the totally useless RAID-1 mode) since there exist almost no reasons to do so in 2017.


    Please don't panic, remain calm, read through various threads and online resources how to recover from this. Maybe those guys supporting RAID recovery jump in later... And please the next time you do something with storage think about backup first and then about availability (RAID is ONLY about the latter! And average people don't need this especially at home)

  • Should I try to recover the ext4 partition that the raid1 built on the hard drives? maybe like that I can try to recover all the files.

    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

  • up, no one can help me to recover my data? :(

    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

  • up!
    no one can help me? :( I really have no idea of how resque my data :(

    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

  • Really unbelievable. Why do people skip backup and trust in BS like RAID when they're after data protection/safety? RAID-1 besides that it's the most stupid way to waste a disk for redundancy is only about availability.
    BTW: Check the contents of /media/8d1d82dc-45af-438d-9c7c-271640aed5b2 before you totally panic.


    actually i am a noob then, but i think raid1 is actually my backup. if one disk failes, i just have to replace corrupted one and everything is fine again.
    i can backup my data into external usb drive, but it would like 3 disk and raid5, isn't it?

  • actually i am a noob then, but i think raid1 is actually my backup. if one disk failes, i just have to replace corrupted one and everything is fine again.

    What is @Blabla then talking about?


    There's an easy test to check for the difference of redundancy wasted for availability (RAID) and backup: Just delete everything by accident or intention. On a RAID-1 you have two empty disks afterwards so if you did it correctly and do backup it's now time to restore from the backup. If you confused availability with data protection (and did not backup your data) then now your data has gone.


    i can backup my data into external usb drive, but it would like 3 disk and raid5, isn't it?

    It's your future data loss not mine. At least I don't want this RAID stupidity without backup since I deal with failed RAID now since 20 years.


    @Blabla: It's too annoying to try to analyze the pretty incomplete data you provided in post #1 (since for whatever reasons you did not follow ryecoaaron's list of things to provide when an mdraid failed: Degraded or missing raid array questions)


    There should be two disk devices (no idea which) which hopefully contain your data. If all that 'RAID-1 is great since so easy to recover from failures' babbling is true it should be sufficient to simply mount the partitions on one of the two array members and you have access to your data.

  • There's an easy test to check for the difference of redundancy wasted for availability (RAID) and backup: Just delete everything by accident or intention. On a RAID-1 you have two empty disks afterwards so if you did it correctly and do backup it's now time to restore from the backup. If you confused availability with data protection (and did not backup your data) then now your data has gone.

    i used freenas before, which i only have to save the configuration file to backup the system. The data are backup via raid1. Sure if i delete my data, i will loose them. But i can live with it.


    But on my new system, i don't have enough RAM to use freenas.
    Do you have a guide to manuelly backup via rsync every night? i would use 1 disk as primary disk and 1 as backup disk. Every night i want to copy only new files. Is there a plugin for such use case?

  • Sorry, I didn't see that post.


    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

  • Well, there's no definition for a second RAID-1 but since there are /dev/sdc and /dev/sdd maybe the data is there (check 'cat /proc/partitions').


    Maybe others familiar with RAID-1 recovery will jump in and guide you, I've no experiences with mdraid here since for me classic/anachronistic RAID-1 ist just a stupid waste of disks. In case no one tried to help you --> google. And please start to reconsider your storage 'strategy' focusing on useless availability (RAID) now and set up a working backup!


    PS: 'Working' backup is defined by 'restore works' -- this needs testing, testing and testing.


    PPS: IIRC you run off an USB thumb drive. If that's the case (right?) you might have bought a counterfeit thumb drive showing a faked capacity (reporting eg. 16GB to the OS while having only 2GB). Normal symptom of such crap drives is that they discard every writes that happen after the total amount of written data exceeded their real capacity. So you setup your RAID, change $something and after a reboot all latest changes including the RAID you defined are gone.


    The forum here is full of these symptoms (eg. here) but usually users prefer to blame software for their hardware issues and don't believe that it's possible that fake flash media exists (while it's a MASSIVE problem).

  • Didn't thought about a usb problem. Tonight I'll test it!
    THe weird thing is that if I boot into a gparted live it say that the hard drives have no partition


    Send by my Sony XZ1 using Tapatalk

    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

  • Didn't thought about a usb problem. Tonight I'll test it!

    Well, I would wait until you get access to your data since testing your USB thumb drive for fake capacity means wiping out the installation on it. Though you can install the f3 tool now (apt install f3) and then simply run


    Code
    f3write /usr/local
    f3read /usr/local

    The fake flash issue is real and very common and symptoms look exactly like yours. Many USB thumb drives and SD cards report a much larger size to the OS than they can cope with and every write after some time (amount of data written) goes then to /dev/null instead of the flash. Almost everything seems fine as long as the system is running (since Linux has the recently written stuff in its filesystem caches and keeps filesystem structures in RAM ) but once the fs cache is flushed and the fs structures have to be read from disk again (reboot) everything has gone.


    THe weird thing is that if I boot into a gparted live it say that the hard drives have no partition

    Well, as already said I'm no mdraid expert since we rarely use it (only exception is RAID10 with just two disks and far layout, that's the only mode where mdraid IMO makes sense, everything else should be avoided since it's 2017 and not 2007 any more).


    I would consider shutting your box down, removing one of the drives to keep it in a safe place and then try to recover from an array 'made on another host' (since all mdraid metadata are lost it's essentially that). Something like this for example https://unix.stackexchange.com…mdadm-raid-1-on-another-m might be sufficient.

    • Offizieller Beitrag

    Do you have a guide to manuelly backup via rsync every night? i would use 1 disk as primary disk and 1 as backup disk. Every night i want to copy only new files. Is there a plugin for such use case?

    This is a bit hijacking the thread. So if you are not happy with the answer, please open a new thread.
    If you just want to to a rsync you can create a rsync job in OMV.
    If you want to create snapshots you should install the rsnapshot plug-in. By using rsnapshot you can keep previous versions of your files.

Jetzt mitmachen!

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