
PS: Access to the CVM and PCVM bash shells will be gradually removed; depending on when you read this post, some of these commands may no longer work as expected.
For more information, see the link below:
End of Support Life (EOSL) for SSH Bash Shell Access
Identifying PD (Protection Domain) snapshots
Protection Domains regularly capture snapshots of a group of VMs and VGs on the same schedule. These snapshots can be accessed from Prism Element on the Data Protection page. Upon selecting a protection domain, a table will display both local and remote snapshots for the protection domain. You can further explore associated entities and determine the amount of reclaimable space if you delete specific snapshots or the entire protection domain and all associated snapshots.
nutanix@CVM$ ncli pd ls-snaps
When a protection domain remains undeleted, it will retain 1 snapshot (possibly expired) and the space will not be fully reclaimed until the PD is deleted. This behavior is intentional to ensure you always have a snapshot reference in the event of a problem and to prevent the need for a time-consuming full replication. Deleting a PD is the way to signify to the cluster that you want all snapshots removed.
Please take note: The sum of the reclaimable space for all snapshots in a protection domain may not always equal the total reclaimable space for the protection domain. This is due in part to the fact that reclaimable space may be referenced by multiple snapshots.
3. Identifying AHV only snapshots
Users running AHV hypervisor clusters can take Acropolis-based snapshots from the VM page in Prism Element without using a protection domain or recovery points. These snapshots take up space equal to the difference in data between the snapshot and the current VM state.
To check the Acropolis snapshots in the Prism UI, you must click on each VM and then VM Snapshots. To obtain an overall listing of snapshots across all VMs, you should run the following command from any CVM logged in as the Nutanix user:nutanix@CVM$ acli snapshot.list
nutanix@CVM$ acli snapshot.list
To get more specific details about a given snapshot you can run the following command, providing the snapshot uuid:
nutanix@CVM$ acli snapshot.get <snapshot uuid>
nutanix@CVM$ acli snapshot.get <snapshot uuid>
Check Space Reduction:
+ The Nutanix curator_cli display_data_reduction_report command provides detailed information on storage savings per container by transform (in this case, snapshot). I am also providing you with column headers for the data.
+ “Pre Reduction” is the amount of space used by snapshots, for each container.
+ “Post Reduction” is the amount of space used after optimizing these snapshots, for each container.
+ While the Nutanix optimization engine is able to save a considerable amount of space for “CONT_RF2_GEN_WORKLOADS” (id: 66249) and container “SelfServiceContainer” (id: 2404), these optimized snapshots are still consuming a large amount of space.
nutanix@NTNX-CVM:200.86.144.26:~$ curator_cli display_data_reduction_report | grep -i snapshot
+—————————————————————————————+
| Container Id | Technique | Pre Reduction | Post Reduction | Saved | Ratio |
+—————————————————————————————+
| 39 | Snapshot | 739.87 GB | 739.87 GB | 0.00 KB | 1 |
| 2404 | Snapshot | 725.60 TB | 370.65 TB | 354.94 TB | 1.95761 |
| 66249 | Snapshot | 10112.29 TB | 410.09 TB | 9702.20 TB | 24.6588 |
| 66251 | Snapshot | 78.88 TB | 23.39 TB | 55.49 TB | 3.37292 |
| 66254 | Snapshot | 276.50 GB | 276.50 GB | 1.44 MB | 1.00001 |
| 149269684 | Snapshot | 24.60 GB | 24.60 GB | 0.00 KB | 1 |
| 615975655 | Snapshot | 1.24 TB | 327.26 GB | 937.44 GB | 3.86454 |
| 6168531621 | Snapshot | 191.02 TB | 18.42 TB | 172.60 TB | 10.3698 |


Leave a Reply
You must be logged in to post a comment.