Veritas Storage Foundation 5.1 SP1 Advanced Features Administrator"s Guide (5900-1503, April 2011)

</SIZE>
</WHEN>
You cannot write rules to relocate or delete a single designated set of files if the
files meet one of two or more relocation or deletion criteria.
File placement policy rule and statement ordering
You can use the SmartTier graphical user interface (GUI) to create any of four
types of file placement policy documents. Alternatively, you can use a text editor
or XML editor to create XML policy documents directly. The GUI places policy
rule statements in the correct order to achieve the desired behavior. If you use a
text editor, it is your responsibility to order policy rules and the statements in
them so that the desired behavior results.
The rules that comprise a placement policy may occur in any order, but during
both file allocation and fsppadm enforce relocation scans, the first rule in which
a file is designated by a SELECT statement is the only rule against which that file
is evaluated. Thus, rules whose purpose is to supersede a generally applicable
behavior for a special class of files should precede the general rules in a file
placement policy document.
The following XML snippet illustrates faulty rule placement with potentially
unintended consequences:
<?xml version="1.0"?>
<!DOCTYPE FILE_PLACEMENT_POLICY SYSTEM "placement.dtd">
<FILE_PLACEMENT_POLICY Version="5.0">
<RULE Name="GeneralRule">
<SELECT>
<PATTERN>*</PATTERN>
</SELECT>
<CREATE>
<ON>
<DESTINATION>
<CLASS>tier2</CLASS>
</DESTINATION>
</ON>
</CREATE>
other_statements
</RULE>
<RULE Name="DatabaseRule">
<SELECT>
<PATTERN>*.db</PATTERN>
Administering SmartTier
File placement policy rule and statement ordering
376