From: Stephan Sachse (listen_at_nugmbh.de)
Date: Wed 24 Sep 2003 - 09:48:40 BST
Hi Herbert,
some problems with current patchset for contextquota
when i have run one vserver with quota all works fine
same with two running vservers with quota
but whith three vserver (2 quota, 1 without) a "vserver vserverwithquota
stop" hangs at the end auf the script.
i do a "vserver <name> exec quotaoff -avgu" in the post-stop section of
the vserver.sh. "vps ax" shows a hanging "quotaoff -avgu" in the
vserver. /proc/mounts says
none /mnt/vserversa/bind-ldap/proc proc rw 0 0
none /mnt/vserversa/bind-ldap/dev/pts devpts rw 0 0
none /mnt/vserversa/mux_nugmbh51/proc proc rw 0 0
none /mnt/vserversa/mux_nugmbh51/dev/pts devpts rw 0 0
mux_nugmbh51 is the stoping vserver.
the mounts will not go away after a vserver stop
i dont understand the quotaoff problem in vserver.sh post-stop because
doing this by hand works fine...
here is the vservername.sh script that doing the job
> #!/bin/sh
>
> REALBLOCKDEVICE=
> S_CONTEXT=
>
> if [ -f /etc/vservers/$2.conf ] ; then
> . /etc/vservers/$2.conf
> fi
>
> case $1 in
> pre-start)
> if [ ! -z $S_CONTEXT ] ; then
> if [ ! -z $REALBLOCKDEVICE ] ; then
> echo "turning quota on"
> vserver $2 exec quotaon -vagu
> fi
> fi
> ;;
>
> post-start)
> ;;
>
> pre-stop)
> ;;
>
> post-stop)
> if [ ! -z $S_CONTEXT ] ; then
> if [ ! -z $REALBLOCKDEVICE ] ; then
> echo "turning quota off"
> vserver $2 exec quotaoff -vagu
> sleep 2
> fi
> fi
> ;;
>
> *)
> echo "usage: $0 [pre-start|post-start|pre-stop|post-stop]"
> ;;
> esac
i have make 2 "showTasks" with SysRq
http://www.teg-clan.de/bilder/misc/ksymoops.vserver-hang.20030924
http://www.teg-clan.de/bilder/misc/ksymoops.vserver-hang.20030924.1
since new patchset i notice some logmessages like this during stoping a
vserver without quota
> DQUOT_DROP: inode without dqh!DQUOT_DROP: inode without dqh!
and during stoping a vserver some times coms following messages
> Can't exec /usr/lib/vserver/vserverkillall (Permission denied)
ls -la /usr/lib/vserver/vserverkillall
-rwxr-xr-x 1 root root 948 Sep 8 16:49
/usr/lib/vserver/vserverkillall
cya later
/stephan
-- "Signatur wurde wegen Faulheit entlassen"