Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Dynamix File Integrity plugin

Featured Replies

The odd time this has happened to me I find there is a log file listing the damaged files.

 

Under Tools/File Integrity click on the folder next to log files.

 

Kevin.

  • 5 weeks later...
  • Replies 1.3k
  • Views 344.1k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • CajunCoding
    CajunCoding

    I had this very same issue this evening trying to use File Integrity plugin.... can anyone provide additional details/resolution on this error?   Allowed memory size of 134217728 bytes exhausted

  • paululibro
    paululibro

    I think I've got this. There is a built-in help when you click on "Disk verification schedule" label and it says:     But mostly important:    

  • Bilged the last two posts in this topic - please keep it civil people.

Posted Images

@bonienl First of all, thanks for this plugin. I'm using it on my array and it's working fine with one exception: it has trouble checking hashes of my EncFS directory. When the verify task finishes I always get some hash mismatches on the encrypted files and I'm sure the decrypted files are fine. This might not even have anything to do with this plugin, but have you encountered something like this?

I just added a new disk and wanted to be sure it's protected.  I checked and all the other disks showed green checks for Build up-to-date and also for Export up-to-date.  All good so far.

 

I built for the new disk, green check.  I exported for that disk, blue X.  It's brand new to the array, and blank, so fine, nothing to export I though.

 

then I noticed the include duplicate file hashes in Find command checkbox and thought 'what's this?', so I checked it and hit find.  I saw that it searched for duplicate files; awesome!!

 

I realized that I had lots of duplicated music files in one folder, so I used Midnight Commander to move them from one disk to the other, and told it to overwrite.  I confirmed that the folder was no longer on the old disk I copied from; perfect.

 

I then came back to the tool and re-ran the find, but the list shows these same files as duplicates.  I didn't expect this, since i just moved them, and also because it's telling me the build up-to-dates are correct on both disks.

 

I assume that I need to re-build the hashes, so I'm doing that now, but was concerned that it says up-to-date, but seems it maybe isn't.

 

I just wanted to confirm where it's actually checking for duplicates, because MC shows one of the duplicated folders isn't on the disk this tool shows it to be on.

 

Where did I go wrong; or is there some bug here?

5 hours ago, JustinChase said:

I just added a new disk and wanted to be sure it's protected.  I checked and all the other disks showed green checks for Build up-to-date and also for Export up-to-date.  All good so far.

 

I built for the new disk, green check.  I exported for that disk, blue X.  It's brand new to the array, and blank, so fine, nothing to export I though.

 

then I noticed the include duplicate file hashes in Find command checkbox and thought 'what's this?', so I checked it and hit find.  I saw that it searched for duplicate files; awesome!!

 

I realized that I had lots of duplicated music files in one folder, so I used Midnight Commander to move them from one disk to the other, and told it to overwrite.  I confirmed that the folder was no longer on the old disk I copied from; perfect.

 

I then came back to the tool and re-ran the find, but the list shows these same files as duplicates.  I didn't expect this, since i just moved them, and also because it's telling me the build up-to-dates are correct on both disks.

 

I assume that I need to re-build the hashes, so I'm doing that now, but was concerned that it says up-to-date, but seems it maybe isn't.

 

I just wanted to confirm where it's actually checking for duplicates, because MC shows one of the duplicated folders isn't on the disk this tool shows it to be on.

 

Where did I go wrong; or is there some bug here?

 

You need to export the hash again for updating.

I got a warning this morning that said

 

unRAID file corruption: 1-22-2018 11:27AM

Notice [Media] - bunker verify command

Found 6 files with SHA256 hash key mismatch

 

I'm not sure it's this plugin throwing the warning, nor am I sure how to find these 6 files.

 

The Fix Common Problems tool isn't showing any errors, and I'm not sure what else might notice such a thing.

 

Suggestions on how to proceed?

  • Author
1 hour ago, JustinChase said:

Suggestions on how to proceed?

 

Look in your syslog, it will mention which files have a mismatch.

Minor nit, inconsistent build status indicated.

 

4Q0RqX1.jpg

Hi, 

 

Sorry to be a complete noob but I have been reading though and wondering if somebody can explain in a nutshell what this tool actually does?

 

Thanks and again sorry :-(

Hi,

 

today I replaced my cache drive by moving my cache shares onto the array and back again to the new cache drive after I assigned it.

Unfortunately, I forgot that by doing so I generated hash values for all of my cache files at the moment they were moved to one of my data disks.

 

Now, what would be the best way to get rid of the hash values again as the files are placed on my cache drive again right now.

Does it even matter? Somehow that disturbs me :)

AFAIK, the hash values are not saved when moving files, not to mention that Dynamix FIP wouldn't care about files on the cache drive anyways since it doesn't touch it / check it.

8 hours ago, Squid said:

