Searching...
SmallMediumLarge
Home Print Show Topic URL Previous Next

Setting WORM over NFS

Veritas Access Administrator's Guide

When a file is committed as Write-Once-Read-Many (WORM), the data in the file can be read but cannot be altered. The retention time for a WORM file specifies the time period for which the file must be retained after it is committed to WORM storage. The file cannot be deleted till the retention period expires. Once the retention time period has expired, the storage system allows the deletion of the file.

The file system on the server should be created with worm=yes option as the per-file WORM feature is supported only on file systems created with this option.

See the Storage> fs create man page for more details.

Export the file system from the server and mount it on the client.

To enable WORM on a file over NFS

  1. Change the access time of the file so that it has the same value as the period of retention.

    # touch -at YYYYMMDDhhmm.ss <filename>
                         
    

    For example, if a file named foo has to be retained till 14th July, 2035 10:37:42pm, run the following command:

    # touch -at 203507141037.42 foo
                            
                         
    
  2. Mark the file as read-only by changing the permissions of the file.

    For example, to make the file foo read-only, run the following command:

    # chmod -w foo
                            
                         
    

    On successful execution of the above two steps, WORM is enabled on the file, foo with 14th July, 2035 10:37:42pm as the retention time.