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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!