Search code examples
resizediskxen

Online resize virtual machine disks on Xenserver or Xen


I try to increase vitrual disk on running Xen VM.

I use command xe vdi-resize uuid=a68471c4-e4f6-4e8f-9cde-74cba33d67d1 disk-size=13GiB online=true

where a68471c4-e4f6-4e8f-9cde-74cba33d67d1 is uuid of my xen guest VM.

I try to increase disk size on running VM, but I have a error:

The SR backend does not support the operation (check the SR's allowed operations) sr: e062ce43-056b-1044-02af-00fd6c8dc028 (iSCSI virtual disk storage)

I use iSCSI virtual disk storage

What I do wrong?

I use latest Xenserver version/

Has the Xenserver online disk resize feature?

Thanks in advance!


Solution

  • You're not supposed to give the uuid of the VM, you should be using the uuid of the disk you're trying to resize...

    xe vm-disk-list vm="myVM"
    
    Disk 0 VBD:
    uuid ( RO)             : 0b1c2c6a-280b-68fd-dd8d-fb1c42f2ab80
        vm-name-label ( RO): myVM
           userdevice ( RW): 0
    
    
    Disk 0 VDI:
    uuid ( RO)             : 7b8df1e0-2f0c-4176-44a7-6fa94c42c4fa
           name-label ( RW): myVM 0
        sr-name-label ( RO): Netapp
         virtual-size ( RO): 32212254720
    

    7b8df1e0-2f0c-4176-44a7-6fa94c42c4fa is the uuid you need to give to the vdi-resize command.