I don't have in mind the specific matching of the dircount attribute.

You can check by running:
robinhood --run=raise_alert --once -l FULL

(and abort with ctrl+c as soon as it displayed its initial DB request.)

It will display the DB request it runs.
If the request explicitely matches the fileclass name, then likely the policy 
result will be outdated.
If the request is more tricky with a count of the child entries in the NAMES 
tables, then the policy result will be up to date.

Thomas


-----Message d'origine-----
De : Loris Bennett <[email protected]> 
Envoyé : vendredi 15 janvier 2021 12:54
À : [email protected]
Objet : Re: [robinhood-support] Adding a class after initial scan

Hi Thomas,

Thanks for the information.  The file classes I am defining are actually for 
large directories: 

  FileClass very_large_dirs {
      definition {
          type == directory and dircount > 200000
      }
  }

  FileClass huge_dirs {
      definition {
          type == directory and dircount > 1000000
      }
  }

  ...

  rule raise_alert {
      ## List all fileclasses that would raise alerts HERE:
      target_fileclass = large_dirs;
      target_fileclass = very_large_dirs;
      target_fileclass = huge_dirs;

      # customize alert title:
      action_params { title = "entry matches '{fileclass}' ({rule})"; }

      # apply to all matching fileclasses in the policy scope
      condition = true;
  }

At what point will such directories be discovered if I don't do a scan?

Cheers,

Loris

"[email protected]" <[email protected]> writes:

> Hello Loris,
>
> If you want to recompute the fileclass for all entries in the 
> filesystem, you need to rescan indeed.
> Otherwise, fileclasses will be updated over time as entries are updated (when 
> a changelog is received for an entry, or checked for a policy...).
>
> Regards,
> Thomas
>   
> ________________________________________
> De : Loris Bennett <[email protected]> Envoyé : vendredi 15 
> janvier 2021 10:51 À : [email protected] Objet : 
> [robinhood-support] Adding a class after initial scan
>
> Hi,
>
> I have been using Robinhood 3.1.5 to manage a Lustre file system for 
> some time.  However, I have now added further classes to my 
> configuration.
>
> It is not clear to me how these new classes will become active.  Do I 
> have to reload the config (by restarting the service?) and/or rescan 
> the file system?
>
> --
> Dr. Loris Bennett (Hr./Mr.)
> ZEDAT, Freie Universität Berlin         Email [email protected]
>
>
> _______________________________________________
> robinhood-support mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/robinhood-support
--
Dr. Loris Bennett (Hr./Mr.)
ZEDAT, Freie Universität Berlin         Email [email protected]


_______________________________________________
robinhood-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/robinhood-support

_______________________________________________
robinhood-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/robinhood-support

Reply via email to