Scroll to navigation

robinhood(1) Robinhood 3.0 robinhood(1)

NAME

robinhood - policy engine and statistics tool for large file systems

SYNOPSIS


robinhood [options]

ACTIONS

Scan the filesystem namespace. If dir is specified, only scan the specified subdir.
Read events from MDT ChangeLog. If mdt_idx is specified, only read ChangeLogs for the given MDT. Else, start 1 changelog reader thread per MDT (with DNE).
Run all polices (based on triggers).
Run the given policies with the specified arguments. See "Policy run options" for details about args.
Only check trigger thresholds without applying policy actions. If no policy is specified (or 'all'), check all triggers.

POLICY RUN OPTIONS

args Comma-separated list of <param>=<value>.


e.g. --run=cleanup(target=user:foo,max-count=1000)
The following parameters are allowed:

target=tgt


Targeted subset of entries for the policy run.
tgt can be one of:

all (all entries), user:username, group:grpname,
file:path, class:fileclass, ost:ost_idx, pool:poolname.
max-count=nbr


Max number of actions to execute for a policy run.
max-vol=size


Max volume of entries impacted by a policy run.
target-usage=pct


Targeted filesystem or OST usage for a policy run, in percent.
Specify the default target for policy runs (see target syntax above).
Specifies the default target disk usage (in pct) for 'all', 'ost' or 'pool' targets.
Apply policy to all entries in policy scope, without checking policy rule conditions.
Force applying policies even if no full scan has never been done (partial DB contents).
Don't limit the maximum number/volume of policy actions per pass.
Only report policy actions that would be performed without really doing them. Note: Robinhood DB is impacted as if the reported actions were really done.
Force applying a policy to all eligible entries, without considering policy limits and rule conditions. This is equivalent to: --once --no-limit --ignore-conditions --force

SCANNING OPTIONS

Garbage collection of entries in DB is a long operation when terminating a scan. This skips this operation if you don't care about removed entries (or don't expect entries to be removed). This is also recommended for partial scanning (see -scan=dir option).

OUTPUT OPTIONS

When scanning or reading changelogs, display changes for the given set of attributes (to stdout). attrset is a list of values in: path,posix,stripe,all,status,notimes,noatime.

BEHAVIOR OPTIONS

Perform only one pass of the specified action and exit.
Daemonize the process (detach from parent process).
Allow database schema modifications (backup your DB before using this).

CONFIG FILE OPTIONS

Path to configuration file (or short name).
Write a configuration file template to the specified file.
Display default configuration values.
Check configuration file and exit.

LOG OPTIONS

Force the path to the log file (overrides configuration value). Special values "stdout" and "stderr" can be used.
Force the log verbosity level (overrides configuration value). Allowed values: CRIT, MAJOR, EVENT, VERB, DEBUG, FULL.

MISCELLANEOUS OPTIONS

Display a short help about command line options.
Display version info
Pid file (used for service management).

SEE ALSO

rbh-report(1), rbh-find(1), rbh-du(1), rbh-diff(1)

07 July 2016