This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

Can't mount Directory(s) in Jail -( The Brig + owncloud )

Jails with XigmaNAS
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
Flok
NewUser
NewUser
Posts: 1
Joined: 10 Jul 2014 15:20
Status: Offline

Can't mount Directory(s) in Jail -( The Brig + owncloud )

Post by Flok »

Hello every one,

I have a really annoying problem and either i'm really stupid quite now or some thing seems wrong.

I made a Nas4free install on a new (old) Computer some weeks ago. Last week I finally managed to install the brig & owncloud within it. Every thing is set up and working and as last step I now want to mount my NASData to/in(?) the Jail.
I am working with the fstab-editor.
[I went to so some trouble before because I accidentally tried to mount to a Directory with a Space in the Name (not a goot idea). And afterwards restored from an old snapshot (know to work).]

After I got everything working again my fstab looked like this:

Code: Select all

/mnt/SichereDaten/Eigene_Musik /mnt/Daten/Jails/owncloud/mnt/Daten/aUser/files/Eigene_Musik nullfs rw 0 0
I tried to mount my Music into a User folder. Didn't work. Jail not starting mountd complained. (I forgott to save the kernel.log but if any one cares I guess I can reproduce the error). I have at least quadruple checked the spelling and if every path exists and so on.
"SichereDaten/Eigene_Musik" is a ZFS Dataset which is mounted unter /mnt/

As this didn't work I tried it with this:

Code: Select all

/mnt/SichereDaten /mnt/Daten/Jails/owncloud/mnt/SichereDaten nullfs rw 0 0
I though maybe the root-Dataset mounted to some folder will work, nope. It doesent.

Than I cleand the fstab and rebooted the "Server" to check if the Jail is at least starting now or if there is still a little bit f_* up from last run.
Nope Jail doesen't start.

Code: Select all

mountd[1781]: can't delete exports for /mnt/Daten/Jails/owncloud/dev: Invalid argument
I had this before I know how to get rid of it but I just mention it because it is caused by mountd as well as the other errors which saw before (but didn't save).


Now I want to know if it is me or my system and would be glad for any advice.

Flo

(BTW this isn't my first NA4free system and I am not completely new to the brig either)

User avatar
mrwinch
Forum Moderator
Forum Moderator
Posts: 49
Joined: 29 Oct 2014 14:19
Location: Italy - Treviso
Status: Offline

Re: Can't mount Directory(s) in Jail -( The Brig + owncloud )

Post by mrwinch »

I had got a similar problem with aMule: my mistake was the use of slim Jail instead of full jail. What kind of jail did you use?
Fluffy rulez!

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: Can't mount Directory(s) in Jail -( The Brig + owncloud )

Post by raulfg3 »

A BSD limitation of nullfs is that all must reside in same disk.

if /mnt/SichereDaten and /mnt/Daten/ are two phisical disk or two diferent pools, nulls fs do not work.


you must in this case change location of your jail to reside in same pool that your data. eg:

Code: Select all

/mnt/Daten/Eigene_Musik /mnt/Daten/Jails/owncloud/mnt/Daten/aUser/files/Eigene_Musik nullfs rw 0 0
must work.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

User avatar
alexey123
Moderator
Moderator
Posts: 1469
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: Can't mount Directory(s) in Jail -( The Brig + owncloud )

Post by alexey123 »

TheBrig's current configuration not allow to mount zfs dataset.
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

spy0r
Advanced User
Advanced User
Posts: 160
Joined: 18 Jun 2015 12:24
Location: Munich, Germany
Status: Offline

Re: Can't mount Directory(s) in Jail -( The Brig + owncloud )

Post by spy0r »

Is it possible now? I see the settings, but i can't get it to work...

In a fresh jail, what do i need to configure, to get for example /mnt/tank/test (zfs dataset on host) to be readable/writeable from inside the jail?
NAS4Free 11.0.0.4 x64-embedded - Lian Li Q25b - AsRock Rack C2550D4I - 4x8Gb ECC Ram - 128Gb SSD Swap/Log/Extensions - RaidZ1: 3x3Tb Western Digital Red (WD30EFRX) - Backup: 1x8Tb Seagate Archive (ST8000AS0002) - APC Back UPS PRO (550VA)

Post Reply

Return to “Jails”