Menu

Wrong file CRC

Help
Simon
2019-05-30
2019-05-30
  • Simon

    Simon - 2019-05-30

    -Edit- Solved

    Hello.
    Today I got a "wrong file CRC error" at the end of my scrub. I suspect maybe some bad RAM and I will investigate that issue shortly (system needs to be upgraded anyway).

    For now, I am just wondering how to close off this scrub and put snapraid in a good state. The scrub completed successfully but 1 out of 3 content.temp files has bad CRC. Snapraid has not yet deleted the previous content files so on each disk I have both a .content (CRC of all 3 is the same) and a .content.tmp (CRC of 2/3 is the same).

    I guess just delete the bad content.tmp and run another sync ?

    Thank you

    C:\Snapraid>snapraid diff
    18470 equal
           9 added
           1 removed
           0 updated
           0 moved
           0 copied
           0 restored
    There are differences!
    
    C:\Snapraid>snapraid sync
    
    Everything OK
    
    C:\Snapraid>snapraid status
    
    No sync is in progress.
    The 31% of the array is not scrubbed.
    You have 5 files with zero sub-second timestamp.
    Run the 'touch' command to set it to a not zero value.
    No rehash is in progress or needed.
    No error detected.
    
    C:\Snapraid>snapraid touch
    
    
    C:\Snapraid>snapraid scrub
    
    Everything OK
    Saving state to C:/StoragePool/HDD3/snapraid.content...
    Saving state to C:/StoragePool/HDD2/snapraid.content...
    Saving state to C:/StoragePool/HDD1/snapraid.content...
    Verifying C:/StoragePool/HDD3/snapraid.content...
    Verifying C:/StoragePool/HDD2/snapraid.content...
    Verifying C:/StoragePool/HDD1/snapraid.content...
    DANGER! Wrong file CRC in 'C:/StoragePool/HDD2/snapraid.content.tmp'
    
     

    Last edit: Simon 2019-05-30
  • Simon

    Simon - 2019-05-30

    I ran another scrub to clear it. Finished okay. I will investigate my RAM and disks etc

     
  • Walter Tuppa

    Walter Tuppa - 2019-05-30

    snapraid.content and snapraid.content.tmp should be excluded in the snapraid.conf configuration from SnapRAID. There files are internal to SnapRAID (and usually excluded by default).
    could you post your snapraid.conf file.

     
  • Simon

    Simon - 2019-05-30

    snapraid.content and snapraid.content.tmp should be excluded in the snapraid.conf configuration from SnapRAID. There files are internal to SnapRAID (and usually excluded by default).
    could you post your snapraid.conf file.

    After Snapraid writes the content.tmp file(s), it reads it back to verify that it has been written correctly. Only if it has been written correctly does it delete the old one(s) and remove the .tmp extension so the new one(s) becomes current.
    In this case the CRC did not match for 1 of 3 files. It indicates an underlying issue with my system which I will presently investigate.
    I just wanted to be sure how to proceed without screwing things up further. I have done so now so thread can be closed. Thank you for your input.

     

    Last edit: Simon 2019-05-30

Log in to post a comment.

MongoDB Logo MongoDB