- Notifications
You must be signed in to change notification settings - Fork1.3k
What does Snapshots, Backups, and Incremental Snapshots mean in CloudStack#12475
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Dear CloudStack fellows, Recently, Lucian mentioned the new 4.22 feature that "enables incremental volume snapshots" (https://www.youtube.com/watch?v=ZZi3CpX6u2I&t=680s). I would like to open a discussion so we can collaboratively clarify the different types of snapshots and backups that CloudStack currently supports, and how they actually work. First, there is an important conceptual distinction between snapshots and backups:
From there, things become more nuanced:
Where I am still unclear is how these concepts map into the Apache CloudStack ecosystem:
For the sake of simplicity, I am focusing first on KVM + NFS but it is not limited to. These distinctions matter, especially when SLAs, compliance requirements, and operational policies treat snapshots and backups very differently. I encourage others to share their understanding and explanations. My goal is to consolidate this discussion and translate it into clearer documentation afterward. Regards, Davi Torres |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 9 comments 15 replies
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
BetaWas this translation helpful?Give feedback.
All reactions
-
You can most certainly create instance snapshots while the instance is in a shutdown state. You can also create instance snapshot without memory. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Dear@chunkyen , than you for your reply. What you said is generally correct, but in practice it is not always true. There are cases where creating a snapshot without memory is not allowed, and the UI error message does not clearly explain why. For example, in the instance below, snapshot creation only works ifSnapshot memory is enabled: ![]() However, on other instances, snapshot creation works fine without memory, for example: ![]() Some additional context: The instance that only allows snapshots with memory has The instance that allows snapshots without memory was deployed from an out-of-the-box template and does not have So while snapshots without memory are supported in general, there seems to be some internal logic or constraint that blocks it in certain cases, and the current error message does not make this clear. Do you know what specifically causes this behavior? |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Answering my own question, the fact that limited the Instance Snapshot without adding the memory was the missing setting ![]() I managed to "fix" the ISO template by adding those settings in the table ![]() Besides the fix mentioned above, there is a limitation around mixing snapshot types. If a snapshot that includes memory already exists, the system does not allow creating a snapshot without memory. The reverse is also true. My understanding is that disk-only snapshots use QCOW2 metadata, while disk-plus-memory snapshots use a chain-based approach. Because these rely on different underlying mechanisms, mixing them is not allowed, likely to prevent data corruption or loss. Like described in PR#11039 |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Hi! Yes, volume snapshots are backups with an unfortunate name. Just pointing out you can also enable the configuration |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Thank you@gpordeus . I do have it enabled and I am trying to understand how they work because labels and descriptions are not always clear. For example, in some occasions it does internal (leveraging QCOW2's metadata) and others it does external (chaining multiple QCOW2 files). |
BetaWas this translation helpful?Give feedback.
All reactions
-
When using volume snapshots, there are internal pointers in the original volume (in the primary storage) that are used only to create the deltas, which are then backed up to the secondary storage. Would this be what you mean? There's more info about the workflow in#8907. |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
-
Moreover, in the ![]() And, I came across this documentation page that mentions snapshot types:https://cwiki.apache.org/confluence/display/CLOUDSTACK/VM+Snapshots However, the information there is not detailed enough for me to fully understand the differences, so I would appreciate a more thorough explanation. |
BetaWas this translation helpful?Give feedback.
All reactions
-
@daviftorres, |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
BetaWas this translation helpful?Give feedback.
All reactions
-
@daviftorres there are pro and con for the different snapshot and backup options. Find them here: Instance snapshot:
I hopefully have covered most of the important criteria to be considered. |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1🚀 1
-
Thank you@ingox , for your reply. This is pretty much in the lines that I want to consolidate knowledge. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Just to add that for the block storage providers there could be some differences. From what I know For the rest of the storage plugins I don't have much experience |
BetaWas this translation helpful?Give feedback.
All reactions
-
Can this be used for Linstor primary storage ? |
BetaWas this translation helpful?Give feedback.
All reactions
-
@bilalinamdar What exactly to do you want to do on the Linstor storage? |
BetaWas this translation helpful?Give feedback.
All reactions
-
I mean to ask this backup incremental feature works with NFS but will it work with linstor drbd? |
BetaWas this translation helpful?Give feedback.
All reactions
-
I can't say much about Linstor/StorPool but these global settings appear on 4.22 when compared with 4.20.
If you find answers, please share here. |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
-
@bilalinamdar,@daviftorres, StorPool does not support backups through CloudStack for now (we have internal methods for backups). I think and Linstor does not support backups either (probably@rp- can confirm) |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
-
We have here work going on to support nas backup:#12218 |
BetaWas this translation helpful?Give feedback.
All reactions
-
@bilalinamdar see this article from@rajujith: https://www.shapeblue.com/nas-backup-and-recovery-plugin/ The NAS Backup and Recovery Plugin currently supports NFS (Network File System) and operates as a straightforward B&R recovery provider, making it both storage and vendor-agnostic. This enables administrators to do efficient backups of running instances,regardless of their source storage. It also can be used to create backups of stopped instancesstored on both NFS and local primary storage. However, please note thatrestore operations are currently supported only for NFS and local primary storage. |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
-
Hi, the global settings seems to imply that B&R framework will also work with Dell Networker. Do you know if this is the case? |
BetaWas this translation helpful?Give feedback.
All reactions
-
@ingox , actually starting from 4.22, restore operations for ceph is also supported.#11684 |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1





















