Rule attributes, Operators and date/time qualifiers, Rule attributes operators and date/time qualifiers – HP StoreAll Storage User Manual
Page 388
![background image](/manuals/398849/388/background.png)
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
Use the following qualifiers for relative times and dates:
•
Relative time: Enter in rules as year or years, month or months, week or weeks, day or
days
, hour or hours.
•
Relative date: Use older than or younger than. The rules engine uses the time the
ibrix_migrator
command starts execution as the start time for the rule. It then computes
the required time for the rule based on this start time. For example, ctime older than 4
weeks
refers to that time period more that 4 weeks before the start time.
The following example uses a relative date:
ibrix_migrator -A -f ifs2 -r "atime older than 2 days " -S TIER1 -D
TIER2
388 Using data tiering