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!

Slimnas in Jail issue

Jails with XigmaNAS
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
molettuk
NewUser
NewUser
Posts: 11
Joined: 04 Jan 2014 20:51
Status: Offline

Slimnas in Jail issue

Post by molettuk »

Complete novice here again trying to get slimnas working in my jail, I think I'm getting there but it's not working yet.

I'm running 9.1.0.1 (847) embedded.

I've got the brig and my jail running. I've got LMS running, I can access the webGUI for it.

The audio file in my jail is not showing up the audio files in the ordinary data area of the server.

This is my fstab entry in the jail settings
/mnt/2tbtwo/data/audio /mnt/2tbtwo/Brig/sbjail/mnt/audio rw 0 0

My test audio files definitely exist in /mnt/2tbtwo/data/audio but when I look in /mnt/2tbtwo/Brig/sbjail/mnt/audio there is nothing there. Permissions for /mnt/2tbtwo/Brig/sbjail/mnt/audio show as rwxr-xr-x is that how it should be?

I attach jail config
thebrig-nas4free.local-20140220132723.zip
Thanks
You do not have the required permissions to view the files attached to this post.

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

Re: Slimnas in Jail issue

Post by raulfg3 »

molettuk wrote:My test audio files definitely exist in /mnt/2tbtwo/data/audio but when I look in /mnt/2tbtwo/Brig/sbjail/mnt/audio there is nothing there
folder /mnt/2tbtwo/Brig/sbjail/mnt/audio must exist prior to be mounted, so if do not exist you must create first.

Code: Select all

mkdir /mnt/2tbtwo/Brig/sbjail/mnt/audio
code to execute from outside te jail, prior to start the jail, once created, , stop the jail, and restart, this time, must show the apropiate content.
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

molettuk
NewUser
NewUser
Posts: 11
Joined: 04 Jan 2014 20:51
Status: Offline

Re: Slimnas in Jail issue

Post by molettuk »

Thanks. I'd already done that though. I didn't do it before I started the jail the first time, but right after when I saw it doesn't create it itself, does that matter? The jail has been stopped and started several times since then but still nothing, and I just tried it again. I know that /mnt/2tbtwo/Brig/sbjail/mnt/audio definitely is there because I keep looking in it to see if anything has appeared and I've seen the permissions on it (and changed them to 766 while I was floundering). Likewise /mnt/2tbtwo/data/audio definitely exists and contains a test file and folder, and I've got someone else to check all the typing is correct.

I attach screenshot showing /mnt/audio in jail.
mntaudio.jpg
Any more ideas please?
You do not have the required permissions to view the files attached to this post.

molettuk
NewUser
NewUser
Posts: 11
Joined: 04 Jan 2014 20:51
Status: Offline

Re: Slimnas in Jail issue

Post by molettuk »

I'd still really like to get this working, I'm lying awake at night wondering what to do! I know it's probably something stupid, but I just can't see what it is. Could you guys help me work out what is wrong, guide me through checking things in some way, please?

I attach a screenshot of mount command result:
mount1.jpg
I attach screenshots of my jail setup:
jail1.jpg
jail2.jpg
jail3.jpg
Jail log file in post one.
Proof of existence of /mnt/audio in post above.

Please help!
You do not have the required permissions to view the files attached to this post.

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

Re: Slimnas in Jail issue

Post by raulfg3 »

what version of theBrig do you install?.

for me only working branch works on latest N4F 9.2.x.x

viewtopic.php?f=79&t=3894&start=100#p28069

to update to latest version of working:

Code: Select all

fetch https://raw.github.com/fsbruva/thebrig/working/thebrig_install.sh
sh thebrig_install.sh /mnt/2tbtwo/Brig 2
and retest if this time works.

Documentation: viewtopic.php?f=79&t=1654&start=125#p32507


Please execute commands from shell, so you can see the output, not from webGUI.
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

molettuk
NewUser
NewUser
Posts: 11
Joined: 04 Jan 2014 20:51
Status: Offline

Re: Slimnas in Jail issue

Post by molettuk »

I'm on N4F 9.1.0.1 (847)

I installed this version of the Brig (master):
fetch -o /tmp/thebrig_install.sh https://github.com/fsbruva/thebrig/raw/ ... install.sh

Should I go ahead with the command to install the 'working' version?

Do I need to update N4F to 9.2 as well?

PS When I originally installed the brig, after saving the 'rudimentary config', I got this error message across the top of the page:
Warning: Invalid argument supplied for foreach() in /usr/local/www/ext/thebrig/extensions_thebrig_config.php on line 26 Warning: Cannot modify header information - headers already sent by (output started at /usr/local/www/ext/thebrig/extensions_thebrig_config.php:26) in /usr/local/www/fbegin.inc on line 218

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

Re: Slimnas in Jail issue

Post by raulfg3 »

molettuk wrote:Should I go ahead with the command to install the 'working' version?
YES
molettuk wrote:Do I need to update N4F to 9.2 as well?
no necessary, but still recommended.
molettuk wrote:S When I originally installed the brig, after saving the 'rudimentary config', I got this error message across the top of the page:
Warning: Invalid argument supplied for foreach() in /usr/local/www/ext/thebrig/extensions_thebrig_config.php on line 26 Warning: Cannot modify header information - headers already sent by (output started at /usr/local/www/ext/thebrig/extensions_thebrig_config.php:26) in /usr/local/www/fbegin.inc on line 218
no problem, this warnning have no importance.
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

