Writing tiering rules, Rule attributes, Operators and date/time qualifiers – HP StoreAll Storage User Manual
Page 191: Rule attributes operators and date/time qualifiers, Deleting a tiering rule
Deleting a tiering rule
Before deleting a rule, run the ibrix_migrator -l [-f FSNAME] -r command and note
the ID assigned to the rule. Then use the following command to delete the rule:
ibrix_migrator -d -f FSNAME -r RULE_ID
The -r option specifies the rule ID. For example:
[root@ibrix01a ~]# ibrix_migrator -d -f ifs2 -r 2
Writing tiering rules
A tiering policy consists of one or more rules that specify how data is migrated from one tier to
another. You can write rules using the GUI, or you can write them directly to the configuration
database using the ibrix_migrator -A command.
Rule attributes
Each rule identifies file attributes to be matched. It also specifies the source tier to scan and the
destination tier where files that meet the rule’s criteria will be moved and stored.
Note the following:
•
Tiering rules are based on individual file attributes.
•
All rules are executed when the tiering policy is applied during execution of the
ibrix_migrator
command.
•
It is important that different rules do not target the same files, especially if different destination
tiers are specified. If tiering rules are ambiguous, the final destination for a file is not
predictable. See
, for more information.
The following are examples of attributes that can be specified in rules. All attributes are listed in
. You can use AND and OR operators to create combinations.
Access time
•
File was last accessed x or more days ago
•
File was accessed in the last y days
Modification time
•
File was last modified x or more days ago
File size—greater than n K
File name or File type—jpg, wav, exe (include or exclude)
File ownership—owned by user(s) (include or exclude)
Use of the tiering assignments or policy on any file system is optional. Tiering is not assigned by
default; there is no “default” tier.
Operators and date/time qualifiers
Valid rules operators are <, <=, =, !=, >, >=, and boolean and and or.
Use the following qualifiers for fixed times and dates:
•
Time: Enter as three pairs of colon-separated integers using a 24-hour clock. The format is
hh:mm:ss
(for example, 15:30:00).
•
Date: Enter as yyyy-mm-dd [hh:mm:ss], where time of day is optional (for example,
2008-06-04
or 2008-06-04 15:30:00). Note the space separating the date and time.
When specifying an absolute date and/or time, the rule must use a compare type operator (< |
<=
| = | != | > | >=). For example:
ibrix_migrator -A -f ifs2 -r "atime > '2010-09-23' " -S TIER1 -D TIER2
Writing tiering rules
191