Big Data Loss with OMV and Snapraid

    • Offizieller Beitrag

    Let me boot sysresccd real quick...

    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!

    • Offizieller Beitrag

    Hmm... That works on my VM. What version of sysresccd? What is the output of:


    extundelete --version
    mount


    This is what it looks like in my VM.

    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!

  • I used this iso :SystemRescueCd-x86-4.4.1




    Code
    root@sysresccd /mnt/backup/recover/disk1 % extundelete --version


    Software:
    OMV 3.0 / Plex / Snapraid / Tvheadend / ecoDMS / sonar / sabnzbd
    Hardware:
    ASRock C2750D4I / 2x Kingston KVR16E11/8 / Dell PERC H200 Crossflashed / 8x WD Red 3 TB / 60GB TeamGroup Dark L3 SSD / Samsung 750 EVO 256 GB SSD / Sundtek Sky TV Ultimate 6 DVB-S2

    • Offizieller Beitrag

    extundelete didn't show any output?

    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!

  • Yep,


    no output.



    But i guess i found the problem. my virtual Device with SystemRescueCd disconnected....


    Im now trying it again and restarted the server, booting SystemrecueCD with docache command


    Will i have to check for the disk again or will they still be the same after restart ?

    Software:
    OMV 3.0 / Plex / Snapraid / Tvheadend / ecoDMS / sonar / sabnzbd
    Hardware:
    ASRock C2750D4I / 2x Kingston KVR16E11/8 / Dell PERC H200 Crossflashed / 8x WD Red 3 TB / 60GB TeamGroup Dark L3 SSD / Samsung 750 EVO 256 GB SSD / Sundtek Sky TV Ultimate 6 DVB-S2

    • Offizieller Beitrag

    You might have to check that the drive letters are the same. They should be but you don't want to get that wrong. Post blkid if you are unsure.

    Code
    mount /dev/sdb1 /mnt/backup
    cd /mnt/backup/recover/disk1
    extundelete --restore-all /dev/sde1
    cd ../disk2
    extundelete --restore-all /dev/sdd1
    cd ../disk3
    extundelete --restore-all /dev/sdc1

    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!

  • blkid

    Code
    /dev/loop0: TYPE="squashfs"
    /dev/sda1: UUID="be149662-abd5-4d5d-b532-14d091321812" TYPE="ext4" PARTUUID="000397bf-01"
    /dev/sda5: UUID="5d31da78-38c9-48e7-8aa0-bfa5c4b18235" TYPE="swap" PARTUUID="000397bf-05"
    /dev/sdb1: LABEL="Backup" UUID="c7692c8e-2a3e-4ac2-b954-29c71ac43df9" TYPE="ext4" PARTUUID="abbbbcb7-4831-4c62-b4ce-b8eefa757578"
    /dev/sdc1: LABEL="DISK3" UUID="858099db-5680-44d7-8cd3-79134be2157c" TYPE="ext4" PARTUUID="571fd11d-2fe9-46a0-a45e-32bfd5a677ef"
    /dev/sdd1: LABEL="DISK2" UUID="2f914808-85f6-4b9b-aee3-43cfad784960" TYPE="ext4" PARTUUID="e563015a-431e-488a-93ea-30960db9df19"
    /dev/sde1: LABEL="DISK1" UUID="0722de2e-cf4b-4a63-aece-f01f502b7c27" TYPE="ext4" PARTUUID="da3e312c-be1c-42b3-bd40-810f5be6ce4b"
    /dev/sdf1: LABEL="Parity1" UUID="a7f543ef-6a8f-41f9-ac83-942085c9bfca" TYPE="ext4" PARTUUID="c206d942-0953-4b93-bb1b-2239a8c42fe7"
    /dev/sr0: UUID="2014-11-17-18-17-22-00" LABEL="sysrcd-4.4.1" TYPE="iso9660"


    Seems to be the same

    Software:
    OMV 3.0 / Plex / Snapraid / Tvheadend / ecoDMS / sonar / sabnzbd
    Hardware:
    ASRock C2750D4I / 2x Kingston KVR16E11/8 / Dell PERC H200 Crossflashed / 8x WD Red 3 TB / 60GB TeamGroup Dark L3 SSD / Samsung 750 EVO 256 GB SSD / Sundtek Sky TV Ultimate 6 DVB-S2

    • Offizieller Beitrag

    Yes, they are.

    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!

  • It's working, but a lot of "Unable to restore inode"


    At least i now know how to be better prepared for the future :-/

    Software:
    OMV 3.0 / Plex / Snapraid / Tvheadend / ecoDMS / sonar / sabnzbd
    Hardware:
    ASRock C2750D4I / 2x Kingston KVR16E11/8 / Dell PERC H200 Crossflashed / 8x WD Red 3 TB / 60GB TeamGroup Dark L3 SSD / Samsung 750 EVO 256 GB SSD / Sundtek Sky TV Ultimate 6 DVB-S2

    • Offizieller Beitrag

    Unfortunately, the snapraid fix command may have written the recovered files over deleted files. You can always try photorec. It just doesn't restore the filename or directory.


    When I upgrade my server at home, I won't be running any raid or parity program. Just backup using rsnapshot to second server that is only on during backup.

    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!

  • one question:
    in your snapraid.conf you excluded "/storage/". I hope your files where NOT in "/storage/"? Because then they can't be restored

  • Hello Solo,


    /storage/ is the pool folder created by aufs.


    So the content of this folder is splitted onto three disk in the folders D1 D2 and D3.


    Therefore i thought i have to exclude /storage/

    Software:
    OMV 3.0 / Plex / Snapraid / Tvheadend / ecoDMS / sonar / sabnzbd
    Hardware:
    ASRock C2750D4I / 2x Kingston KVR16E11/8 / Dell PERC H200 Crossflashed / 8x WD Red 3 TB / 60GB TeamGroup Dark L3 SSD / Samsung 750 EVO 256 GB SSD / Sundtek Sky TV Ultimate 6 DVB-S2

  • Ah, OK
    Disk 1, 2 and 3 were protected by snapraid, you didn't have to exclude it. Snapraid detects that the drives are covered by another conf-entry

    • Offizieller Beitrag

    I would think you would be ok to do that. I would probably put the pool folder on the parity drive though. The next version of the aufs plugin, you won't have to worry about it.

    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!

  • i excluded /storage/ because Snapraid always gaves me errors while syncing.


    The idea putting the pool folder on the parity drive is a good one.


    I will keep it in my mind.


    BTW: extundelete was not able to restore any single file :/ this is really bad

    Software:
    OMV 3.0 / Plex / Snapraid / Tvheadend / ecoDMS / sonar / sabnzbd
    Hardware:
    ASRock C2750D4I / 2x Kingston KVR16E11/8 / Dell PERC H200 Crossflashed / 8x WD Red 3 TB / 60GB TeamGroup Dark L3 SSD / Samsung 750 EVO 256 GB SSD / Sundtek Sky TV Ultimate 6 DVB-S2

  • Unfortunately, the snapraid fix command may have written the recovered files over deleted files. You can always try photorec. It just doesn't restore the filename or directory.


    Maybe thats why extundelete can't restore anything. Do you have any output example of extundelete?

  • with all the files its: Unable to restore inode "filename" reallocationg free disk space

    Software:
    OMV 3.0 / Plex / Snapraid / Tvheadend / ecoDMS / sonar / sabnzbd
    Hardware:
    ASRock C2750D4I / 2x Kingston KVR16E11/8 / Dell PERC H200 Crossflashed / 8x WD Red 3 TB / 60GB TeamGroup Dark L3 SSD / Samsung 750 EVO 256 GB SSD / Sundtek Sky TV Ultimate 6 DVB-S2

    • Offizieller Beitrag

    I mounted a partition, copy grub.cfg to the partition twice, deleted the files, and unmounted. I ran extundelete and got the following:



    Only found one copy.


    Tried photorec and it found one copy as well.

    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!

  • Hm..


    i tried it two times with extundelete and it has restored only a few files.


    I now did it with Photorec, and it restored "maybe" everything. But it will take a long time for me to sort all the media files, as they have no name and no directory....

    Software:
    OMV 3.0 / Plex / Snapraid / Tvheadend / ecoDMS / sonar / sabnzbd
    Hardware:
    ASRock C2750D4I / 2x Kingston KVR16E11/8 / Dell PERC H200 Crossflashed / 8x WD Red 3 TB / 60GB TeamGroup Dark L3 SSD / Samsung 750 EVO 256 GB SSD / Sundtek Sky TV Ultimate 6 DVB-S2

    • Offizieller Beitrag

    This page might help with sorting/renaming the recovered files.

Jetzt mitmachen!

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