Using ZFS pool

DV6

New Member
May 29, 2024
7
0
1
Hi

I'm having a zfs pool RAIDZ1, which includes 4 x 10TB disk. When using this pool in a file server (SMB and NFS) for different purposes, which is better way to share it in LXC or in VM:
  1. mount the whole pool as a one big disk (mp1), and use directory structure to share the resource, like /mnt/disk1, /mnt/disk2, /mnt/disk3, etc.
  2. mount only smaller parts many times, like mp1 (2TB), mp2 (1TB), mp3 (5TB), etc
 
Is this a separate box or the PVE node itself? Either way you could install Samba or NFS on the box itself and export the shares with zfs itself [0].

For the LXC route you could look in the forum [1], there are some interesting posts here.
The abstraction of a VM will provide you with the ability to use a different OS (eg. BSD, Windows) but with more overhead then compared to LXC or on the host directly.

[0] https://openzfs.github.io/openzfs-docs/man/master/8/zfs-share.8.html
[1] https://forum.proxmox.com/threads/s...n-proxmox-using-ct-turnkey-fileserver.156095/
 
  • Like
Reactions: Kingneutron
Maybe I didn't tell the situation clearly enough.

So, I've Proxmox installation. One LXC running in it is Webmin, for sharing file resources with NFS and SMB.
In the first example the shared resource is added to the Webmin LXC as a whole 10TB disk. The shared parts are different directories in that big disk. In this example the backup (to PBS, which is running in a different server) of different shared resources is not easy to do (at least that's my opinion). The benefit is that the whole disk is usable to every share.
The second example means, that the 10TB HDD resource is connected (as mp0, mp1, mp2 etc.) in smaller chunks. In this way it's easy to include (or not to include) the individual share to backup process, if needed. The drawback is, that I have to define the size of the shared HDD resource in beforehand (I don't know how easy it is to increase the resource).
The question I'm thinking, is that is there any other issues to think, than the backup and the size? Like usage of the resource, speed,...?
 
Use datasets in the pool and set quotas onto - don't pump up the pool with files without dataset !!
 
OK, I think...

Here is the listing of zfs list, of that drive (4x10TB), which is going to be reinstalled, with some data in it:
NAME USED AVAIL REFER MOUNTPOINT
tank1 17.4T 8.33T 140K /tank1
tank1/subvol-110-disk-0 17.4T 8.33T 17.4T /tank1/subvol-110-disk-0

So, should I mount to the LXC (or VM) the tank1, or the tank1/subvol-110-disk-0?

As an example for storing pictures, like: tank1/pictures or tank1/subvol-110-disk-0/pictures?
 
Last edited:
I "overread" and misinterpret your post ... you have a 10TB zvol virtual disk mounted in your webmin lxc. You are at the point to decide between "features" an "limitation" when using lxc and pbs. If you don't have backup space problem use example1 else need example2 but you should be aware to loose something when "disk" broken and no backup on.