Cannot create virtual disk on NFS larger than available space on local storage on Xen host

I'm trying to add a 200GB virtual disk to a VM. I'm adding a new file in /shared/xen which is a 1.8TB NFS share with ~700GB available. However Cloudmin returns an error:

Failed to save disk : Creating or resizing this disk would exceed the host's free disk space of 66.16 GB.

'df' on the host says:

df -h

Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_ams1xen5-root 71G 1.5G 66G 3% / tmpfs 403M 0 403M 0% /dev/shm /dev/sda1 485M 103M 357M 23% /boot 10.1.102.10:/nfs/shared 1.8T 940G 732G 57% /shared xenstore 403M 192K 403M 1% /var/lib/xenstored

Status: 
Closed (fixed)

Comments

Is the default directory on the host for Xen disks the NFS directory?

The "Base directory for virtual systems" setting is "/shared/xen" - being the NFS mount point.

"Create disk images in" is set to "Regular files under base directory"

I also checked "Disk space to leave free" and it is 0 bytes

The issue is likely that Cloudmin doesn't consider space on NFS mounts when calculating the host free disk.

Does the host have Webmin or Virtualmin installed? This effects how free space is calculated ..

Yes, Webmin is installed. When I open up Webmin the System Information screen says "71.38 GB total, 5.23 GB used" for Local Storage. Since NFS is not really local storage, this is actually correct. So I guess the bug is really that when VM storage is on an NFS mount point, Cloudmin shouldn't be looking at the local storage figures to work out how much space is available...

The bug here is that Cloudmin doesn't look at the directory the disk is being created in - instead it looks at the total local disk on the host. I will work on fixing that..

I have implemented a fix for this, to be included in version 6.7 of Cloudmin.

Automatically closed -- issue fixed for 2 weeks with no activity.