Deleting WORM files resulted in a "Read-Only filesystem" error
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
