update disk size in the VM database(the internal template?)
|Category:||Core & System|
A command to update only the internal VM template.
onevm set-disk $VM_ID $DISK_ID $SIZE
There are several use cases:
- Current live resize is only to extend a image. When administrator know what is doing and want to shrink the disk he could shutdown the vm alter the VM disk images, and here he will want only to update the VM database with the actual size.
- when the disks backups are snapshots of the entire disk - when the snapshot we revert to is with different size I would like to have an interface to tell OpenNebula that the current disk size is...
Alternate solution is the disk monitoring probes to return the total disk size too and OpenNebula to update from them...
What do you think?
(again I am not sure how to categorize the feature: "Core & system" OR "Drivers - storage")