ONTAP Recipes

ONTAP Recipes: Easily make a file into a WORM file on a SnapLock volume via NFS

ontap_recipes

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

hariprak

Hi,

 

Thanks for sharing this information.

 

Cheers

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.
Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner