Skip to main content
NetApp Knowledge Base

How does BlueXP create and purge snapshots of a CVO

Views:
18
Visibility:
Public
Votes:
0
Category:
cloud-manager
Specialty:
bluexp
Last Updated:

Applies to

  • BlueXP
  • Cloud Volumes ONTAP (CVO)

Answer

Snapshot creation :

  • BlueXP automatically creates snapshots of the root and boot disks during a manual shutdown of the Cloud Volumes ONTAP cluster.
  • Similarly, snapshots are also created during a reboot, such as during a Cloud Volumes ONTAP single node upgrade, panic, etc.

Purge Snapshots workflow :

  • BlueXP's action "Purge Cloud Snapshots" is triggered every 24 hours or 3 minutes after OCCM / connector starts.
  • As part of this flow BlueXP initiates a request to find snapshots to purge. From server.log :

2024-09-27 05:04:42,486 UTC INFO  [Purge Cloud Snapshots         ] [xxxxxxxx] [             ] [System         ] (oncloud-akka.actor.default-dispatcher-11535) [PurgeCloudSnapshotsActor:43] Got request to find snapshots to purge

  • BlueXP identifies snapshots to purge based on the labels in the snapshot's name. For single node environments, it looks for the labels "disk-root" and "disk-boot". For HA (High Availability) environments, it looks for "vm1-disk-root", "vm2-disk-root", "vm1-disk-boot", "vm2-disk-boot". From server.log :

2024-07-27 06:32:17,320 UTC INFO  [Purge Cloud Snapshots ] [xxxxxxxx] [ ] [System ] (oncloud-akka.actor.default-dispatcher-11986) [PurgeCloudSnapshotsActor:47] Got request to purge cloud provider snapshots

  • To reduce costs, BlueXP periodically deletes older snapshots of root and boot disks. The snapshots are sorted in descending order and the 2 most recent snapshots are retained and rest all are deleted.
  • When BlueXP successfully purges the snapshots as per retention period and labels , it is recorded in the BlueXP timeline and server.log of connector :

clipboard_e31bdbc9921c879e9f59488df17a5d53c.png

2024-12-30 11:30:42,812 UTC INFO  [Purge Cloud Snapshots         ] [******] [             ] [System         ] (common-akka.actor.default-dispatcher-19) [OdinActor:122] <<<< Finish action <= Action Name: 'Purge Cloud Snapshots', Resource Key: '**********', Status: Success <<<<

Additional Information

Incase you see any discrepancy in the number of snapshots , kindly check the audit logs of your Cloud Provider. 
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.