I am trying to live move one disk of a Proxmox VM from Linstor to another storage.
It fails with the error:
TASK ERROR: storage migration failed: block job (mirror) error: drive-scsi2: Source and target image have different sizes (io-status: ok)
I found this forum post and this github issue where I learned that I should set the DrbdOptions/ExactSize property to true. So I tried that, but I get:
# linstor resource-definition set-property pm-3f00aa01 DrbdOptions/ExactSize true
ERROR:
Description:
The property 'DrbdOptions/ExactSize' cannot be set to True while there are currently deployed resources(3).
Details:
Resource definition: pm-3f00aa01
What is the recommended procedure to set this property?
But only do this with VM you want to migrate from local storage to drbd storage, when done migrating do no forget to remove this settings or as I did add a hashtag.
Now I see you already tried moving it but you are stuck at this moment, so I am guessing your VM is still using it’s local storage duo to the error you’ve seen?
If that answer is yes then you should - in my opinion - delete pm-3f00aa01 and try again when you have enabled the above setting.
Please continue with caution and first create a back-up of your VM!
linstor resource-definition list
linstor resource-definition set-property <resource_name> DrbdOptions/ExactSize yes
also in /etc/pve/storage.cfg set exactsize on your drbd volume.
I can do a live move of the storage, i encountered the same issue as you.
I did also test without exactsize in the storage.cfg file while the VM was off, and then started it again after setting the above settings, so if you have a VM with a lots of data you can certainly live move after a reboot of your VM.
I tried but it returns an error (as explained in my original post):
ERROR:
Description:
The property 'DrbdOptions/ExactSize' cannot be set to True while there are currently deployed resources(3).
Details:
Resource definition: pm-3f00aa01