Skip to main content
NetApp Knowledge Base

Does objects delete after object lock is expired on StorageGRID?

Views:
41
Visibility:
Public
Votes:
0
Category:
storagegrid
Specialty:
sgrid
Last Updated:

Applies to

  • StorageGRID 11.8
  • Object lock enabled bucket
  • Retention set to X number of days

Answer

  • No, objects are NOT deleted when the retention period expired for the object lock set on the bucket.
  • Object lock on the objects are only removed based on the retention period.
  • Since the bucket is compliant, ILM rules cannot be set to delete the objects due to:
    • A compliant ILM rule requires the rule to have the retention period as FOREVER, which will not work in the case of deleting objects.
    • If ILM rule is created to retain objects for x days, the rule is NON-COMPLIANT and will not be in effect with the COMPLIANT bucket.
  • Use the bucket lifecycle policy to manage the automated deletion of the COMPLAINT object lock bucket.

Additional Information

Example of a bucket lifecycle policy (for versioned buckets)
 
{
    "Rules": [
        {
            "ID": "ExpireNonCurrentVersions",
            "Filter": {},
            "Status": "Enabled",
            "NoncurrentVersionExpiration": {
                "NoncurrentDays": 1
            }
        }
    ]
}
NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.