I have a zpool with nested datasets:
	
	
	
		
They are mounted correctly on the host (note the test.file):
	
	
	
		
and notice the directories (nested datasets) also have contents:
	
	
	
		
The top pool is mounted to a container:
	
	
	
		
But when I enter the container, the contents of the the most nested datasets is not mounted:
	
	
	
		
The contents of the deepest datasets are not inside the container.
I have tried unmount and mount of the zpool. Destroying and recreating the datasets. Restarting the container without the mount and making sure there was nothing in the /srv directory.
Any suggestions?
				
			
		Code:
	
	root@pve1:~# zfs list
NAME                       USED  AVAIL  REFER  MOUNTPOINT
vault                     1.50T  2.01T  1.50T  /vault
vault/files               52.8M  2.01T    96K  /vault/files
vault/files/apt-cache     52.6M  2.01T  52.6M  /vault/files/apt-cache
vault/files/webcerts       124K  2.01T   124K  /vault/files/webcerts
	They are mounted correctly on the host (note the test.file):
		Code:
	
	root@pve1:~# ls -l /vault/files
total 10
drwxr-xr-x 6 150001 150001 6 Sep 26 01:59 apt-cache
-rw-r--r-- 1 150001 150001 0 Sep 26 02:11 test.file
drwxr-xr-x 4 150001 150001 4 Sep 26 01:59 webcerts
	and notice the directories (nested datasets) also have contents:
		Code:
	
	root@pve1:~# ls -l /vault/files/webcerts
total 1
drwx------ 3 150001 150001 3 Sep 26 01:59 archive
drwx------ 3 150001 150001 3 Sep 26 01:59 live
	The top pool is mounted to a container:
		Code:
	
	root@pve1:~# cat /etc/pve/lxc/104.conf
arch: amd64
cores: 1
hostname: vault-server
memory: 512
mp0: /vault,mp=/srv/vault
net0: name=eth0,bridge=vmbr4095,hwaddr=xx:xx:xx:xx:xx:xx,ip=dhcp,tag=33,type=veth
net1: name=eth1,bridge=vmbr0192,hwaddr=xx:xx:xx:xx:xx:xx,ip=dhcp,type=veth
onboot: 1
ostype: debian
rootfs: scram1:subvol-104-disk-0,size=2G
swap: 512
lxc.apparmor.profile: lxc-container-default-with-nfsd
	But when I enter the container, the contents of the the most nested datasets is not mounted:
		Code:
	
	root@pve1:~# pct enter 104
root@vault-server:/# ls -l /srv/vault/files/
total 2
drwxr-xr-x 2 150001 150001 2 Sep 26 05:57 apt-cache
-rw-r--r-- 1 150001 150001 0 Sep 26 06:11 test.file
drwxr-xr-x 2 150001 150001 2 Sep 26 05:57 webcerts
root@vault-server:/# ls -l /srv/vault/files/webcerts
total 0
root@vault-server:/# ls -l /srv/vault/files/apt-cache
total 0
	The contents of the deepest datasets are not inside the container.
I have tried unmount and mount of the zpool. Destroying and recreating the datasets. Restarting the container without the mount and making sure there was nothing in the /srv directory.
Any suggestions?