On 07/11/17 16:35, Hoolihan, Joe (US) wrote:
All,
I am seeing an odd behavior with Robinhood and MySQL when tracking
Lustre file system access times.
Here is my test: I created a file on my Lustre file system. It
created a record in the robinhood database, in the ENTRIES table, and
a rbh-report --entry-info filename returned the info.
I then added a text line to the file (echo "ADDED STRING" >>
filename). an ls -l of the file revealed it had been modified, but
the rbh-report --entry-info and direct query of the database showed
that the last_access and last_mod fields had not updated. This did
not change over time.
Hello Hoolihan,
You did not give much details about your robinhood configuration.
* Is a changelog reader properly registered to the filesystem? (cat
/proc/fs/lustre/mdd/*/changelog_users on the MDS)
Does the changelog mask include OPEN, CLOSE, MTIME .... (cat
/proc/fs/lustre/mdd/*/changelog_mask on the MDS)
* Do you have a robinhood daemon running with the --readlog option?
Depending on your configuration and the system load, there may be a
delay between the action on the filesystem and the update of the
robinhood DB. Posting your robinhood configuration may help troubleshooting.
When the file permissions were changed (chmod 640 filename) that
forced an update to the database and both direct query and rbh-report
--entry-info were correct. Each time value was correct (last_access
time was different from last_mod, reflecting the correct values).
It sounds like your changelog mask is incomplete, as robinhood seams to
react on SETATTR but not on OPEN/MTIME/CLOSE
So, my question is: Is there something I did wrong that would cause
the database not to get updated when a lustre file changed (some
config value or other setting), or is this a possible bug (or maybe a
feature) ?
Also take care that access time (POSIX' atime) is different from last
modification time (mtime) and change time (ctime).
By default, the changelog mask include events that modify mtime and
ctime, but not atime.
HTH
Thomas.
Joseph P. Hoolihan
BAE Systems, Inc.
443-654-9701 onsite number
301-974-9033 cell
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
robinhood-devel mailing list
robinhood-de...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/robinhood-devel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
robinhood-support mailing list
robinhood-support@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/robinhood-support