nullfs mounting or mounting datasets into jails

472 views
Skip to first unread message

Littlefield, Tyler

unread,
Mar 23, 2016, 7:49:55 PM3/23/16
to ioc...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

All,
Sorry for all the questions. To recap, I ended up going back to 10.2
and setting up 11.0 in BHyve for development. Everything is working
great with jails thus far.
I had a question regarding mounting datasets however.
I am setting up a DLNA and SAMBA server and wanted to mount
storage/media into the jail. I know there exists the jail_zfs_dataset
property, but that has the dataset belonging to the jail.
Any other tips/etc would be great.
Thanks,
- --
Take care,
Ty
Twitter: @sorressean
Web: https://tysdomain.com
Pubkey: https://tysdomain.com/files/pubkey.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBAgAGBQJW8yujAAoJEAdP60+BYxejA5AH/i+Ogm+ALym9I91bzyMUVyRm
FjoiaZY37OCwYzOVG0HoyxD0FntJk6TWt4QcBnslSDBwcN3GckANJ1TrJVRZEh3D
h4+c2Ast8HMfVD81PF3HouWXeMjpH3qPD2XHFYEcsbHI2cI8zMeMmz3g0ndoz2Xn
CpssG4feS4cWSA1JlqeecVtuDbjLQ/Zb9D9fpwAbV9KvgppuyH/UlMUVsWs4mMHI
QV1fB3/oshQfelLIOrkVuSHz8xMdeqmWyJYEYKCyJTOG6Gf7TXNXhMrOCjhac8Zh
Q93tVVvOGPRAQsn3Z+flHB6UIPABAEBjgOayL/c+M58Pq/bpQzSiut2TZC3BNxg=
=fEqr
-----END PGP SIGNATURE-----

Brandon Schneider

unread,
Mar 23, 2016, 8:42:29 PM3/23/16
to ty...@tysdomain.com, ioc...@googlegroups.com
Use the jail fstab located in /iocage/jails/UUID/fstab to mount with nullfs. Make sure to specify the full path to your mount point as this happens outside the jails environment.

For example:

/some/source /iocage/jails/UUID/root/some/mount nullfs ro 0 0

- Brandon
> --
> You received this message because you are subscribed to the Google Groups "iocage" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to iocage+un...@googlegroups.com.
> To post to this group, send email to ioc...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/iocage/56F32BA3.7050605%40tysdomain.com.
> For more options, visit https://groups.google.com/d/optout.

jlema...@gmail.com

unread,
Apr 3, 2016, 10:18:36 AM4/3/16
to iocage, ty...@tysdomain.com, bra...@ixsystems.com
I'm encounter some issues for mount any folders into jail.

Here my fstab: /storage        /iocage/jails/ae9d21ed/root/storage     nullfs  ro      0 0

I wanna use it in rw mode, but it was for testing.

I try to chmod -R 777 /storage folders but, when i start ae9d21ed jail, folders from /storage is present, but files isn't showed,

FYI, /storage is ZFS dataset used as storage pool for holidays movies and more :)

Jonathan, noob forever
Reply all
Reply to author
Forward
Message has been deleted
0 new messages