Menu

Disk Crashed, havent backed up in a while what should i do?

Help
2018-07-24
2018-07-30
  • SourceForget

    SourceForget - 2018-07-24

    Hi all,

    So i havent executed the sync in a few days.. and today one of my disk has crashed.
    I do know I have copied about 1 tb of data on one of my disks (N:).. (but that disk is fine).
    So if i plug in a new disk in place of the bad disk and try to run restore will it remove the data from N:\ drive (the data i had recently copied but not synced)?

     
  • Leifi Plomeros

    Leifi Plomeros - 2018-07-24

    Snapraid fix never deletes any files.

    Put in the replacement disk and make sure config file points to correct location for the replacement disk (or better yet just give the replacement same drive letter as the lost disk).

    Run snapraid fix -d diskname -l logfile.txt

    Afterwards:
    Use snapraid diff to identify which files have been lost (since last sync).
    Use snapraid dup to identify which files are on both N: and replacement disk

     

    Last edit: Leifi Plomeros 2018-07-24
    • SourceForget

      SourceForget - 2018-07-25

      This is good information sir, atleast it made me realize i dont loose.
      But can you be little bit more detailed in your actual steps.
      I would sincerely appreciate it. I am dying with fear.

       
  • Leifi Plomeros

    Leifi Plomeros - 2018-07-25

    In your config file you most likely have a list similar to this:

    Data d1 E:\Array\
    Data d2 F:\Array\ (let's pretend this is the crashed disk)
    Data d3 G:\Array\
    Data d4 H:\Array\
    

    So you remove the broken disk and put in a new disk and either make sure it is using the same drive letter or modify the drive letter in config accordingly.

    snapraid fix -d d2 -l logfile.txt (if d2 is the lost disk that needs to be recovered)

    Most likely snapraid will fail to recover some files if you have single parity, but hopefully it will recover most of them.

    To find out which files was not recovered run snapraid diff or snapraid diff --test-fmt disk if you want details about which disk has been changed since last disk.

    When (and only when) you are satisfied that you have recovered all the files that you need you can run snapraid sync to make current state permanent. After that no more recovery can be done.

    After sync you can type snapraid dup and press enter to find out which files you have more than one of.

     

    Last edit: Leifi Plomeros 2018-07-25
  • SourceForget

    SourceForget - 2018-07-27

    I have a 2 disk parity.
    Leifi, thanks, tomorrow (friday I am working from home). I will follow your instructions and see how it goes. Will post back results and keep you updated.
    Thanks so much in advance.

    By the way let me explain what I am trying to do...
    So I have 10 disks and 2 disks parity (say eg:- J:\ and K:\ drives )

    So, for an example.
    I ran the sync on 1st June.
    on the 15th June I copied over 10 movies to disk
    G:\ (this is a part of the pool).

    Now my the disk that has crashed is
    F:\ (disk is crashed, but the backup has synced this disk to the parity)

    So without loosing any movies that i copied on disk G:\ You are saying I can restore data from my parities (J and K) and will be able to restore all the movies that were on F:\ ?

    I will work on this tomorrow and keepyou posted.

     

    Last edit: SourceForget 2018-07-27
  • Leifi Plomeros

    Leifi Plomeros - 2018-07-27

    With 2 parity levels it seems very likely that you will be able to do a complete recovery of everything lost that was present in the array during last sync.

     
  • SourceForget

    SourceForget - 2018-07-30

    Leifi, I want to thank you from the bottom of my heart.
    Everything got recovered perfectly fine, as you suggested.
    I followed the instructions, and i am back to working state.

    Thank you so much, cannot thiank you enough bro.

     

    Last edit: SourceForget 2018-07-30

Log in to post a comment.

MongoDB Logo MongoDB