Sheepdog disk resize not working

FinnTux

Renowned Member
Aug 4, 2011
54
0
71
Hello,

I've been testing new sheepdog and it's looking good so far. I noticed a problem though. Disk resize is not working like it should.


Resize from web UI
- New size won't show up in vm
- vdi is resized
- Ok after stopping and starting vm
- Size in web ui ok

Resize using command line
- qm resize <ID> <newsize>
- same result as web ui

Resize using monitor command
- block_resize device size
- New size shows up in vm
- vdi is resized
- Old size in web UI

Any ideas?

Edit:
If I resize disk in web ui, remove the disk (not boot drive naturally) and reinsert it, size is correct inside vm
 
Last edited:
I think the problem is that we call the dog resize command when the vm is running, insttead calling qemu block resize.


can you try to edit
/usr/share/perl5/PVE/Storage/SheepdogPlugin.pm

and just after
Code:
sub volume_resize {
    my ($class, $scfg, $storeid, $volname, $size, $running) = @_;

add
Code:
    return 1 if $running;

then restart pvedaemon

systemctl restart pvedaemon