We took on September 25th. The storage policy was set as below.
- Deduplication: Enabled
- Retention: set to 1 day and 0 cycles
- Worm Lock: Disabled
On the 26th, when the retention period had ended, CommVault sent in delete requests to the Cloud Storage for deletion of the metadata and indexes. However, no delete requests were sent for the archived data chunks. The Cloud Storage responded to these delete requests by deleting the metadata and indexes and responding to CommVault with a positive 204 response.
MediaAgent CloudFileAccess log:
5916 1760 09/26 12:15:28 ### #CVMountd] RemoveFile() - deleteimmediatezerocycle/7Z8CZ4_09.25.2023_11.54/CV_MAGNETIC/V_3222/CHUNK_14571/CHUNK_META_DATA_14571
5916 1760 09/26 12:15:28 ### #CVMountd] RemoveFile() - deleteimmediatezerocycle/7Z8CZ4_09.25.2023_11.54/CV_MAGNETIC/V_3222/CHUNK_14571/CHUNK_META_DATA_14571.idx
5916 1760 09/26 12:15:28 ### #CVMountd] RemoveFile() - deleteimmediatezerocycle/7Z8CZ4_09.25.2023_11.54/CV_MAGNETIC/V_3222/CHUNK_14575/CHUNK_META_DATA_14575
Cloud Storage Log:
default_access_log.2023-09-26.log.1:172.18.105.239 - admin m26/Sep/2023:19:15:26 +0000] - "DELETE /deleteimmediatezerocycle/7Z8CZ4_09.25.2023_11.54/CV_MAGNETIC/V_3222/CHUNK_14571/CHUNK_META_DATA_14571.FOLDER/0?versionId=18ad2eaed57 HTTP/1.1" 204 - 4ms
default_access_log.2023-09-26.log.1:172.18.105.239 - admin m26/Sep/2023:19:15:26 +0000] - "DELETE /deleteimmediatezerocycle/7Z8CZ4_09.25.2023_11.54/CV_MAGNETIC/V_3222/CHUNK_14571/CHUNK_META_DATA_14571.FOLDER/2?versionId=18ad2eaed57 HTTP/1.1" 204 - 6ms
From 26 onwards, CommCell console was showing that the pruning of these files was complete, and any Browse and Restore operation returned "no backups found for this chosen time range." But the archives were still present in our cloud storage (HCP-CS).
On October 3rd, CommVault makes delete requests for the actual data chunks, to which the cloud storage responds by deleting all archived data chunks.
MediaAgent CloudFileAccess log:
11174: 5916 8b0 10/03 12:15:16 ### :CVMountd] RemoveFile() - deleteimmediatezerocycle/7Z8CZ4_09.25.2023_11.54/CV_MAGNETIC/V_3222/CHUNK_14571/SFILE_CONTAINER_086
11177: 5916 8b0 10/03 12:15:17 ### :CVMountd] RemoveFile() - deleteimmediatezerocycle/7Z8CZ4_09.25.2023_11.54/CV_MAGNETIC/V_3222/CHUNK_14571/SFILE_CONTAINER.idx
11179: 5916 8b0 10/03 12:15:17 ### :CVMountd] DeleteFolder() - deleteimmediatezerocycle/7Z8CZ4_09.25.2023_11.54/CV_MAGNETIC/V_3222/CHUNK_14571
11181: 5916 8b0 10/03 12:15:17 ### :CVMountd] RemoveFile() - deleteimmediatezerocycle/7Z8CZ4_09.25.2023_11.54/CV_MAGNETIC/V_3222/CHUNKMAP_TRAILER_14571
Cloud Storage log:
87: default_access_log.2023-10-03.log.0:172.18.105.239 - admin 03/Oct/2023:19:15:10 +0000] - "DELETE /deleteimmediatezerocycle/7Z8CZ4_09.25.2023_11.54/CV_MAGNETIC/V_3222/CHUNK_14571/SFILE_CONTAINER_032 HTTP/1.1" 204 - 6ms
88: default_access_log.2023-10-03.log.0:172.18.105.239 - admin 03/Oct/2023:19:15:10 +0000] - "GET /deleteimmediatezerocycle?versions&encoding-type=url&delimiter=%2F&max-keys=1000&prefix=7Z8CZ4_09.25.2023_11.54%2FCV_MAGNETIC%2FV_3222%2FCHUNK_14571%2FSFILE_CONTAINER_032 HTTP/1.1" 200 799 7ms
89: default_access_log.2023-10-03.log.0:172.18.105.239 - admin 03/Oct/2023:19:15:10 +0000] - "DELETE /deleteimmediatezerocycle/7Z8CZ4_09.25.2023_11.54/CV_MAGNETIC/V_3222/CHUNK_14571/SFILE_CONTAINER_032?versionId=18af6f732e7 HTTP/1.1" 204 - 5ms
We want to know why CommVault delays the delete operation for 7 days in this case.