iocage jail can only see one level deep in mount points

diedrichg

Wizard
Joined
Dec 4, 2012
Messages
1,319
The required stuff
  • FreeNAS 11.2-U3 STABLE
  • Supermicro X10SLM-F-O uATX
  • Intel Xeon E3-1270 v3
  • Kingston 32GB (8GB x 4) ECC w/Hynix DRAM, 1333MHz, 1.5V - KVR1333D3E9SK2/16G
  • (4) WD Red 2TB in RaidZ2
  • Boot drive: Supermicro 16GB SATADOM - SSD-DM016-PHI
The good to know stuff
Code:
root@freenas:~ # zpool list
NAME           SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP  HEALTH  ALTROOT
dvgmar        7.25T  4.56T  2.69T        -         -    23%    62%  1.00x  ONLINE  /mnt
freenas-boot  14.9G  2.89G  12.0G        -         -      -    19%  1.00x  ONLINE  -

Code:
root@freenas:~ # zpool status
  pool: dvgmar
state: ONLINE
  scan: scrub repaired 0 in 0 days 04:02:00 with 0 errors on Wed Apr 17 07:02:11 2019
config:

    NAME                                            STATE     READ WRITE CKSUM
    dvgmar                                          ONLINE       0     0     0
      raidz2-0                                      ONLINE       0     0     0
        gptid/52a643e1-c5d6-11e3-a55c-bc5ff49b89dc  ONLINE       0     0     0
        gptid/94599db1-e8fe-11e3-beb8-bc5ff49b89dc  ONLINE       0     0     0
        gptid/ef850795-7e63-11e4-aa15-0cc47a09861b  ONLINE       0     0     0
        gptid/0cc7121a-7e76-11e4-89c6-0cc47a09861b  ONLINE       0     0     0

errors: No known data errors

Code:
root@freenas:~ # zfs list
NAME                                                      USED  AVAIL  REFER  MOUNTPOINT
dvgmar/iocage/jails                                       295M   666G   128K  /mnt/dvgmar/iocage/jails
dvgmar/iocage/jails/media-dl                              477K   666G   140K  /mnt/dvgmar/iocage/jails/media-dl
dvgmar/iocage/jails/media-dl/root                         337K   666G   405M  /mnt/dvgmar/iocage/jails/media-dl/root

dvgmar/shared                                            2.10T   666G  8.91M  /mnt/dvgmar/shared
dvgmar/shared/BTSync                                     73.4G   666G  90.2M  /mnt/dvgmar/shared/BTSync
dvgmar/shared/BTSync/diedrich                            13.7G   666G  11.4G  /mnt/dvgmar/shared/BTSync/diedrich
dvgmar/shared/BTSync/jmaguenther                         27.4G   666G  27.4G  /mnt/dvgmar/shared/BTSync/jmaguenther
dvgmar/shared/BTSync/joann                               6.93G   666G  6.93G  /mnt/dvgmar/shared/BTSync/joann

The 'What's going on' stuff
I have set a mount point from my BTSync dataset to my self-made iocage Resilio jail.
/mnt/dvgmar/shared/BTSync /mnt/dvgmar/iocage/jails/media-dl/root/media/resilio nullfs rw 0 $
  • I've created this /mnt/dvgmar/shared/BTSync mount point both from the GUI and the iocage fstab -a command with no success.
  • Resilio runs fine but it can't find the mount point's directories deeper than one level down from /mnt/dvgmar/shared/BTSync/{foldername}
    • e.g. It can see /BTSync/diedrich/ but not /BTSync/diedrich/folderA

The Question
What's going on here? Am I missing something?
 

scrappy

Patron
Joined
Mar 16, 2017
Messages
347
I believe every ZFS dataset must have its own mount point from host to iocage jail when using nullfs. Therefore, child datasets won't be seen if not given a separate mount point.
 

diedrichg

Wizard
Joined
Dec 4, 2012
Messages
1,319
I believe every ZFS dataset must have its own mount point from host to iocage jail when using nullfs. Therefore, child datasets won't be seen if not given a separate mount point.
Ah! Crap. Well, thank you for the heads-up! I had your solution in the back of my mind as the possible cause but I forgot that my structure was child datasets rather than just child folders under the main BTSync dataset. I need to redo that dataset structure, there is no need for child datasets (created in the days of ignorance).
 
Top