Re: Unable to shutdown jail on BETA4

From: Nikolay Pavlov <qpadla_at_gmail.com>
Date: Wed, 30 Jan 2008 15:36:04 +0200
On Tuesday 25 December 2007 18:46:04 Nikolay Pavlov wrote:
> On Wednesday 12 December 2007 05:17:27 Andrew Thompson wrote:
> > On Wed, Dec 12, 2007 at 05:12:42AM +0200, Nikolay Pavlov wrote:
> > > Hi all.
> > > Not sure were to go with this... I see a weird jail behavior on
> > > recent BETA4. After successful "/etc/rc.d/jail stop cell" execution
> > > the jail is still could be listed with jls command:
> > > root_at_cassini:~# jls
> > >    JID  IP Address      Hostname  Path
> > >      4  xxx.53.51.236   php-cgi   /home/jails/php-cgi
> > >
> > > But i am unable to find any processes with this jid in the system:
> > > root_at_cassini:~# ps ax -o jid | grep 4
> > > root_at_cassini:~#
> > >
> > > Any comments?
> >
> > This has been fixed (sort of), make sure you have r1.208.2.1 of
> > /usr/src/sys/kern/kern_conf.c
> >
> >
> > cheers,
> > Andrew
>
> Unfortunately the problem is still there, but it's not easy to trigger
> it. Here it is after "/etc/rc.d/jail restart php_cgi" and 11 days of
> uptime: root_at_cassini:~# jls
>    JID  IP Address      Hostname                      Path
>      9  xxx.53.51.236   php-cgi  /home/jails/php-cgi
>      7  xxx.53.51.236   php-cgi  /home/jails/php-cgi
> root_at_cassini:~# ps awwx -o jid | grep 9 | wc -l
>       13
> root_at_cassini:~# ps awwx -o jid | grep 7 | wc -l
>        0
> root_at_cassini:~# uname -a
> FreeBSD cassini 7.0-BETA4 FreeBSD 7.0-BETA4 #2: Thu Dec 13 06:54:11 EET
> 2007 root_at_cassini:/usr/obj/usr/src/sys/GENERIC  amd64

The problem is still present in 7.0-RC1:
FreeBSD cassini.grimmbrothers.com.ua 7.0-RC1 FreeBSD 7.0-RC1 #0: Mon Jan 28 
16:57:47 EET 2008     root_at_cassini:/usr/obj/usr/src/sys/GENERIC  amd64

After executing "/etc/rc.d/jail restart php_cgi"
I see a jail without a processes:

root_at_cassini:/home/www/# jls                                                                                                                                                             
   JID  IP Address      Hostname                      Path
     2  xxx.53.51.236   php-cgi  /home/jails/php-cgi
     1  xxx.53.51.236   php-cgi  /home/jails/php-cgi
root_at_cassini:/home/www/# ps awwx -o jid | grep 1 | wc -l                                                                                                                                 
       0
root_at_cassini:/home/www/# ps awwx -o jid | grep 2 | wc -l                                                                                                                                 
      13 

Also i am using nullfs to mount some directories for this jail, however i 
am not sure if it's related to the problem. 

-- 
======================================================================  
- Best regards, Nikolay Pavlov. <<<-----------------------------------    
======================================================================  
Received on Wed Jan 30 2008 - 12:36:15 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:26 UTC