Stale Snapshot cleanup
The value for ENABLE_SNAPSHOT_CLEANUP in the
azurestack.conffile specifies when to clean up stale snapshots. You can use the following values:0
Do not delete the stale snapshots. This is the default value.
1
Delete the stale snapshots after the backup job completes.
2
Delete the stale snapshots as part of the next discovery job.
The value for SNAPSHOT_CLEANUP_MIN in the
azurestack.conffile specifies the time in minutes after which the snapshot is deleted. The default value is 1440 minutes (24 hours). The ideal value is the time difference in minutes between two backup job.
All the snapshots that are created as a part of backup job are deleted in the same backup job. However, due to some reasons like network failure, power outage, etc. the snapshot can remain in the Azure Stack environment. In such scenarios you can use the ENABLE_SNAPSHOT_CLEANUP parameter and set it to 1.
You can identify the snapshots that NetBackup creates using the following naming convention:
OSDisk
<Disk UUID_OSDisk_9999_<Snap id>_ BDAZSNAP>
For example:
/cb9b5b6d-0c60-4ed1-9cd7-7aaf054b899f_OSDisk_9999_1600405027_BDAZSNAP
DataDisk
<Disk UUID_DataDisk_1_<Snap id>_ BDAZSNAP>
For example:
/cb9b5b6d-0c60-4ed1-9cd7-7aaf054b899f_DataDisk_1_1600405027_BDAZSNAP