Problem with jails after upgrading to 6.1-STABLE

Bartosz Giza gizmen at blurp.pl
Thu May 18 05:10:02 PDT 2006


Hi,

Recently i have upgraded my box to 6.1-STABLE. Before i have had 6.0-STABLE.

I am running couple of jails on this box and right now something is messed 
up with startup scripts or somewhere else.
Worst thing is that i can't stop them using rc.d/jail script:

root at blurp:~# jls
   JID  IP Address      Hostname                      Path
    10  127.0.0.107     clamsmtpd.xxxx.xx            /usr/jails/clamav
     9  127.0.0.106     clamd.xxxx.xx                /usr/jails/clamav
     8  127.0.0.105     freshclam.xxxx.xx            /usr/jails/clamav


root at blurp:~# ps axO jid |grep J
  PID    JID  TT  STAT      TIME COMMAND
 1443      8  ??  IsJ    0:00,19 /usr/local/bin/freshclam --daemon
 1459      9  ??  IsJ    0:49,15 /usr/local/sbin/clamd
 1474     10  ??  IsJ    0:05,79 /usr/local/sbin/clamsmtpd


root at blurp:~# /etc/rc.d/jail stop clamsmtpd
Stopping jails: clamsmtpd.blurp.pl.


root at blurp:~# jls
   JID  IP Address      Hostname                      Path
    10  127.0.0.107     clamsmtpd.blurp.pl            /usr/jails/clamav
     9  127.0.0.106     clamd.blurp.pl                /usr/jails/clamav
     8  127.0.0.105     freshclam.blurp.pl            /usr/jails/clamav

root at blurp:~# ps axO jid | grep J
  PID    JID  TT  STAT      TIME COMMAND
 1443      8  ??  IsJ    0:00,19 /usr/local/bin/freshclam --daemon
 1459      9  ??  SsJ    0:49,15 /usr/local/sbin/clamd
 1474     10  ??  IsJ    0:05,79 /usr/local/sbin/clamsmtpd

I have tried to find what is wrong with this. And i think the problem is 
with killall which is used to in rc.d/jail script:

root at blurp:~# killall -j 10
No matching processes were found

And as i have shown earlier, there is process running with jid 10.
To stop this jail i have to kill this proces by pid.

root at blurp:~# uname -a 
FreeBSD blurp.pl 6.1-STABLE FreeBSD 6.1-STABLE #0: Sat May 13 13:09:51 CEST 
2006     root at blurp.pl:/crypto/obj/usr/src/sys/BLURP  i386


This is really problematic when i have to stop more jails and start them 
again. Could anyone tell me what is wrong or this is bug and i should PR it.

I have upgraded every files with mergemaster -p; and then with mergemaster. 
So i have starup scrips from STABLE branch.

PS: i have listed only 3 jails but i runing more off them and they have same

problem exept of apache which i can kill with script and killall -j xx ? :(
Don't know where is problem .... please help.. thx
-- 
[] Bartosz Giza




More information about the freebsd-hackers mailing list