cea-hpc / robinhood

Robinhood Policy Engine : a versatile tool to monitor filesystem contents and schedule actions on filesystem entries.
http://robinhood.sf.net
Other
177 stars 60 forks source link

rbh-report -S stopped working #101

Closed thiell closed 5 years ago

thiell commented 5 years ago

Hey @tl-cea, I use rbh-report -S to split file class reports by user AND group and this command stopped working a few days ago I'm not sure why:

[root@oak-rbh01 scripts.d]# time rbh-report --user-info  -S  -C stanford+groups+nosnap
Using config file '/etc/robinhood.d/oak.conf'.
filter class: stanford+groups+nosnap

real    7m52.198s
user    0m0.004s
sys 0m0.002s
[root@oak-rbh01 scripts.d]# 

It just displays nothing anymore for this particular file class filter.

If I remove -S, the command works fine:

[root@oak-rbh01 scripts.d]# rbh-report --user-info -C stanford+groups+nosnap
Using config file '/etc/robinhood.d/oak.conf'.
filter class: stanford+groups+nosnap
      user,     type,      count,     volume,   spc_used,   min_size,   max_size,   avg_size
     16141,      dir,         28,  112.00 KB,  112.00 KB,    4.00 KB,    4.00 KB,    4.00 KB
...
   zyzhang,     fifo,          2,          0,          0,          0,          0,          0

Total: 314287279 entries, volume: 2881894423444041 bytes (2.56 PB), space used: 2862809526496256 bytes (2.54 PB)

Version: robinhood-lustre-3.1.4-1.lustre2.10.el7.centos.x86_64 Any idea on how to troubleshoot this? Thanks!

thiell commented 5 years ago

Ok closing as this problem was due to MySQL's tmpdir being too small to handle some temporary tables when -S was specified, but not due to an issue with robinhood itself. I fixed it by changing tmpdir to a larger volume.