unable to expand zvol

flexyz

Well-Known Member
Sep 22, 2016
154
9
58
54
Hi

When expanding disk on zvol on zfs, I get this error :

command 'zfs set 'volsize=57671680k' saspool/vms/vm-110-disk-1' failed: got timeout (500)

zfs get volsize saspool/vms/vm-110-disk-1
NAME PROPERTY VALUE SOURCE
saspool/vms/vm-110-disk-1 volsize 55G local

It shows that the disk has been expanded, but from the OS it is not
detected

I am running Virtual Environment 5.2-1

Thanks
 
Hi,

if you get a timeout this indicates that your pool is under hight load.
The problem is Proxmox VE must cancel a job after a certain time, but this could be too late for zfs and the operation is already performed.

In the VM you should see this with lsblk.
The FS will not resize automatically you must do this manually.
 
Hi

The system is not under heavy load, I tried to create a zvol manaully and it worked fine(also with snapshots), it completed with no timeout or errors.

I know OS have to manually be resized - windows in this case.

I have multiple snapshots on the zvols could this be the issue?
 
How long do it take to create a zvol?

Code:
time zfs create -V 1G <path>
 
Code:
time zfs create -V 5gb saspool/vol1

real    0m0.027s
user    0m0.007s
sys    0m0.003s

time zfs set volsize=6gb saspool/vol1

real    0m0.024s
user    0m0.005s
sys    0m0.005s

time zfs snapshot saspool/vol1@full

real    0m0.013s
user    0m0.000s
sys    0m0.007s

time zfs set volsize=7gb saspool/vol1

real    0m0.066s
user    0m0.000s
sys    0m0.011s

time zfs destroy -r saspool/vol1

real    0m0.064s
user    0m0.000s
sys    0m0.009s
 

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!