New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VM configured for FULL backup on Sunstone cant be changed to INCREMENTAL backup #6400
Comments
Hello team May we follow-up on this? Thanks in advance |
Yes it should be reverted. Note that some VMs cannot use incremental, for example VMs with disk snapshots. Maybe we should add a warning related to this |
I will left this issue to log the error, i.e. VM cannot do INCREMENTAL |
Thanks Mr. Montero I will create new VM and will configure it first for FULL backup, and will try to revert it to INCREMENTAL backup. Will let you know the results, to conclude if previous werent able to revert backup type due to disk snapshot. |
@rsmontero The config was successfully reverted. On this specific VM Show VM info: onevm show 170 This is the VM info:
Do you see anything strange here Sir? The VM was created from a qcow2 image imported to the OpenNebula. It has a data disk and the OS disk. It was first configured for FULL backup and now cant be reverted to INCREMENTAL backup. |
Just in case the keyword is MODE="INCREMENT" not INCREMENTAL... |
Yes, sorry for that. I have tested Updating the config from the cli,
specifying that key word too (INCREMENT). The VM config just return to FULL
and the VM doesnt have any snapshot on its disks.
El mié, 22 nov 2023 9:53 a. m., Ruben S. Montero ***@***.***>
escribió:
… Just in case the keyword is MODE="INCREMENT" not INCREMENTAL...
—
Reply to this email directly, view it on GitHub
<#6400 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANRJPNYF2NDOO7D2M7JLNH3YFYGXHAVCNFSM6AAAAAA7LXRGXCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRSHEZDCNBUGM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Also all disks needs to be qcow2 |
For the reference: Check on disks for increment is done here:
|
Yes Sir, all the VM disks are qcow2 disks and none of them have snapshot disks. The problem was resolved recreating the VM from the begining. It would be nice the warning for trying to configure the INCREMENT backup on a VM that doesnt have qcow2 disks or have snapshots disks :). Thanks in advance Mr. Montero. |
This commits returns an error message when trying to change a VM to incremental mode if not supported by the VM configuration. Previously, the change was silently ignored by OpenNebula. (cherry picked from commit 97cfa76)
This commits returns an error message when trying to change a VM to incremental mode if not supported by the VM configuration. Previously, the change was silently ignored by OpenNebula.
Hi @rsmontero , we find a problem in our cluster, We didn't have the FORMAT property in the disk template. Do you have any suggestion? Also is the I was able to change to INCREMENTAL after adding FORMAT property to the body of the vm template. one/src/vm/VirtualMachineDisk.cc Lines 1553 to 1577 in 57efabf
This is our VM template (part of): ...
CPU = "1"
DISK = [
ALLOW_ORPHANS = "NO",
CLONE = "YES",
CLONE_TARGET = "SYSTEM",
CLUSTER_ID = "0,100",
DATASTORE = "images",
DATASTORE_ID = "1",
DEV_PREFIX = "vd",
DISK_ID = "0",
DISK_SNAPSHOT_TOTAL_SIZE = "0",
DISK_TYPE = "FILE",
DRIVER = "qcow2",
IMAGE = "windows2019-Sep2020",
IMAGE_ID = "2",
IMAGE_STATE = "2",
LN_TARGET = "NONE",
ORIGINAL_SIZE = "51200",
READONLY = "NO",
SAVE = "NO",
SIZE = "102400",
SOURCE = "/var/lib/one//datastores/1/bb52083cfd52218c3957ce830b1aaf43",
TARGET = "vda",
TM_MAD = "shared",
TYPE = "FILE" ]
FEATURES = [
... |
Description
Once configured the backups for a given VM, and specified to FULL backup, this configuration cannot be reverted either via Sunstone or CLI (
onevm updateconf VM_ID
). It allways get back to first configuration (on this case, the Full backup).To Reproduce
Configure FULL backup for a given VM via Suntone and after apply configuration, try to reconfigure it and select this time the INCREMENTAL backups.
Expected behavior
The VM backup type should have changed to the new one.
Details
The text was updated successfully, but these errors were encountered: