6.5 HP StoreAll OS CLI Reference Guide

Table Of Contents
The following example uses a relative date:
ibrix_migrator -A -f ifs2 -r "atime older than 2 days " -S TIER1 -D
TIER2
Rule keywords
Rules consist of keywords, qualifiers, and operators.
DefinitionKeyword
Access time, used in a rule as a fixed or relative time.atime
Change time, used in a rule as a fixed or relative time.ctime
Modification time, used in a rule as a fixed or relative time.mtime
An integer corresponding to a group ID.gid
A string corresponding to a group name. Enclose the name string in double quotes.gname
An integer corresponding to a user ID.uid
Value is a string corresponding to a user name, where the user is the owner of the file. Enclose the
name string in double quotes.
NOTE: LDAP and AD users cannot be used. Only local users are supported.
uname
In size-based rules, the threshold value for determining migration. This is an integer specified in K
(KB), M (MB), G (GB), or T (TB). Do not separate the value from its unit (for example 24K).
size
The file-system entity the rule operates on. Only the file entity is supported in the current version of
the product.
type
A regular expression, typically used to match file names. Enclose a regular expression in double
quotes. The asterisk (*) wildcard is valid. For example:
name
name = "*.mpg"
A name cannot contain a “ / ” character; you cannot specify a path. Only a file name is allowed.
Path name that allows these wild cards: *, ?, /. For example, if the mountpoint for the file system
is /mnt, path=ibfs1/mydir/* matches the entire directory subtree under /mnt/ibfs1/mydir.
(A path cannot start with a /).
path
Path name that rigidly conforms to UNIX shell file name expansion behavior. For example,
strict_path=/mnt/ibfs1/mydir/* matches only the files that are explicitly in the mydir
directory, but does not match any files in subdirectories of mydir.
strict_path
Examples of migration rules
When writing a rule, identify the following:
File system (-f)
Source tier (-S)
Destination tier (-D)
The rule portion of the command must be enclosed in single quotes. The format for writing a rule
is:
ibrix_migrator -A -f FSNAME -r 'RULE' -S SOURCE_TIER -D DEST_TIER
Example 1: This example writes a rule based on the file’s last modification time, using a relative
time period. All files that were last modified more than one month ago will be moved. The rule
string is always enclosed in single quotes.
# ibrix_migrator -A -f ifs2 -r 'mtime older than 1 month' -S T1 -D T2
ibrix_migrator 141