ONE 6.8.0.1
i’m currently trying to resize luks encrypted disks attached to VMs. the systemds is a iscsi san storage.
when i try to resize the disk i get the error
Wed Jan 15 14:16:44 2025 [Z0][VMM][D]: Message received: RESIZEDISK FAILURE 6 ERROR: resize_disk: Command "virsh --connect qemu:///system blockresize 490a48b5-4d33-4384-aa7c-0e8530b02af5 vdb 6144M" failed: error: Failed to resize block device 'vdb' error: internal error: unable to execute QEMU command 'block_resize': Cannot grow device files Failed to resize disk 2 on 490a48b5-4d33-4384-aa7c-0e8530b02af5 ExitCode: 1
Apologies for the delay, and thanks for your patience. Our team is investigating this issue, as it’s not a straightforward fix.
This error seems to occur with specific disk sizes, likely because the virsh blockresize command doesn’t fully support resizing LUKS-encrypted disks. A possible workaround is to modify the OpenNebula transfer manager script to adjust the blockresize parameters.
Have you had a chance to check the documentation on LUKS-encrypted images? You can find relevant details here: LUKS-Encrypted Images Documentation
In any case, our team will provide you with a more precise response soon. Thanks again for your patience!
Thanks for your reply.
My biggest concern with modifying the tm is that i’m not sure if using just 0 as size could lead to any issues later. i did some basic tests and it seems everything is fine after resizing and checksums seem fine.