Hi!
I have a FreeBSD 9.1 server with a jail named 'www' to host web pages. Everything was working fine, and all of a sudden the server hung without any known reason, i.e. while I have not accessed the machine for a few days (and, I'm the only admin) and no changes have been made.
Now, after I rebooted the server, the jail is not coming up. When I issue
The host machine's /etc/rc.conf is as follows:
And, with this configuration the jail was working for more than a month without any issue.
One thing I noted is that the /etc folder within the jail is no longer accessible. That is, it is shown with
Any clues/hints?
Thank you in advance.
I have a FreeBSD 9.1 server with a jail named 'www' to host web pages. Everything was working fine, and all of a sudden the server hung without any known reason, i.e. while I have not accessed the machine for a few days (and, I'm the only admin) and no changes have been made.
Now, after I rebooted the server, the jail is not coming up. When I issue
service jail start
the output is:
Code:
Configuring jails:.
Starting jails: cannot start jail "www":
jail: getpwnam root: No such file or directory
jail: /bin/sh /etc/rc: failed
.
The host machine's /etc/rc.conf is as follows:
Code:
# Set-up jails
jail_enable="YES"
jail_list="www" # Names of the jails separated by space
jail_interface="bge0"
jail_set_hostname_allow="NO"
jail_socket_unixiproute_only="YES"
jail_sysvipc_allow="NO"
jail_exec_start="/bin/sh /etc/rc"
jail_exec_stop="/bin/sh /etc/rc.shutdown"
jail_devfs_enable="YES"
jail_fdescfs_enable="NO"
jail_procfs_enable="YES"
jail_mount_enable="NO"
jail_fstab=""
jail_flags="-l -U root"
# Create aliases
ifconfig_bge0_alias0="inet 192.168.1.1 netmask 255.255.255.0" # www jail
# Settings of jail1
jail_www_rootdir="/jail/www" # Jail's root directory
jail_www_hostname="www.example.com" # Jail's hostname
jail_www_ip="192.168.1.1" # Jail's IP address
...
One thing I noted is that the /etc folder within the jail is no longer accessible. That is, it is shown with
ls -al
, but, can not access the directory with cd
.
Code:
# ls -al /jail/www/
...
lrwxr-xr-x 1 root wheel 5 Oct 2 15:33 etc -> s/etc
...
# cd /jail/www/etc/
/jail/www/etc/: No such file or directory.
Any clues/hints?
Thank you in advance.