How to export jails over NFS ?

Status
Not open for further replies.
Joined
Jan 10, 2015
Messages
10
I'm trying to backup my jails and I've got a question about how I make these available to my backup server.

I have exported my jails location (/mnt/volume1/jails) over NFS with a maproot user of root and limited to a specific machine.

On my backup server, I can mount myFreeNas:/mnt/volume1/jails /mnt
Under /mnt, I can see directories for each of my jails as well as a few others.

However, the specific jail directories are empty ... On the freenas server, /mnt/volume1/jails/plexmediaserver_1 contains the files I want to backup.

How do I correctly export my jail over NFS so that I can back it up on my backupserver ?

e.g.
# ls -la jails
total 49
drwxr-xr-x 9 root root 10 Feb 18 12:16 .
drwxr-xr-x 5 root root 4096 Feb 18 15:38 ..
drwxr-xr-x 2 root root 2 Feb 18 12:16 plexmediaserver_1
drwxr-xr-x 2 root root 17 Feb 18 12:17 .plexmediaserver_1.meta
drwxr-xr-x 3 80 80 3 Jan 11 13:18 .plugins
drwxr-xr-x 4 root root 4 Jan 11 13:19 .warden-files-cache
-rw-r--r-- 1 root root 188 Feb 18 12:16 warden.log
drwxr-xr-x 2 root root 2 Jan 11 13:19 .warden-template-pluginjail​

# ls -l jails/plexmediaserver_1/
total 0​
 
D

dlavigne

Guest
Each jail is in its own dataset, each dataset is its own filesystem, and NFS cannot cross filesystem boundaries. You will need to add each jail's dataset as a "Add extra Path" in the share.
 
Status
Not open for further replies.
Top