How to access data on main pool from inside the jail?

Status
Not open for further replies.

tachikoma01

Cadet
Joined
Jul 26, 2012
Messages
5
Hi,
I have installed the jail plugin, and everything is running fine. Nevertheless, I don't know how to access my normal shared data from inside the jail. I have tried using NFS to communicate between the jail and the main freenas shared but it was a failure. Apparently you can't mount an nfs share inside a jail because of RPCBind : http://lists.freebsd.org/pipermail/freebsd-jail/2010-May/001276.html
So, how can I access my data, when I am inside the jail? Any idea?
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,403

tachikoma01

Cadet
Joined
Jul 26, 2012
Messages
5
Thanks!
This link in particular helped me : http://www.freenas.org/images/resou....3.1_guide.html#8.10.2.1 Mount Points|outline
Though, I am trying to share /mnt/ZFS-RAID-Z inside /mnt/ZFS-RAID-Z/jail/software which is basically impossible
The solution I chose is to mount for share one by one each directory inside /mnt/ZFS-RAID-Z/ by using the Web gui --> View services --> Plugins --> View mount points -->Add mount point.
This worked until I reboot. Now the share aren't mounted and I can't mount them. The error message is :
Error: [MiddlewareError: The path could not be mounted /mnt/ZFS-RAID-Z/Application]
When I try to mount :
Source :
/mnt/ZFS-RAID-Z/Application
Destination :
/mnt/ZFS-RAID-Z/jail/software/mnt/data/Application

I had to recreate the Application folder and all the other folder I created before for the shares. But it works again.
 
Status
Not open for further replies.
Top