Sample policy file

Last published : Jul 07, 2026
The following sample policy file defines the following policies:
  • Files which are not accessed for more than 30 days are moved to the cloud tier.
  • MP3 files are stored on the cloud tier.
(Applicable to block-level migration only, but not in case of file-level migration.)
  • All other files are created on the local tier.
<?xml version="1.0"?>
<!DOCTYPE PLACEMENT_POLICY SYSTEM "/opt/VRTSvxfs/etc/placement_policy.dtd">
<PLACEMENT_POLICY Version="5.0" Name="2tier_write_policy">
    <RULE Flags="data" Name="Regular-Files-Rule">
        <COMMENT>
        Files which have not been accessed within the past 5 seconds
        and which are on tier2 will be moved to LOCAL tier i.e. tier1
        </COMMENT>
        <SELECT Flags="Data">
            <PATTERN> * </PATTERN>
        </SELECT>
        <CREATE>
            <ON>
                <DESTINATION>
                    <CLASS> tier1 </CLASS>
                </DESTINATION>
            </ON>
        </CREATE>
        <RELOCATE>
            <FROM>
                <SOURCE>
                    <CLASS> tier1 </CLASS>
                </SOURCE>
            </FROM>
            <TO>
                <DESTINATION>
                    <CLASS> tier2 </CLASS>
                </DESTINATION>
            </TO>
            <WHEN>
                <ACCAGE Units="days">
                    <MIN Flags="gt"> 30 </MIN>
                </ACCAGE>
            </WHEN>
        </RELOCATE>
    </RULE>
</PLACEMENT_POLICY>