6.1 HP IBRIX X9000 Network Storage System CLI Reference (TA768-96057, June 2012)

Example 3: This example uses and to impose three conditions on the migration. Note the use of
10M, with no space separating the integer and unit defining the size threshold.
# ibrix_migrator -A -f ifs2 -r 'ctime older than 1 month and type = file
and size >= 10M' -S T1 -D T2
Example 4: This example uses the path keyword. It moves files greater than or equal to 5M that
are under the directory /ifs2/tiering_test from TIER1 to TIER2:
ibrix_migrator -A -f ifs2 -r "path = tiering_test and size >= 5M" -S
TIER1 -D TIER2
Example 5: Rules can be group- or user-based as well as time- or data-based. This example migrates
files associated with two users to T2, with no consideration of time. The names are quoted strings.
# ibrix_migrator -A -f ifs2 -r 'type = file and ( uname = "X9000user"
or uname = "nobody" )' -S T1 -D T2
Example 6: Conditions can be combined with and/or to create precise (even overly precise)
tiering rules.
# ibrix_migrator -A -f ifs2 -r ' (ctime older than 3 weeks and ctime younger
than 4 weeks) and type = file and ( name = "*.jpg" or name = "*.gif" )
and (size >= 10M and size <= 25M)' -S T1 -D T2
Example 7: Include the r option in the ibrix_migrator -l command to view rule definitions
on this file system.
ibrix_migrator -l -f ifs2 -r
The output lists the file-system name, the rule ID (IDs are assigned in the order in which rules are
added to the configuration database), the rule definition, and the source and destination tiers. For
example, the rule in Example 2 displays as:
ifs2 2 mtime older than 1 month and ( name = "*.jpg" or name = "*.gif" ) T1 T2
Example 8: Specify the rule ID (2 in this example) in the delete command to remove the rule from
the database.
ibrix_migrator -d -f ifs2 -r 2
See also
ibrix_fs, ibrix_tier
ibrix_migrator 103