Linux Jail issues

Status
Not open for further replies.

adrien

Cadet
Joined
Apr 24, 2014
Messages
3
I'm 6 months new to FreeNAS. I'm really enjoying its capabilities. My system has 12 drives for data, 2 mirrors for jail confirmations and an ssd for booting. i7 8 core processor with 32GB of RAM (non-ECC). Barebone hardware (I have read way too many warnings about running FreeNAS on virtual environments).

I primarily use my server for Owncloud and Plexmedia Server.

Last night I decided I wanted to install a Linux Jail (CentOS) to migrate my email server over to (Kero Connect 8.2.4 32bit).

When I installed the Jail I was running 9.2.1.1. Once I turned off diskspace checking with the RPM, the install of Kerio went perfectly. Starting Kerio is when my problems really began. Logging on to the admin page the system was complaining about no drive space and so it was shutting down the services. I have many TB available on all drives. That being said, I get the following output when doing a DF:
[root@Kerio /]# df df: `/dev/shm': No such file or directory df: `/proc/sys/fs/binfmt_misc': No such file or directory Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda3 2873556944 23652312 2849904632 1% / sysfs 4 4 0 100% /sys devpts 1 1 0 100% /dev/pts /dev/sda1 2873556944 23652312 2849904632 1% /boot
My second problem is that I cannot shutdown Kerio using services. What is even more frustrating is that I cannot even kill each individual process under the Linux Jail or under FreeNAS itself (by command line). The only way to kill the Kerio server is to reboot FreeNAS.

I upgraded FreeNAS last night to 9.2.1.5 to see if that would fix my problem. Nope. I see nothing out of the ordinary when looking at the log files.

So my questions are:
1) Is there a way to trick Linux into thinking there is a lot of space on the system?
2) Any suggestions as to how to get Kerio to shutdown without rebooting the whole server?
3) Is there a way to install a Jail without having to reboot the whole NAS?
4) Is there a way to reboot or shutdown a Jail without taking down the whole NAS?
5) And unrelated to my issues, when upgrading the drive sizes or replacing a bad drive on the NAS is there not an automated process so you just pull the drive and stick in the new drive (like QNAP)? I had a drive failure while I was on holiday (out of Country) and my buddy didn't read the manual pages I sent him on taking a drive off line before pulling the drive. We finally got the drive replaced, but it took a few reboots, even during the swap process, and yes, I have the type of controller that supports hot swap (ADCP or what ever its called).

Thanks for your help!

Adrien
 

joelmusicman

Patron
Joined
Feb 20, 2014
Messages
249
AFAIK, the linux jails are still considered an "Alpha" product, and really not ready for general use. I tried the ubuntu jail and could not get any internet connectivity inside the jail. Because of the kernel differences most of the usual networking tools didn't even work. Anyway...

1 & 2: See above.
3& 4: BSD port and plugin jails do not require system reboots at all. You can install, "power on," and "power off" jails easily from the GUI.
 

adrien

Cadet
Joined
Apr 24, 2014
Messages
3
Joel,

Thanks for the reply. I was not aware that Linux Jails were Alpha. I clearly need to pay more attention to what I read.

I've tried the "power off" button (under Jails). I get a green bar at the top of the screen that says "Jail has successfully stopped". But beside the jail it still states its status is "Running". I have tried the same procedure with Autostart disabled, after hitting the power off button I get the same response, green bar at the top of the screen stating jail has successfully stopped and yet the status is still running. Am I doing something wrong?

Every time I install a (BSD) jail or pluggin, I find I can't do anything with it (especially from a network perspective) until I reboot the NAS. And this is following the process in the manual.
 

adrien

Cadet
Joined
Apr 24, 2014
Messages
3
I think I found my mail server issue. The following log shows up on the console. I guess the Kernel is missing a component. In doing a search, I found a link that discusses this and other linux calls on the FreeBSD site. If anyone knows how to correct this, please let me know (can you recompile a kernel under a jail)?

linux: pid XXXX (mailserver): syscall rt_sigqueueinfo not implemented
 

ovizii

Patron
Joined
Jun 30, 2014
Messages
435
Similar problem here. Creating a linux jail results in this on the console, I take it I should just delete the jail and wait for the next freeNAS version?

Jul 13 22:02:56 boxy warden: zfs clone zfsmain/jails/.warden-template-debian-7.1.0@clean zfsmain/jails/debby
Jul 13 22:02:56 boxy warden: Setting up linux jail...
Jul 13 22:02:56 boxy warden: Success! Linux jail created at /mnt/zfsmain/jails/debby
Jul 13 22:02:57 boxy kernel: linux: pid 11058 (touch): syscall utimensat not implemented
Jul 13 22:02:57 boxy kernel: linux: pid 11065 (sort): syscall prlimit64 not implemented
Jul 13 22:02:57 boxy kernel: linux: pid 11090 (touch): syscall utimensat not implemented
Jul 13 22:02:57 boxy kernel: linux: pid 11096 (tar): syscall utimensat not implemented
Jul 13 22:02:57 boxy kernel: linux: pid 11100 (sort): syscall prlimit64 not implemented
Jul 13 22:02:57 boxy kernel: linux: pid 11137 (touch): syscall utimensat not implemented
Jul 13 22:02:57 boxy kernel: linux: pid 11166 (gzip): syscall utimensat not implemented
Jul 13 22:02:57 boxy kernel: linux: pid 11169 (touch): syscall utimensat not implemented
Jul 13 22:02:57 boxy kernel: linux: pid 11173 (dmesg): syscall syslog not implemented
Jul 13 22:02:58 boxy kernel: linux: pid 11203 (rsyslogd): syscall syslog not implemented
Jul 13 22:02:58 boxy kernel: linux: pid 11211 (acpid): syscall inotify_init1 not implemented
Jul 13 22:02:58 boxy kernel: linux: pid 11279 (touch): syscall utimensat not implemented
Jul 13 22:02:58 boxy kernel: linux: pid 11481 (exim4): syscall prlimit64 not implemented
Jul 13 22:03:00 boxy kernel: linux: pid 11486 (exim4): syscall prlimit64 not implemented
Jul 13 22:03:01 boxy kernel: linux: pid 11488 (exim4): syscall prlimit64 not implemented
Jul 13 22:17:01 boxy kernel: linux: pid 12842 (cron): syscall prlimit64 not implemented
 

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
Do Linux jails actually run GNU userland or is it just the kernel? If so, which distribution is it based on?
 
Status
Not open for further replies.
Top