ONTAP Recipes: Easily make a file into a WORM file on a SnapLock volume via NFS
2017-07-28 11:27 AM
ONTAP Recipes: Did you know you can…?
Easily make a file into a WORM file on a SnapLock volume via NFS
1. On the NFS host on which the volume is mounted, change the permissions on the file to read only. This makes the file a WORM file.
chmod -w <file>
2. To override the default retention period setting and set a retention period greater than the default, you can either:
- Explicitly set the time of the file to the retention period required.
touch -a -t <[[CC]YY]MMDDhhmm[.ss]> <file>
- Set the autocommit scan period on the volume. This ensures that any file that has not been modified for the period set, will automatically be made a WORM file.
volume snaplock modify -vserver <vservername> - volume <volumename> -autocommit-period <value>
For more information, please see the ONTAP9 documentation center
1 REPLY 1
Re: ONTAP Recipes: Easily make a file into a WORM file on a SnapLock volume via NFS
2017-07-31 04:02 AM
Thanks for sharing this information.
If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.