molettuk
NewUser
NewUser
Posts: 11
Joined: 04 Jan 2014 20:51
Status: Offline

Re: Slimnas in Jail issue

Post by molettuk »

OK, Thanks.

I went ahead with the brig update, typed in the command in shell. I got a message saying it updated successfully and to save in the rudimentary config tab.

In the main brig 'current jails' tab I hit save.

I stopped and restarted the jail.

Still nothing in /mnt/2tbtwo/Brig/sbjail/mnt/audio :(

Do I need to do anything with the various update options I now seem to have in the brig/ jail management area?

What next?

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

Re: Slimnas in Jail issue

Post by raulfg3 »

molettuk wrote:Still nothing in /mnt/2tbtwo/Brig/sbjail/mnt/audio :(
create a new slim jail named test and test if this time mounts /mnt/2tbtwo/Brig/test/mnt/audio if still do not work , sorry i'm out of ideas.

Must work, at least allways works for me.
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

molettuk
NewUser
NewUser
Posts: 11
Joined: 04 Jan 2014 20:51
Status: Offline

Re: Slimnas in Jail issue

Post by molettuk »

Created a new jail...still not mounting correctly, no files in jail mount.

I've found this error in the jail log:
jaillog1.jpg
Does that shed any light? I see there is a thread that mentions something similar. Does that mean we just produced the known bug?

Jail sbjail will no longer start, new jail jailb will start.


If I were to start from scratch with formatted data hard drive, N4F 9.2 fresh install, do I want master or working version of the brig?
You do not have the required permissions to view the files attached to this post.

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

Re: Slimnas in Jail issue

Post by raulfg3 »

molettuk wrote:Does that shed any light? I see there is a thread that mentions something similar. Does that mean we just produced the known bug?
YES.

You need no errors in log to works properly.

Please create folder that do not exist: in your example

Code: Select all

/mnt/2tbtwo/Brig/sbjail/usr/ports
once this folder exist fstab works fine and mount your music as expected.
molettuk wrote:If I were to start from scratch with formatted data hard drive, N4F 9.2 fresh install, do I want master or working version of the brig?
allways working because user fsbruva that is the owner of master branch is out, and untill returns and upgrade master branch , the master branch is outdated.
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

molettuk
NewUser
NewUser
Posts: 11
Joined: 04 Jan 2014 20:51
Status: Offline

Re: Slimnas in Jail issue

Post by molettuk »

...Audio files still not mounted for either jail. sbjail still won't start (since update).

I'm left with this error message in the jail log now:
fstab: /etc/fstab.sbjail:1: Inappropriate file type or format

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

Re: Slimnas in Jail issue

Post by raulfg3 »

molettuk wrote:I'm left with this error message in the jail log now:
fstab: /etc/fstab.sbjail:1: Inappropriate file type or format
please retype by hand the line:

Code: Select all

/mnt/2tbtwo/data/audio /mnt/2tbtwo/Brig/sbjail/mnt/audio rw 0 0
sometimes when copy & Paste, you can copy some CR ( not printable character), that make fstab crazy.

something in this line have some strange character that do not like to fstab:

Code: Select all

/mnt/2tbtwo/data/audio /mnt/2tbtwo/Brig/sbjail/mnt/audio rw 0 0
please revise it
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

molettuk
NewUser
NewUser
Posts: 11
Joined: 04 Jan 2014 20:51
Status: Offline

Re: Slimnas in Jail issue

Post by molettuk »

Hooray! I got jailb working and the data file mounted! :D I think 'nullfs' was missing from the fstab entry. Thank you very much for your patience and help.

Sbjail still won't start but as jailb is working perfectly, I just installed LMS into jailb and it seems to work fine. I take it I can just ignore sbjail, or is it best to delete it?

Could you tell me how to manually stop and restart LMS, in case it crashes or I need to stop and start it to get a fresh log file? Is it normally enough just to stop and restart the jail?

If I update N4F to 9.2 will it affect the brig and the jail? I've read it won't, but I'm slightly confused because there were files I downloaded during brig/jail setup that were specific to which N4F/Freebsd I am running?

Thank you :)

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

Re: Slimnas in Jail issue

Post by raulfg3 »

molettuk wrote:If I update N4F to 9.2 will it affect the brig and the jail?
NO, this are the reason to use a jail, to be idependant of N4F OS.
molettuk wrote:I take it I can just ignore sbjail, or is it best to delete it?
delete it from WebGUI, once you know howto create new jails using TheBrig, create a new one is one minute of your time.
molettuk wrote: I think 'nullfs' was missing from the fstab entry.
Sorry, it must be clear first time for me, but I do not see.
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

molettuk
NewUser
NewUser
Posts: 11
Joined: 04 Jan 2014 20:51
Status: Offline

Re: Slimnas in Jail issue

Post by molettuk »

OK, I think I am all sorted now. I even managed to upgrade to 9.2 :)

Thanks again :)

Post Reply

Return to “Jails”