Skip to content
This repository was archived by the owner on Apr 4, 2024. It is now read-only.
This repository was archived by the owner on Apr 4, 2024. It is now read-only.

ZFS datasets mounted to incorrect location #453

Description

@johnramsden

When I set up jailed datasets on FreeNAS, and mount the jail data sets inside of my created jail, I'm able to create and manage them, but they are mounted to the wrong location. For whatever reason they are being mounted with a parent /mnt directory. I have not experienced this behavior when using Iocage cage on regular FreeBSD.

  • iocage --version: Version 0.9.10 RC

  • Output from the commands issued:

Outside jail:

[root@host]#  iocage set jail_zfs=on jail_zfs_dataset=data/unifi jail_zfs_mountpoint='none' unifi
Property: jail_zfs has been updated to on    
Property: jail_zfs_dataset has been updated to data/unifi                                  
Property: jail_zfs_mountpoint has been updated to none

Inside jail:

[root@unifi]#  zfs create -o mountpoint=/usr/local/share/java/unifi tank/data/unifi/data
[root@unifi]#  zfs mount                                                                   
tank/iocage/jails/unifi/root    /                                                          
tank/data/unifi/data            /mnt/usr/local/share/java/unifi
  • Expected output

I would have expected my data set to be mounted to the location specified by the mountpoint property inside of the jail.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions