CT Mountpoint - the difference between creation on Directory vs ZFS on a hardware drive

darmach

New Member
Aug 2, 2024
10
1
3
Hi everyone, I don't seem to understand the cause of different behaviour of Proxmox container mountpoints, depending on where I create them.
Pretty new to proxmox, although have considerable experience with nix systems.

I have two storage "locations" for test purposes:
1. Is a directory type, created in Datacenter > Storage, path /spinpool/shares
2. is a ZFS on zpool directly on a hard drive

1745051209387.png

I created a container, and added additional mountpoint to it. Now something happens that I don't understand.
I created them both same, however:
1745051442718.png

1. mountpoint created on my "directory" location is a .raw (image?) drive
2. mountpoint created on my spinpool is a zfs (I think?) and it's mounted and "browsable" from the point of proxmox console.

Code:
root@proxmox:~# zfs list
NAME                           USED  AVAIL  REFER  MOUNTPOINT
...
spinpool/subvol-110-disk-0      96K  1024G    96K  /spinpool/subvol-110-disk-0

root@proxmox:~# ll /spinpool/
total 1
drwxr-xr-x 5 root root 5 Mar 12 19:10 shares
drwxr-xr-x 2 root root 2 Apr 19 10:21 subvol-110-disk-0
root@proxmox:~# ll /spinpool/subvol-110-disk-0/
total 0
root@proxmox:~# ll /spinpool/shares/images/110/
total 7235003557
-rw-r----- 1 root root 15032385536000 Apr 19 10:32 vm-110-disk-0.raw
-rw-r----- 1 root root  1099511627776 Apr 19 10:32 vm-110-disk-1.raw

Why and what is happening? What a the implications security or performance wise?
 
1. mountpoint created on my "directory" location is a .raw (image?) drive
2. mountpoint created on my spinpool is a zfs (I think?) and it's mounted and "browsable" from the point of proxmox console.
...
Why and what is happening?
Directory storage is a virtual disk based on a single file: https://pve.proxmox.com/pve-docs/pve-admin-guide.html#storage_directory
The second one is a ZFS subvol: https://pve.proxmox.com/pve-docs/pve-admin-guide.html#storage_zfspool
What a the implications security or performance wise?
I don't think there is much of a security difference but please make sure it's secure for your purposes.
Performance depends on a lot of things, so please test for your specific work load.
 
Directory storage is a virtual disk based on a single file: https://pve.proxmox.com/pve-docs/pve-admin-guide.html#storage_directory
The second one is a ZFS subvol: https://pve.proxmox.com/pve-docs/pve-admin-guide.html#storage_zfspool

I don't think there is much of a security difference but please make sure it's secure for your purposes.
Performance depends on a lot of things, so please test for your specific work load.
Would you be able to recommend some fio parameters best for benchmarking that mount from inside the CT? Mostly sustained read and write, as this is going to be a fileshare.
 
Last edited: