Veritas™ File System 5.0.1 Administrator's Guide

File placement policy grammar
VxFS allocates and relocates files within a multi-volume file system based on
properties in the file system metadata that pertains to the files. Placement
decisions may be based on file name, directory of residence, time of last access,
access frequency, file size, and ownership. An individual file system's criteria for
allocating and relocating files are expressed in the file system's file placement
policy.
A VxFS file placement policy defines the desired placement of sets of files on the
volumes of a VxFS multi-volume file system. A file placement policy specifies the
placement classes of volumes on which files should be created, and where and
under what conditions the files should be relocated to volumes in alternate
placement classes or deleted. You can create file placement policy documents,
which are XML text files, using either an XML or text editor, or a VxFS graphical
interface wizard.
See the /opt/VRTSfspro/config/placement_policy.dtd file for the overall
structure of a placement policy.
File placement policy rules
A VxFS file placement policy consists of one or more rules. Each rule applies to
one or more files. The files to which a rule applies are designated in one or more
SELECT statements. A SELECT statement designates files according to one or more
of four properties: their names or naming patterns, the directories in which they
reside, their owners' user names, and their owners' group names.
A file may be designated by more than one rule. For example, if one rule designates
files in directory /dir, and another designates files owned by user1, a file in /dir
that is owned by user1 is designated by both rules. Only the rule that appears
first in the placement policy applies to the file; subsequent rules are ignored.
You can define placement policies that do not encompass the entire file system
name space. When a file that is not designated by any rule in its file system's
active placement policy is created, VxFS places the file according to its own internal
algorithms. To maintain full control over file placement, include a catchall rule
at the end of each placement policy document with a SELECT statement that
designates files by the naming pattern *. Such a rule designates all files that have
not been designated by the rules appearing earlier in the placement policy
document.
Two types of rules exist: data and ckpt. The data rule type allows DST to relocate
normal data files. The ckpt rule type allows DST to relocate Storage Checkpoints.
You specify the rule type by setting the Flags attribute for the rule.
Dynamic Storage Tiering
File placement policy grammar
150