vm_snapshot_chain_size in VMware #10230
Replies: 2 comments
-
it seems the answer to your question is "almost" as you are skiping the 313 and 320 values for the |
Beta Was this translation helpful? Give feedback.
-
Thank you so much for your prompt response. I understand.
No. But I couldn't see that CloudStack intends to add size of -flat.vmdk file to vm_snapshot_chain_size. -flat.vmdk file is a data disk but not a VM snapshot. The pattern |
Beta Was this translation helpful? Give feedback.
-
Let me confirm how to calculate vm_snapshot_chain_size in VMware.
The "volumes" table of CloudStack DB has the column "vm_snapshot_chain_size". We checked #2104 and #5735 to understand the specification of vm_snapshot_chain_size in VMware.
CloudStack seems to consider size of -flat.vmdk, -xxxxxx.vmdk and -xxxxxx-delta.vmdk files when it calculates vm_snapshot_chain_size.
cloudstack/plugins/hypervisors/vmware/src/main/java/com/cloud/hypervisor/vmware/manager/VmwareStorageManagerImpl.java
Lines 1313 to 1322 in 81e052c
Consider the following cases.
1. No VM snapshot
Create a virtual machine (i-2-268-DEVM).
.vmdk and -flat.vmdk files are created as follows:
Is the vm_snapshot_chain_size expected to be 0?
2. One VM snapshot
Create a VM snapshot.
.vmdk and -flat.vmdk files are created as follows:
Size of current volume vdisk (i-2-268-DEVM_268-000001-delta.vmdk) may grow up to the allocated size (=the value of the "size" column of the "volumes" table). So the total size of the volume may grow up to "the size of i-2-268-DEVM_268-flat.vmdk + the allocated size + the size of i-2-268-DEVM-Snapshot2.vmsn".
Is the vm_snapshot_chain_size expected to be 16106148937 (=16106127360+21577)?
3. Two VM snapshotVM
.vmdk and -flat.vmdk files are created as follows:
Size of current volume vdisk (i-2-268-DEVM_268-000002-delta.vmdk) may grow up to the allocated size (=the value of the "size" column of the "volumes" table). So the total size of the volume may grow up to "the size of i-2-268-DEVM_268-flat.vmdk + i-2-268-DEVM_268-000001.vmdk + i-2-268-DEVM_268-000001-delta.vmdk + the allocated size + the size of i-2-268-DEVM-Snapshot2.vmsn + i-2-268-DEVM-Snapshot3.vmsn".
Is the vm_snapshot_chain_size expected to be 16122980815 (=16106127360+21577+313+16809984+21581)?
Beta Was this translation helpful? Give feedback.
All reactions