Cant mount storage within FreeBSD Jail

Status
Not open for further replies.

KevDog

Patron
Joined
Nov 26, 2016
Messages
462
Hi I'm running FreeNas 9.10.2

My current zpool is arranged as follows
tank/home/user
tank/jail/FreeBSD

I'm trying to mount the source directory
/mnt/tank/home/user/backup
to
/mnt/tank/jail/FreeBSD/home/user/backup

I've created the mount point in the FreeNAS GUI and ensured the user and group on the main FreeNAS system have a corresponding user and group on the jail system

I've created the mount point

However things get really strange

I can ssh into the FreeNas box and the jail.
I can see the directories are mounted, however they didnt get mounted automatically on boot of the jail.
Also the GUI list the link as Mounted? False. and I get the error as follows:
Jan 7 01:00:13 freenas manage.py: [middleware.exceptions:37] [MiddlewareError: The path could not be mounted /mnt/tank/home/user/backup: Mount failed 1 -> , mount_nullfs: /mnt/tank/jails/Borg-FreeBSD-jail/usr/home/user/backup: Resource deadlock avoided

Is this normal? I don't understand
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Your destination seems wrong. It should not be a path on the FreeNAS system, it should be a path in the jail.

The users and groups don't matter at this point so that can be ignored.

Sent from my Nexus 5X using Tapatalk
 
Last edited by a moderator:

KevDog

Patron
Joined
Nov 26, 2016
Messages
462
I agree however this is what is listed in the gui --
Source: /mnt/tank/home/<user>/backup
Destination: /home/<user>/backup

Note these directory structures are exactly what is contained in the error:

Code:
freenas manage.py: [middleware.exceptions:37] [MiddlewareError: The path could not be mounted /mnt/tank/home/user/backup: Mount failed 1 -> , mount_nullfs: /mnt/tank/jails/Borg-FreeBSD-jail/usr/home/user/backup: Resource deadlock avoided


There are two different Datasets
/tank/home/<user>
/tank/jails
 
Last edited by a moderator:

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
OK well those paths look correct. Can you please provide more information about your setup? Read the forum rules and add hardware specs and any strange configuration you have.

Sent from my Nexus 5X using Tapatalk
 

KevDog

Patron
Joined
Nov 26, 2016
Messages
462
I added configuration -- no strange configuration yet -- Just built system. I've installed base system and one BSD jail
 
Status
Not open for further replies.
Top