We have a system with some
jails. First jail's home directory is /data/jails/ref. Then, we are running
script "crash" under root:
-----------
#! /usr/local/bin/bash
SRC="/data/jails/ref
DEST=/data/jails/$1 mkdir $DEST
mkdir $DEST/usr
mount_union -b $SRC/usr $DEST/usr mkdir $DEST/bin
mount_union -b $SRC/bin $DEST/bin mkdir $DEST/root
mount_union -b $SRC/root $DEST/root jail /data/jails/$1 jail$1 $2 /bin/csh
/root/scripts/runjail
mount_union -b $SRC/usr $DEST/usr
mount_union -b $SRC/bin $DEST/bin
mount_union -b $SRC/root
$DEST/root
--------------
Originally, this script was designed to make a
clone of the first jail. Contents of /root/scripts/runjail:
-------------
sshd
/usr/local/apache/bin/apachectl start cd /usr/local/mysql bin/safe_mysqld --user=mysql & cron -------------
After this, system hangs up. When trying to reboot
with "boot -sv" we see:
...
...
trying /sbin/init...
and freebsd halts again. There is no way to boot
up. Of course, fsck reports "no problem" and checksum of /sbin/init is
correct. The only way to continue working is to run
"upgrade" from the instalation CD.
We are using freebsd 4.5.
May be anybody knows solution for this
problem?
Victor Polyakov ([EMAIL PROTECTED])
|
- Re: jail + mount_union problem Victor Polyakov
- Re: jail + mount_union problem Attila Nagy
- Re: jail + mount_union problem Victor Polyakov
- Re: jail + mount_union problem Terry Lambert
- RE: jail + mount_union problem Vadim Kolontsov
- Re: jail + mount_union problem Dominic Marks
- RE: jail + mount_union problem Vadim Kolontsov
- Re: jail + mount_union probl... Dominic Marks
- Re: jail + mount_union problem Terry Lambert