Datasets and sharing

SavageAUs

New Member
Jan 25, 2025
3
0
1
Hi all. New to proxmox. I am setting up a test machine to wrap my head around it before possibly switching from unraid.
I have 2 3tb drives (zfs) for data (shares) 1 512gb boot drive, 1 500gb SSD for vms and cts connected. Proxmox is installed and running but I see no option to create datasets and share those datasets via a Debian ct with cockpit. From my limited testing with using the cli to create a dataset and then mount the zfs vol to a ct the datasets are not visible. Is this normal or an error on my end? I can create a share based on the zfs dataset path and write to it etc but as per testing if I remove that mount point all data is lost. Doesn't seem right.
I could be going about it all wrong. Please help and ask for more info if needed.
 
The problem I seem to be having is as follows if I can explain it correctly.
I have a brand new zfs pool, 2 x 3tb mirror. I create a new ct for my file server (Debian with cockpit etc), I set a mp from my zfs vol (tank) in the ct to /tank. I can see the mount point inside the ct console and create folders and files etc but if I spin up another ct and set the mount point exactly the same those previously created files are not visible. Am I being stupid? Should this work? My goal is to have a file server, *arr stack, plex etc and these all need to share the same directories and files to function correctly. The way it’s acting with what I’ve done it doesn’t seem possible for the files created in one ct to be able to be seen in another. And when I remove the mount points from where I have supposedly created files and folders and then remount the same path those files and folders are just gone. Like it’s only being written to some sort of temp storage. It appears as if the files are not being stored on the zfs pool as mounted.
 
I set a mp from my zfs vol (tank) in the ct to /tank. I can see the mount point inside the ct console and create folders and files etc but if I spin up another ct and set the mount point exactly the same those previously created files are not visible.
Maybe your mount points are virtual disks (and thus independent and isolated)? You don't show the container configurations (pct config CT_ID_NUMBER) so it's not clear which technique you use for this (and mount point is an overloaded term).
 
As i said I am new to proxmox and how it handles storage.
I believe it is just a basic lxc container configuration.

arch: amd64
cores: 2
features: nesting=1
hostname: fileserver
memory: 2048
mp0: tank:subvol-200-disk-0,mp=/tank,size=3000G
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=BC:24:11:1A:1C:FC,ip=dhcp,type=veth
ostype: debian
rootfs: fast:subvol-200-disk-0,size=8G
swap: 512
unprivileged: 1
 
... if I spin up another ct and set the mount point exactly the same those previously created files are not visible. Am I being stupid? Should this work?
mp0: tank:subvol-200-disk-0,mp=/tank,size=3000G
Such a mount point is a virtual disk and not shared between them. This should explain the "missing" files: they were never there as each container has its own separate virtual disk.
If you want to share a (non-virtual) disk or directory on the Proxmox host with one or more containers use this: https://pve.proxmox.com/wiki/Unprivileged_LXC_containers#Using_local_directory_bind_mount_points