We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b6302d4 + 5db65a6 commit 5313c04Copy full SHA for 5313c04
1 file changed
scripts/storage/qcow2/resizevolume.sh
@@ -92,7 +92,8 @@ notifyqemu() {
92
if `virsh domstate $vmname >/dev/null 2>&1`
93
then
94
sizeinkb=$(($newsize/1024))
95
- virsh blockresize --domain $vmname --path $path --size $sizeinkb >/dev/null 2>&1
+ devicepath=$(virsh domblklist $vmname | grep $path | awk '{print $1}')
96
+ virsh blockresize --path $devicepath --size $sizeinkb $vmname >/dev/null 2>&1
97
retval=$?
98
if [ -z $retval ] || [ $retval -ne 0 ]
99
0 commit comments