Veritas Access Appliance Cloud Storage Tiering Solutions Guide

Last Published:
Product(s): Appliances (8.1)
Platform: Veritas 3340,Veritas 3350

Creating and scheduling a policy for a file system

A file system can have multiple on-premises tiers for storage. You can add a cloud service as an additional tier. After a cloud tier is configured, you can move data between the tiers of the file system as needed.

Use policies to define a set of data movement rules for the file system. Each file system can include a policy for deletion and a policy for data movement between tiers.

Be careful when specifying the criteria for moving files. Conflicting policies may cause data to move from one tier to another tier. A best practice is to use policies with a smaller data set first before applying those policies to file systems using a schedule.

A data movement policy can use the following criteria to indicate which files or directories to move between tiers:

  • pattern

  • atime

  • mtime

You can also perform a dry run of a policy.

See the storage_fs(1) policy section of the manual page for detailed examples.

Creating a policy

To create a policy

  1. Create a data movement policy policy1, for file system fs1, to move the files with file name extensions of .txt from the primary tier (disk tier) to tier1 (cloud tier), which did not get accessed or modified for the last two days.
    Storage> fs policy add operation=move policy1 fs1 primary tier1 
    *.txt atime >2d mtime >2d
    ACCESS policy SUCCESS V-288-0 Policy policy1 for fs fs1 added 
    successfully.
  2. Retrieve data from Amazon Glacier. Create a policy pol1, to move all the files with the file name extension of .txt from Amazon Glacier to the primary tier using the Bulk retrieval option.

    Files are copied to on-premises and then deleted from Amazon Glacier. The time when the files become available on-premises depends on the type of retrieval option selected.

    Storage> fs policy add operation=move pol1 gfs2 gtier primary 
    retrieval_option=Bulk *.txt
  3. Create a data deletion policy policy2, for file system fs1 to move the files with file name extensions of .txt from tier1 (cloud tier), which did not get accessed or modified for the last two days.
    Storage> fs policy add operation=delete policy2 fs1 tier1 \*.txt
    atime >2d mtime >2d
    ACCESS policy SUCCESS V-288-0 Policy policy2 for fs fs1 added 
    successfully.
  4. Modify data movement policy policy1, for file system fs1 to move the files with the file name extension of .doc, which did not get accessed or modified for the last three days.
    Storage> fs policy modify policy1 \*.doc atime >3d mtime >3d
    ACCESS policy SUCCESS V-288-0 Policy policy1 modified 
    successfully.
  5. List all the policies.
    Storage> fs policy list
    Name     FS name  Action   Source Tier     Destination Tier         
    =======  ======== =======  =============== ================= 
    policy2  fs1      delete   tier1           -                 
    policy1  fs1      move     primary         tier1             
    
    Retrieval Option  Pattern     Atime   Mtime   State
    ================= =========   ======  ======  =========
    Standard          *.txt       >2d     >2d     not running
    Standard          *.doc       >3d     >3d     running
  6. List all the policies set for file system fs1.
    Storage> fs policy list
    Name     FS name  Action   Source Tier     Destination Tier         
    =======  ======== =======  =============== ================= 
    policy2  fs1      delete   tier1           -                 
    policy1  fs1      move     primary         tier1             
    
    Retrieval Option  Pattern     Atime   Mtime   State
    ================= =========   ======  ======  =========
    Standard          \*.txt      >2d     >2d     running
    Standard          \*.doc      >3d     >3d     not running
  7. Delete policy policy1, set for file system fs1.
    Storage> fs policy delete policy1 fs1
    ACCESS policy SUCCESS V-288-0 Policy policy1 for fs fs1 deleted 
    successfully.
  8. Rename policy2 to policy3.
    Storage> fs policy rename policy2 policy3
    ACCESS policy SUCCESS V-288-0 Policy policy2 renamed to policy3.
  9. Show the status of policy run for the policy Policy1.
    Storage> fs policy status Policy1
    Policy Name:                   Policy1
    =================================================
    Policy Run Type:               unknown
    Policy Run Status:             completed
    Moved Data:                    600.0 MB
    Total Moved Files:             6
    Total Deleted Files:           3
  10. Abort the currently running policy Policy1.
    Storage> fs policy abort Policy1
    ACCESS policy INFO V-288-0 Policy Policy1 aborted successfully.
  11. Start a dry run of the policy Policy1.
    Storage> fs policy dryrun Policy1
    ACCESS policy INFO V-288-0 Policy Policy1 dryrun started in background, 
    please check 'fs policy status' for progress.
  12. Pause the currently running policy Policy1.
    Storage> fs policy pause Policy1
    ACCESS policy INFO V-288-0 Policy Policy1 paused successfully.
  13. Run the currently paused policy Policy1.
    Storage> fs policy run Policy1
    Policy Policy1 is not running currently, as it was killed/paused. 
    Would you like to start new run (y/n): y
    ACCESS policy INFO V-288-0 Policy Policy1 run started in background, 
    please check 'fs policy status' for progress.
  14. Resume the currently paused policy Policy1.
    Storage> fs policy resume Policy1
    ACCESS policy INFO V-288-0 Policy Policy1 resume started in background, 
    please check 'fs policy status' for progress.
Scheduling a policy

Creating a policy schedule

  1. To create a policy schedule:
    storage> fs policy schedule create fs1 23 20
    ACCESS policy_schedule SUCCESS V-493-10-2945 
    Schedule create for file system fs1 done successfully.
  2. To list a policy schedule:
    storage> fs policy schedule list fs10
    File System Name Minute Hour Day of Month Month Day of Week 
    ================ ====== ==== ============ ===== =========== 
    fs1              23     20   *            *     *
    byos1> storage fs policy schedule remove fs1
    ACCESS policy_schedule SUCCESS V-493-10-2947 
    Schedule for file system fs1 removed successfully.
  3. To remove a policy schedule:
    storage> fs policy schedule remove fs1
    ACCESS policy_schedule SUCCESS V-493-10-2947 
    Schedule for file system fs1 removed successfully.