Skip to main content
NetApp Knowledge Base

Deleting WORM files resulted in a "Read-Only filesystem" error

Views:
16
Visibility:
Public
Votes:
0
Category:
snaplock
Specialty:
core
Last Updated:

Applies to

  • ONTAP 9
  • SnapLock

Issue

  • WORM files on SnapLock volumes could not be deleted with a "Read-Only filesystem" error.

find: cannot delete '/1YDATA/~~~~.log':Read-Only file system

  • The file is protected for 3 years.

::> date

Node   Date                     Time zone
------ ------------------------ -------------------------
node01 Sun Jul 23 16:28:50 2025 ROK
node02 Sun Jul 23 16:28:50 2025 ROK
2 entries were displayed.

::> vol file retention show -vserver worm_svm -file /vol/data/test.txt

           Vserver: worm_svm
                               Path: /vol/data/test.txt
Retention Time (Seconds From Epoch): 1754399972
           Formatted Retention Time: Tue Aug 5 13:16:32 GMT 2025
      Is Retention Time Expoundable: false

::> volume file fingerprint dump -session-id 178257593

                    Vserver: worm_svm
                 Session-ID: 178257593
                     Volume: data
                       Path: /vol/data/test.txt
              Filesystem ID: 1210603
                  File Type: worm
                  File Size: 1658050697
    Formatted Creation Time: Fri Jul 22 16:01:37 GMT 2022
Formatted Modification Time: Fri Jul 22 16:01:37 GMT 2022
     Formatted Changed Time: 1657907592
     Formatted Changed Time: Fri Jul 22 16:13:12 GMT 2022
             Retention Time: 1754399972
   Formatted Retention Time: Tue Aug 5 13:16:32 GMT 2025

  •  Autocommit setting is 14 days.

::> vol snaplock show -vserver worm_svm -instance

                       Vserver: worm_svm
                        Volume: data
                 SnapLock Type: enterprise
      Minimum Retention Period: 0 years
      Default Retention Period: 3 years
      Maximum Retention Period: 30 years
             Autocommit Period: 14 days
 Is Volume Append Mode Enabled: false

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

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.