Hp StoreAll Storage User Manual Page 238

  • Download
  • Add to my manuals
  • Print
  • Page
    / 254
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 237
Rule keywords
The following keywords can be used in rules.
DescriptionKeyword
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 timemtime
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
A string corresponding to a user name, where the user is the owner of the file. Enclose the name
string in double quotes.
uname
File system entity the rule operates on. Currently, only the file entity is supported.type
In size-based rules, the threshold value for determining migration. Value is an integer specified in
K (KB), M (MB), G (GB), and T (TB). Do not separate the value from its unit (for example, 24K).
size
Regular expression. A typical use of a regular expression is to match file names. Enclose a regular
expression in double quotes. The * wildcard is valid (for example, name = "*.mpg").
name
A name cannot contain a / character. You cannot specify a path; only a filename 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
Migration rule examples
When you write a rule, identify the following components:
File system (-f)
Source tier (-S)
Destination tier (-D)
Use the following command to write a rule. The rule portion of the command must be enclosed in
single quotes.
ibrix_migrator -A -f FSNAME -r 'RULE' -S SOURCE_TIER -D DEST_TIER
Examples:
The rule in the following example is based on the file’s last modification time, using a relative time
period. All files whose last modification date is more than one month in the past are moved.
# ibrix_migrator -A -f ifs2 -r 'mtime older than 1 month' -S T1 -D T2
In the next example, the rule is modified to limit the files being migrated to two types of graphic
files. The or expression is enclosed in parentheses, and the * wildcard is used to match filename
patterns.
# ibrix_migrator -A -f ifs2 -r 'mtime older than 1 month and
( name = "*.jpg" or name = "*.gif" )' -S T1 -D T2
In the next example, three conditions are imposed on the migration. Note that there is no space
between the integer and unit that define the size threshold (10M):
# ibrix_migrator -A -f ifs2 -r 'ctime older than 1 month and type = file
and size >= 10M' -S T1 -D T2
238 Using data tiering
Page view 237
1 2 ... 233 234 235 236 237 238 239 240 241 242 243 ... 253 254

Comments to this Manuals

No comments