AFAIK, the hash values are not saved when moving files, not to mention that Dynamix FIP wouldn't care about files on the cache drive anyways since it doesn't touch it / check it.

 

yeah, I know that it doesn't care about cache files.

But as the files were moved to the array the plugin created hash values as it should of course.

 

Can I test by just copying over some files from my cache drive to an excluded array folder and then use the clean functon to see if the hash values were saved or not after moving?

Edited by Marv

You can use "getfattr -d xxxxxx" to check hash value save or not. xxxx was file name.

42 minutes ago, Benson said:

You can use "getfattr -d xxxxxx" to check hash value save or not. xxxx was file name.

 

nice, I'll test this later. Thanks.

On 24/01/2018 at 1:04 AM, mbc0 said:

Hi, 

 

Sorry to be a complete noob but I have been reading though and wondering if somebody can explain in a nutshell what this tool actually does?

 

Thanks and again sorry :-(

bump ;-)

On 1/23/2018 at 8:04 PM, mbc0 said:

Hi, 

 

Sorry to be a complete noob but I have been reading though and wondering if somebody can explain in a nutshell what this tool actually does?

 

Thanks and again sorry :-(

 

In a nutshell, it creates and compares checksums of your files. See first post in this thread for details on this plugin, and this wikipedia article for more about checksums in general: https://en.wikipedia.org/wiki/Checksum

Many Thanks for the reply, I understood that it creates checksum's what I don't understand is does it auto-correct or alert you to corrupt files?

 

Thanks again!

1 minute ago, mbc0 said:

Many Thanks for the reply, I understood that it creates checksum's what I don't understand is does it auto-correct or alert you to corrupt files?

 

Thanks again!

Checksums don't have enough data to correct anything, only to detect differences. It verifies on a schedule and alerts you. If differences are detected, you would have to rely on your backups for correction.

Perfect! Thank you trurl :-)

 

19 hours ago, Marv said:

Hi,

 

today I replaced my cache drive by moving my cache shares onto the array and back again to the new cache drive after I assigned it.

Unfortunately, I forgot that by doing so I generated hash values for all of my cache files at the moment they were moved to one of my data disks.

 

Now, what would be the best way to get rid of the hash values again as the files are placed on my cache drive again right now.

Does it even matter? Somehow that disturbs me :)

 

7 hours ago, Benson said:

You can use "getfattr -d xxxxxx" to check hash value save or not. xxxx was file name.

 

So I tested with the above command and the files I moved from cache to array and back to cache again still have hash values saved with them.

Is there an easy way to remove them without having to move them back to the array?

Edited by Marv

  • Author

Extended attributes are not stored in the file itself, but are part of the file system.

 

You can delete extended attributes with

setfattr -x <attribute> <filename>

 

I have the File Integrity Plugin setup and working.  Thank you for all the work that you've put into this.   I have a very simple setup with 8 data drives, 1 parity and a cache drive.  As part of getting to know what the tool does I have set up to check one of the data drives each night.  And it does what I expect for the most part.  No errors are reported.  But I am puzzled by the fact that the checking process appears to cause writes to the disk being checked (and an equivalent number of writes to the parity drive).  I would have thought that the checking function would be read-only as far as the data drives are concerned, reading the data each file, calculating the hash, and verifying against the previously stored version in the extended attributes.  Is this behaviour of writes to the data disk expected?  Thanks.  

Edited by S80_UK
Typos

FIP won't cause write to data disk, just some after hash build.

Edited by Benson

6 hours ago, Benson said:

FIP won't cause write to data disk, just some after hash build.

 

So is it finding some hashes that are not built?  It seems very consistent, and FIP always tells me that all the hashes are up to date.  Some of the disks where this writing while checking has happened have not had new files written to them in some months. 

Edited by S80_UK

  • 2 weeks later...

Some users recomended this plugin after I got some file level corruption due to a power cut.

 

Can some one explain a basic use of this plugin and if it's able to find those files corrupted due to the power cut?

 

Thankyou
Gus

 

The use is explained multiple times in this thread already.  But briefly...  You install the plugin and it generates additional data (hashes) that are mathematically derived from the contents of each file.   The plugin monitors your server for added files and deliberate changes to files so that the hashes are kept up to date.  You also set up a schedule that the plugin uses to determine when to check each file's contents against its hash.  Typically you set up the schedule to split the checking to a few disks each time, depending on your system capabilities.  If an error is found while checking then that file has become corrupted due to some unknown event (could be a disk problem, for example).  Reporting includes notifications of checks, errors, etc.

 

This software cannot tell you if a file is corrupted if you have not already installed it and generated the hashes, since that process requires you to have known good files.  So it is too late for you to use it to find the files that have already been damaged by your power cut.  By the way, that is a very unlikely event, unless the file was being modified at the time of the power failure.  If you have a small UPS to protect your server that situation is easily avoided. 

Edited by S80_UK

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.