mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
Incorrect diskpath information was being sent to virsh blockresize, so the block device size was never refreshed to reflect the new disk size. Fixes #2868
This commit is contained in:
parent
0c943ab1f0
commit
5db65a6363
@ -92,7 +92,8 @@ notifyqemu() {
|
||||
if `virsh domstate $vmname >/dev/null 2>&1`
|
||||
then
|
||||
sizeinkb=$(($newsize/1024))
|
||||
virsh blockresize --domain $vmname --path $path --size $sizeinkb >/dev/null 2>&1
|
||||
devicepath=$(virsh domblklist $vmname | grep $path | awk '{print $1}')
|
||||
virsh blockresize --path $devicepath --size $sizeinkb $vmname >/dev/null 2>&1
|
||||
retval=$?
|
||||
if [ -z $retval ] || [ $retval -ne 0 ]
|
||||
then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user