ZFS out of space even if there is enough space

ororokorebuh

New Member
Nov 16, 2024
13
0
1
Hello,

I have a problem with command: qm importdisk 100 /mnt/USB_Data/myfile.VHDX data2

The file on USB hdd (mounted to USB_Data) has 779GB. As you can see data2 has 991GB free space. But the command above shows: zfs error: cannot create 'data2/vm-100-disk-0': out of space


root@proxmox:/# zfs list -o space
NAME AVAIL USED USEDSNAP USEDDS USEDREFRESERV USEDCHILD
data1 461G 3.08M 0B 96K 0B 2.99M
data2 922G 3.56M 0B 96K 0B 3.47M


Filesystem Size Used Avail Use% Mounted on
udev 68G 0 68G 0% /dev
tmpfs 14G 1.6M 14G 1% /run
/dev/mapper/pve-root 101G 2.9G 93G 4% /
tmpfs 68G 36M 68G 1% /dev/shm
tmpfs 5.3M 0 5.3M 0% /run/lock
efivarfs 263k 52k 206k 21% /sys/firmware/efi/efivars
/dev/nvme0n1p2 1.1G 13M 1.1G 2% /boot/efi
/dev/fuse 135M 17k 135M 1% /etc/pve
data1 496G 132k 496G 1% /data1
data2 991G 132k 991G 1% /data2
/dev/sde2 2.1T 1.3T 771G 62% /mnt/USB_Data
tmpfs 14G 0 14G 0% /run/user/0

My ZFS´s (data1 and data2) are MIRROR mode.

Please any idea what can causes this problem? Tried also with qcow2 import and the same result.
 
WOW so strange. One of my VHDX files has 450GB. Now I tried it to import this file to ZFS which has 991GB and it started to import.
BUT it shows the size will be 836GiB!!! VHDX was created in windows server 2016 with Disk2vhd tool from HDD wgich has 445GB total (27GB free).

How is this possible??

This could be the reason why my bigger VHDX which has 930GB shows out of space when try to import to 990GB ZFS.
 
Can you please post the zfs list output in [Code][/Code] Blocks? The editor has buttons for that as well. Otherwise it is barely readable as the spacing is all messed up.
Did you enable "Thin provision" in the storage config?
The output of zpool status could also be of use.
 
  • Like
Reactions: Johannes S
Can you please post the zfs list output in [Code][/Code] Blocks? The editor has buttons for that as well. Otherwise it is barely readable as the spacing is all messed up.
Did you enable "Thin provision" in the storage config?
The output of zpool status could also be of use.
root@proxmox:~# zfs list
NAME USED AVAIL REFER MOUNTPOINT
data1 3.14M 461G 96K /data1
data2 850G 72.8G 96K /data2
data2/vm-100-disk-0 850G 750G 172G -
(right now copying VHDX to data2)

root@proxmox:~# zpool status
pool: data1
state: ONLINE
config:

NAME STATE READ WRITE CKSUM
data1 ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
ata-ADATA_SU650_2O282L189DEP ONLINE 0 0 0
ata-ADATA_SU650_2O28291GEJF1 ONLINE 0 0 0

errors: No known data errors

pool: data2
state: ONLINE
config:

NAME STATE READ WRITE CKSUM
data2 ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
ata-Patriot_P220_1024GB_P220HBBB240109008195 ONLINE 0 0 0
ata-Patriot_P220_1024GB_P220HBBB240109019155 ONLINE 0 0 0

errors: No known data errors

Where to enable thin provision on ZFS?
 
Last edited:

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!