##### ISSUE TYPE

 * Bug Report

##### COMPONENT NAME

~~~
Ceph / primary storage
~~~

##### CLOUDSTACK VERSION

~~~
4.11.0 / 4.9
~~~

##### CONFIGURATION

Ceph as primary storage


##### OS / ENVIRONMENT

Ubuntu 16.04
libvirt 1.3.1

##### SUMMARY

Volume resize does not work for running VM.
Cloudstack resizes the ceph rbd but running vm doesn't recognise


##### STEPS TO REPRODUCE

resize volume (attached to a running vm)

##### EXPECTED RESULTS

lsblk should show new size

##### ACTUAL RESULTS

lsblk shows old size

workaround:

- detach - reattach volume

- stop - start vm

- virsh command on hypervisor

get volume on hypervisor:
~~~
    virsh qemu-monitor-command <vm_name or domain_id> info block --hmp
    
    drive-virtio-disk0 (#block155): 
rbd:pool/xyz:id=cloudstack:key=xyz==:auth_supported=cephx\;none:mon_host=ceph.mon\:6789
 (raw)
        [...]
        
~~~
disk name `drive-virtio-disk0`

update blockdevice size information for vm
~~~
virsh qemu-monitor-command <vm_name or domain_id> 'block_resize <disk_name> 
<new_size>G'
~~~

log entries `/var/log/cloudstack/agent/resizevolume.log`:
~~~
Mon Oct  1 11:42:31 CEST 2018 - failed to live resize pool/xyz to size of 
10485760 kb
~~~

[ Full content available at: https://github.com/apache/cloudstack/issues/2868 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to