About this list Date view Thread view Subject view Author view Attachment view

From: Herbert Poetzl (herbert_at_13thfloor.at)
Date: Tue 05 Apr 2005 - 23:35:19 BST


On Tue, Apr 05, 2005 at 08:32:57AM -0600, smagnuson_at_forzani.com wrote:
>
> I'm using Crux (http://crux.nu/) as my root OS and have set up a
> couple of Crux guest OS's.

thanks for the URL, haven't heard of it before ... but
sounds interesting to me ...

> Everything seems to run fine.

good to hear!

> I have the following questions I hope someone can help me with.
>
> 1) When inside a guest OS the "df" command does not work.
> Is this normal? Here is my output:
> root_at_vcrux03 /
> :df
> df: cannot read table of mounted filesystems
> root_at_vcrux03 /
> :df -k
> df: cannot read table of mounted filesystems

no, that's not normal, but I suspect you are missing some
file (maybe /etc/mtab or so) which is used by the df
tool (using strace -fF on the df might shed some light
on that)

> Other commands like top, ps, du all work fine.
>
> 2) When I stop a vserver I get the following but it does infact stop.
> Any ideas as to how to correct this?

> sudo vserver-stat
> CTX PROC VSZ RSS userTIME sysTIME UPTIME NAME
> 0 32 33.5M 3K 0m35s20 0m30s27 16h26m54 root server
> 49187 4 7.4M 767 0m00s14 0m00s60 1m06s54 crux03

sidenote: please don't use dynamic contexts for vserver
guests, make them fixed ...

> sudo vserver crux03 stop
> vkill: vc_ctx_kill(): No such process
> Vserver '/usr/local/etc/vservers/crux03' still running unexpectedly;
> please investigate it manually...

this might be related to an issue we are investigating
right now, is your guest init based?

> sudo vserver-stat
> CTX PROC VSZ RSS userTIME sysTIME UPTIME NAME
> 0 32 33.5M 3K 0m35s48 0m30s48 16h28m07 root server

> A very cool project.

thanks!

HTH,
Herbert

> Thanks
> Sig
>
>
> sudo vserver-info
> Versions:
> Kernel: 2.6.11.5-vs1.9.5
> VS-API: 0x00010025
> util-vserver: 0.30.204; Mar 31 2005, 13:45:28
>
> Features:
> CC: gcc, gcc (GCC) 3.3.4 (CRUX)
> CXX: g++, g++ (GCC) 3.3.4 (CRUX)
> CPPFLAGS: ''
> CFLAGS: '-g -O2 -std=c99 -Wall -pedantic -W'
> CXXFLAGS: '-g -O2 -ansi -Wall -pedantic -W -fmessage-length=0'
> build/host: i686-pc-linux-gnu/i686-pc-linux-gnu
> Use dietlibc: no (you have been warned)
> Build C++ programs: yes
> Build C99 programs: yes
> Available APIs: compat,v11,v13,fscompat,net,oldproc,olduts
> ext2fs Source: e2fsprogs
> syscall(2) invocation: fast
> vserver(2) syscall#: 273/glibc
>
> Paths:
> prefix: /usr/local
> sysconf-Directory: ${prefix}/etc
> cfg-Directory: ${prefix}/etc/vservers
> initrd-Directory: $(sysconfdir)/init.d
> pkgstate-Directory: ${prefix}/var/run/vservers
> Kernelheaders: /lib/modules/2.6.11.5-vs1.9.5/build/include
> vserver-Rootdir: /vservers
>
>
> Assumed 'SYSINFO' as no other option given; try '--help' for more information.
>
>
> Here is a debug output from my: "sudo vserver --debug crux03 stop" command
>
> sudo vserver --debug crux03 stop
> + shift
> + true
> + shift
> + break
> + OPTION_ALL=($OPTION_SILENT $OPTION_VERBOSE $OPTION_DEBUG $OPTION_DEFAULTTTY)
> + SELF=("$0" "${OPTION_ALL[@]}")
> + vserver=crux03
> + cmd=stop
> + test stop '!=' build
> + allow_legacy=
> + VSERVER_DIR=/usr/local/etc/vservers/crux03
> + allow_legacy=1
> + test -n 1
> + do_legacy=
> + test '!' -e /usr/local/etc/vservers/crux03/legacy
> + test -d /usr/local/etc/vservers/crux03 -o '!' -e /usr/local/etc/vservers/crux03.conf
> + test -z ''
> + test -d /usr/local/etc/vservers/crux03
> + test -e /usr/local/etc/vservers/crux03/name
> + read VSERVER_NAME
> + test stop '!=' start -o -n ''
> + . /usr/local/lib/util-vserver/vserver.functions
> ++ declare -a 'NICE_CMD=()'
> ++ declare -a 'CHBIND_OPTS=()'
> ++ declare -a 'CAP_OPTS=()'
> ++ declare -a 'CHCONTEXT_INIT_OPTS=()'
> ++ declare -a 'CHCONTEXT_FLAG_OPTS=()'
> ++ declare -a 'CHCONTEXT_OPTS=()'
> ++ declare -a 'CAPCHROOT_OPTS=()'
> ++ declare -a 'INTERFACES=()'
> ++ declare -a 'INITCMD_START=()'
> ++ declare -a 'INITCMD_START_SYNC=()'
> ++ declare -a 'INITCMD_STOP=()'
> ++ declare -a 'INITCMD_STOP_SYNC=()'
> ++ declare -a 'INITCMD_PREPARE=()'
> ++ declare -a 'INITKILL_SEQ=()'
> ++ declare -a 'ENTER_SHELL=()'
> ++ declare -a 'OPTS_VCONTEXT_CREATE=()'
> ++ declare -a 'OPTS_VCONTEXT_MIGRATE=()'
> ++ declare -a 'OPTS_VATTRIBUTE=(--flag fakeinit)'
> ++ declare -a 'OPTS_VSCHED=()'
> ++ declare -a 'STOPCMD_PREPARE=()'
> ++ declare -a 'VSERVER_EXTRA_CMDS=()'
> ++ VSHELPER_SYNC_TIMEOUT=30
> ++ USE_VNAMESPACE=
> ++ INTERFACE_CMDS_IDX=0
> ++ RUNLEVEL_START=
> ++ RUNLEVEL_STOP=
> ++ _HAVE_INTERFACE_OPTIONS=
> ++ _HAVE_CHBIND_OPTIONS=
> ++ _NEED_VSHELPER_SYNC=
> ++ _IS_FAKEINIT=
> ++ INITSTYLE=sysv
> ++ S_CONTEXT=
> ++ SILENT_OPT=
> ++ : crux03
> ++ test -e /usr/local/etc/vservers/crux03/noisy -o -n ''
> ++ SILENT_OPT=--silent
> + shift 2
> + . /usr/local/lib/util-vserver/vserver.stop
> +++ /usr/local/sbin/vserver-info /usr/local/etc/vservers/crux03 CANONIFY
> ++ lock /var/lock/vserver.usrlocaletcvserverscrux03.startup
> +++ /usr/bin/mktemp /tmp/vserver-lock.XXXXXX
> ++ local tmp=/tmp/vserver-lock.RJ7475
> ++ /bin/rm -f /tmp/vserver-lock.RJ7475
> ++ /usr/bin/mkfifo -m600 /tmp/vserver-lock.RJ7475
> ++ /usr/local/lib/util-vserver/lockfile /var/lock/vserver.usrlocaletcvserverscrux03.startup /tmp/vserver-lock.RJ7475
> ++ /usr/bin/grep -q true /tmp/vserver-lock.RJ7475
> ++ _VS_LOCKS=7478
> ++ isVserverRunning /usr/local/etc/vservers/crux03 S_CONTEXT
> ++ local _ivr_ctx _ivr_procnum
> ++ getVserverStatus /usr/local/etc/vservers/crux03 _ivr_ctx _ivr_procnum 1
> ++ test -r /usr/local/etc/vservers/crux03/run
> ++ local _gvs_ctx
> ++ read _gvs_ctx
> ++ eval '_ivr_ctx=$_gvs_ctx'
> +++ _ivr_ctx=49188
> ++ test -n _ivr_procnum
> ++ local _gvs_tmp
> ++ _getProcNumberCount 49188 _gvs_tmp
> ++ local _gp_var=_gvs_tmp
> ++ local _gp_procnr_cnt=0
> ++ test -d /proc/virtual
> +++ /usr/bin/grep '^PROC:' /proc/virtual/49188/limit
> ++ set -- PROC: 4 6 -1 0
> ++ _gp_procnr_cnt=4
> ++ let _gp_procnr_cnt=_gp_procnr_cnt+0
> ++ eval '_gvs_tmp=$_gp_procnr_cnt'
> +++ _gvs_tmp=4
> ++ eval '_ivr_procnum=$_gvs_tmp'
> +++ _ivr_procnum=4
> ++ test 4 = 0
> ++ return 0
> ++ test 4 '!=' 0
> ++ test -z S_CONTEXT
> ++ eval 'S_CONTEXT=$_ivr_ctx'
> +++ S_CONTEXT=49188
> ++ return 0
> ++ sync_fifo=
> ++ trap cleanup EXIT
> ++ set -e
> ++ generateOptions /usr/local/etc/vservers/crux03
> ++ _generateInterfaceOptions /usr/local/etc/vservers/crux03
> ++ local iface
> ++ local ctx
> ++ test '!' -e /usr/local/etc/vservers/crux03/context
> ++ test -d /usr/local/etc/vservers/crux03/interfaces/0
> ++ test '!' -e /usr/local/etc/vservers/crux03/interfaces/0/disabled
> ++ _processSingleInterface /usr/local/etc/vservers/crux03/interfaces/0
> ++ local iface=/usr/local/etc/vservers/crux03/interfaces/0
> ++ local ip
> ++ local dev
> ++ local prefix
> ++ local mask
> ++ local bcast
> ++ local name
> ++ local scope
> ++ local mac
> ++ local extip
> ++ local up=up
> ++ _getInterfaceValue ip '' /usr/local/etc/vservers/crux03/interfaces/0
> ++ local _giv_val=ip
> ++ local _giv_dflt=
> ++ shift 2
> ++ local _giv_i
> ++ local _giv_tmp
> ++ : 172.27.12.16
> ++ eval 'ip=$_giv_tmp'
> +++ ip=172.27.12.16
> ++ _getInterfaceValue extip '' /usr/local/etc/vservers/crux03/interfaces/0 /usr/local/etc/vservers/crux03/interfaces/0/..
> ++ local _giv_val=extip
> ++ local _giv_dflt=
> ++ shift 2
> ++ local _giv_i
> ++ local _giv_tmp
> ++ :
> ++ eval 'extip=$_giv_tmp'
> +++ extip=
> ++ _getInterfaceValue dev '' /usr/local/etc/vservers/crux03/interfaces/0 /usr/local/etc/vservers/crux03/interfaces/0/..
> ++ local _giv_val=dev
> ++ local _giv_dflt=
> ++ shift 2
> ++ local _giv_i
> ++ local _giv_tmp
> ++ : eth0
> ++ eval 'dev=$_giv_tmp'
> +++ dev=eth0
> ++ _getInterfaceValue prefix '' /usr/local/etc/vservers/crux03/interfaces/0 /usr/local/etc/vservers/crux03/interfaces/0/..
> ++ local _giv_val=prefix
> ++ local _giv_dflt=
> ++ shift 2
> ++ local _giv_i
> ++ local _giv_tmp
> ++ :
> ++ eval 'prefix=$_giv_tmp'
> +++ prefix=
> ++ _getInterfaceValue mask '' /usr/local/etc/vservers/crux03/interfaces/0 /usr/local/etc/vservers/crux03/interfaces/0/..
> ++ local _giv_val=mask
> ++ local _giv_dflt=
> ++ shift 2
> ++ local _giv_i
> ++ local _giv_tmp
> ++ : 255.255.248.0
> ++ eval 'mask=$_giv_tmp'
> +++ mask=255.255.248.0
> ++ _getInterfaceValue bcast '' /usr/local/etc/vservers/crux03/interfaces/0 /usr/local/etc/vservers/crux03/interfaces/0/..
> ++ local _giv_val=bcast
> ++ local _giv_dflt=
> ++ shift 2
> ++ local _giv_i
> ++ local _giv_tmp
> ++ :
> ++ eval 'bcast=$_giv_tmp'
> +++ bcast=
> ++ _getInterfaceValue name '' /usr/local/etc/vservers/crux03/interfaces/0
> ++ local _giv_val=name
> ++ local _giv_dflt=
> ++ shift 2
> ++ local _giv_i
> ++ local _giv_tmp
> ++ : c03
> ++ eval 'name=$_giv_tmp'
> +++ name=c03
> ++ _getInterfaceValue scope '' /usr/local/etc/vservers/crux03/interfaces/0 /usr/local/etc/vservers/crux03/interfaces/0/..
> ++ local _giv_val=scope
> ++ local _giv_dflt=
> ++ shift 2
> ++ local _giv_i
> ++ local _giv_tmp
> ++ :
> ++ eval 'scope=$_giv_tmp'
> +++ scope=
> ++ _getInterfaceValue mac '' /usr/local/etc/vservers/crux03/interfaces/0
> ++ local _giv_val=mac
> ++ local _giv_dflt=
> ++ shift 2
> ++ local _giv_i
> ++ local _giv_tmp
> ++ :
> ++ eval 'mac=$_giv_tmp'
> +++ mac=
> ++ test -n 172.27.12.16
> ++ test -n eth0 -o -e /usr/local/etc/vservers/crux03/interfaces/0/nodev
> ++ test '!' -e /usr/local/etc/vservers/crux03/interfaces/0/down
> ++ true
> ++ _transformMask2Prefix prefix '' 255.255.248.0
> ++ local _tm2p_tmp=
> ++ test -n ''
> ++ /usr/local/lib/util-vserver/mask2prefix 255.255.248.0
> ++ _tm2p_tmp=21
> ++ eval 'prefix=$_tm2p_tmp'
> +++ prefix=21
> ++ return 0
> ++ INTERFACES=("${INTERFACES[@]}" "$ip${prefix:+/$prefix}")
> ++ test '!' -e /usr/local/etc/vservers/crux03/interfaces/0/nodev
> ++ test '!' -e /usr/local/etc/vservers/crux03/interfaces/0/only_ip
> ++ test -e /usr/local/etc/vservers/crux03/interfaces/0/indirect
> ++ _addInterfaceCmd IP_ADDR 172.27.12.16/21 broadcast + label eth0:c03 dev eth0
> ++ eval 'INTERFACE_CMDS_0=( "$@" )'
> +++ INTERFACE_CMDS_0=("$@")
> ++ let ++INTERFACE_CMDS_IDX
> ++ _addInterfaceCmd IP_LINK eth0 up
> ++ eval 'INTERFACE_CMDS_1=( "$@" )'
> +++ INTERFACE_CMDS_1=("$@")
> ++ let ++INTERFACE_CMDS_IDX
> ++ break
> ++ test -d /usr/local/etc/vservers/crux03/interfaces/dev
> ++ continue
> ++ test -d /usr/local/etc/vservers/crux03/interfaces/mask
> ++ continue
> ++ _HAVE_INTERFACE_OPTIONS=1
> ++ test -n ''
> ++ _generateChbindOptions /usr/local/etc/vservers/crux03
> ++ local vdir=/usr/local/etc/vservers/crux03
> ++ local i
> ++ local bcast=
> ++ test -n 1
> ++ local f=/usr/local/etc/vservers/crux03/interfaces/bcast
> ++ getFileValue bcast /usr/local/etc/vservers/crux03/interfaces/bcast
> ++ local _gfv_var=bcast
> ++ local _gfv_file
> ++ shift
> ++ findFile _gfv_file /usr/local/etc/vservers/crux03/interfaces/bcast ''
> ++ findObject -f _gfv_file /usr/local/etc/vservers/crux03/interfaces/bcast ''
> ++ local _fo_mod=-f
> ++ local _fo_var=_gfv_file
> ++ local _fo_file=
> ++ local _fo_i=X
> ++ shift 2
> ++ test -n /usr/local/etc/vservers/crux03/interfaces/bcast
> ++ test '!' -f /usr/local/etc/vservers/crux03/interfaces/bcast
> ++ test -n ''
> ++ continue
> ++ test -z '' -o -n ''
> ++ eval '_gfv_file=""'
> +++ _gfv_file=
> ++ test -n '' -a -r ''
> ++ return 0
> ++ CHBIND_OPTS=($SILENT_OPT ${bcast:+--bcast "$bcast"})
> ++ CHBIND_OPTS=("${CHBIND_OPTS[@]}" --ip "$i")
> ++ _HAVE_CHBIND_OPTIONS=1
> ++ _generateNiceCommand /usr/local/etc/vservers/crux03
> ++ local vdir=/usr/local/etc/vservers/crux03
> ++ local nice
> ++ test -r /usr/local/etc/vservers/crux03/nice
> ++ return 0
> ++ _generateInitOptions /usr/local/etc/vservers/crux03
> ++ local vdir=/usr/local/etc/vservers/crux03
> ++ local cfgdir=/usr/local/etc/vservers/crux03/apps/init
> ++ local i f
> ++ INITCMD_START=()
> ++ INITCMD_STOP=()
> ++ INITCMD_START_SYNC=()
> ++ INITCMD_STOP_SYNC=()
> ++ INITCMD_PREPARE=()
> ++ STOPCMD_PREPARE=()
> ++ INITKILL_SEQ=(15 5 9)
> ++ CHCONTEXT_INIT_OPTS=()
> ++ getFileValue INITSTYLE /usr/local/etc/vservers/crux03/apps/init/style
> ++ local _gfv_var=INITSTYLE
> ++ local _gfv_file
> ++ shift
> ++ findFile _gfv_file /usr/local/etc/vservers/crux03/apps/init/style ''
> ++ findObject -f _gfv_file /usr/local/etc/vservers/crux03/apps/init/style ''
> ++ local _fo_mod=-f
> ++ local _fo_var=_gfv_file
> ++ local _fo_file=
> ++ local _fo_i=X
> ++ shift 2
> ++ test -n /usr/local/etc/vservers/crux03/apps/init/style
> ++ test '!' -f /usr/local/etc/vservers/crux03/apps/init/style
> ++ _fo_file=/usr/local/etc/vservers/crux03/apps/init/style
> ++ break
> ++ test -z /usr/local/etc/vservers/crux03/apps/init/style -o -n /usr/local/etc/vservers/crux03/apps/init/style
> ++ eval '_gfv_file="/usr/local/etc/vservers/crux03/apps/init/style"'
> +++ _gfv_file=/usr/local/etc/vservers/crux03/apps/init/style
> ++ test -n /usr/local/etc/vservers/crux03/apps/init/style -a -r /usr/local/etc/vservers/crux03/apps/init/style
> ++ eval read INITSTYLE
> +++ read INITSTYLE
> ++ getFileValue RUNLEVEL_START /usr/local/etc/vservers/crux03/apps/init/runlevel
> ++ local _gfv_var=RUNLEVEL_START
> ++ local _gfv_file
> ++ shift
> ++ findFile _gfv_file /usr/local/etc/vservers/crux03/apps/init/runlevel ''
> ++ findObject -f _gfv_file /usr/local/etc/vservers/crux03/apps/init/runlevel ''
> ++ local _fo_mod=-f
> ++ local _fo_var=_gfv_file
> ++ local _fo_file=
> ++ local _fo_i=X
> ++ shift 2
> ++ test -n /usr/local/etc/vservers/crux03/apps/init/runlevel
> ++ test '!' -f /usr/local/etc/vservers/crux03/apps/init/runlevel
> ++ test -n ''
> ++ continue
> ++ test -z '' -o -n ''
> ++ eval '_gfv_file=""'
> +++ _gfv_file=
> ++ test -n '' -a -r ''
> ++ return 0
> ++ getFileValue RUNLEVEL_START /usr/local/etc/vservers/crux03/apps/init/runlevel.start
> ++ local _gfv_var=RUNLEVEL_START
> ++ local _gfv_file
> ++ shift
> ++ findFile _gfv_file /usr/local/etc/vservers/crux03/apps/init/runlevel.start ''
> ++ findObject -f _gfv_file /usr/local/etc/vservers/crux03/apps/init/runlevel.start ''
> ++ local _fo_mod=-f
> ++ local _fo_var=_gfv_file
> ++ local _fo_file=
> ++ local _fo_i=X
> ++ shift 2
> ++ test -n /usr/local/etc/vservers/crux03/apps/init/runlevel.start
> ++ test '!' -f /usr/local/etc/vservers/crux03/apps/init/runlevel.start
> ++ test -n ''
> ++ continue
> ++ test -z '' -o -n ''
> ++ eval '_gfv_file=""'
> +++ _gfv_file=
> ++ test -n '' -a -r ''
> ++ return 0
> ++ getFileValue RUNLEVEL_STOP /usr/local/etc/vservers/crux03/apps/init/runlevel.stop
> ++ local _gfv_var=RUNLEVEL_STOP
> ++ local _gfv_file
> ++ shift
> ++ findFile _gfv_file /usr/local/etc/vservers/crux03/apps/init/runlevel.stop ''
> ++ findObject -f _gfv_file /usr/local/etc/vservers/crux03/apps/init/runlevel.stop ''
> ++ local _fo_mod=-f
> ++ local _fo_var=_gfv_file
> ++ local _fo_file=
> ++ local _fo_i=X
> ++ shift 2
> ++ test -n /usr/local/etc/vservers/crux03/apps/init/runlevel.stop
> ++ test '!' -f /usr/local/etc/vservers/crux03/apps/init/runlevel.stop
> ++ test -n ''
> ++ continue
> ++ test -z '' -o -n ''
> ++ eval '_gfv_file=""'
> +++ _gfv_file=
> ++ test -n '' -a -r ''
> ++ return 0
> ++ getFileArray INITKILL_SEQ /usr/local/etc/vservers/crux03/apps/init/killseq
> ++ test -r /usr/local/etc/vservers/crux03/apps/init/killseq
> ++ return 1
> ++ :
> ++ INITCMD_START=(/sbin/init)
> ++ INITCMD_STOP=(/sbin/init)
> ++ _IS_FAKEINIT=1
> ++ _NEED_VSHELPER_SYNC=1
> ++ test -z ''
> ++ test -z ''
> ++ getFileArray INITCMD_START /usr/local/etc/vservers/crux03/apps/init/cmd.start
> ++ test -r /usr/local/etc/vservers/crux03/apps/init/cmd.start
> ++ return 1
> ++ :
> ++ getFileArray INITCMD_STOP /usr/local/etc/vservers/crux03/apps/init/cmd.stop
> ++ test -r /usr/local/etc/vservers/crux03/apps/init/cmd.stop
> ++ return 1
> ++ :
> ++ getFileArray INITCMD_START_SYNC /usr/local/etc/vservers/crux03/apps/init/cmd.start-sync
> ++ test -r /usr/local/etc/vservers/crux03/apps/init/cmd.start-sync
> ++ return 1
> ++ :
> ++ getFileArray INITCMD_STOP_SYNC /usr/local/etc/vservers/crux03/apps/init/cmd.stop-sync
> ++ test -r /usr/local/etc/vservers/crux03/apps/init/cmd.stop-sync
> ++ return 1
> ++ :
> ++ getFileArray INITCMD_PREPARE /usr/local/etc/vservers/crux03/apps/init/cmd.prepare
> ++ test -r /usr/local/etc/vservers/crux03/apps/init/cmd.prepare
> ++ return 1
> ++ :
> ++ test -n '' -o -e /usr/local/etc/vservers/crux03/apps/init/sync
> ++ INITCMD_START_SYNC=()
> ++ INITCMD_STOP_SYNC=()
> ++ _NEED_VSHELPER_SYNC=
> ++ vshelper.isEnabled
> ++ local f=disabled
> ++ test '!' -e /usr/local/etc/vservers/.defaults/apps/vshelper/disabled
> ++ /usr/local/sbin/vserver-info - FEATURE vshelper
> ++ test -n ''
> ++ return 0
> ++ vshelper.getSyncTimeout /usr/local/etc/vservers/crux03 VSHELPER_SYNC_TIMEOUT
> ++ local _vgst_appdir _vgst_file _vgst_tmp
> +++ /usr/local/sbin/vserver-info /usr/local/etc/vservers/crux03 APPDIR vshelper
> ++ _vgst_appdir=
> ++ _vgst_appdir=
> ++ findFile _vgst_file /usr/local/etc/vservers/.defaults/apps/vshelper/sync-timeout ''
> ++ findObject -f _vgst_file /usr/local/etc/vservers/.defaults/apps/vshelper/sync-timeout ''
> ++ local _fo_mod=-f
> ++ local _fo_var=_vgst_file
> ++ local _fo_file=
> ++ local _fo_i=X
> ++ shift 2
> ++ test -n /usr/local/etc/vservers/.defaults/apps/vshelper/sync-timeout
> ++ test '!' -f /usr/local/etc/vservers/.defaults/apps/vshelper/sync-timeout
> ++ test -n ''
> ++ continue
> ++ test -z '' -o -n ''
> ++ eval '_vgst_file=""'
> +++ _vgst_file=
> ++ test -n ''
> ++ return 1
> ++ :
> ++ _generateChcontextOptions /usr/local/etc/vservers/crux03
> ++ local vdir=/usr/local/etc/vservers/crux03
> ++ local ctx hostname domainname
> ++ local cap_opts
> ++ local flag
> ++ test -z 49188
> ++ ctx=49188
> ++ _generateCapabilityOptions /usr/local/etc/vservers/crux03
> ++ local vdir=/usr/local/etc/vservers/crux03
> ++ local cap
> ++ _generateBCapabilityOptions /usr/local/etc/vservers/crux03
> ++ local vdir=/usr/local/etc/vservers/crux03
> ++ local cap
> ++ local f=/usr/local/etc/vservers/crux03/bcapabilities
> ++ test -e /usr/local/etc/vservers/crux03/bcapabilities
> ++ return 0
> ++ _generateCCapabilityOptions /usr/local/etc/vservers/crux03
> ++ local vdir=/usr/local/etc/vservers/crux03
> ++ local cap
> ++ local f=/usr/local/etc/vservers/crux03/ccapabilities
> ++ test -e /usr/local/etc/vservers/crux03/ccapabilities
> ++ return 0
> ++ test -e /usr/local/etc/vservers/crux03/capabilities
> ++ return 0
> ++ _generateFlagOptions /usr/local/etc/vservers/crux03
> ++ local vdir=/usr/local/etc/vservers/crux03
> ++ CHCONTEXT_FLAG_OPTS=()
> ++ test '!' -e /usr/local/etc/vservers/crux03/flags
> ++ isAvoidNamespace /usr/local/etc/vservers/crux03
> ++ local cfgdir
> ++ /usr/local/sbin/vserver-info - FEATURE namespace
> +++ /usr/local/sbin/vserver-info /usr/local/etc/vservers/crux03 CFGDIR
> ++ cfgdir=/usr/local/etc/vservers/crux03
> ++ test '!' -e /usr/local/etc/vservers/crux03/namespace
> ++ test -e /usr/local/etc/vservers/.defaults/nonamespace -o -e /usr/local/etc/vservers/crux03/nonamespace
> ++ USE_VNAMESPACE=1
> ++ CHCONTEXT_FLAG_OPTS=("${CHCONTEXT_FLAG_OPTS[@]}" --flag namespace)
> ++ CHCONTEXT_OPTS=($SILENT_OPT "${CHCONTEXT_FLAG_OPTS[@]}" "${CAP_OPTS[@]}" --secure ${ctx:+--ctx "$ctx"} ${hostname:+--hostname "$hostname"} ${domainname:+--domainname "$domainname"})
> ++ OPTS_VCONTEXT_CREATE=($SILENT_OPT ${ctx:+--xid "$ctx"})
> ++ OPTS_VATTRIBUTE=(--secure "${OPTS_VATTRIBUTE[@]}")
> ++ _generateScheduleOptions /usr/local/etc/vservers/crux03
> ++ local vdir=/usr/local/etc/vservers/crux03
> ++ local f=/usr/local/etc/vservers/crux03/schedule
> ++ test -e /usr/local/etc/vservers/crux03/schedule
> ++ return 0
> ++ test -n 1
> ++ CHCONTEXT_INIT_OPTS=(--disconnect --flag fakeinit)
> ++ OPTS_VCONTEXT_MIGRATE=("${OPTS_VCONTEXT_MIGRATE[@]}" --initpid --disconnect)
> ++ set +e
> ++ vshelper.doDestroy /usr/local/etc/vservers/crux03 49188
> ++ vshelper.isEnabled
> ++ local f=disabled
> ++ test '!' -e /usr/local/etc/vservers/.defaults/apps/vshelper/disabled
> ++ /usr/local/sbin/vserver-info - FEATURE vshelper
> ++ test -n ''
> ++ return 0
> ++ /bin/rm -f /usr/local/var/run/vshelper/49188
> ++ initSync /usr/local/etc/vservers/crux03 sync_fifo
> ++ test -z ''
> ++ prepareStop /usr/local/etc/vservers/crux03
> ++ pushd /usr/local/etc/vservers/crux03/vdir
> ++ popd
> ++ cd /usr/local/etc/vservers/crux03/vdir/
> ++ execScriptlets /usr/local/etc/vservers/crux03 crux03 pre-stop
> ++ declare -r vdir=/usr/local/etc/vservers/crux03
> ++ declare -r name=crux03
> ++ declare -r flavor=pre-stop
> ++ local base i
> ++ local DONT_SKIP_DEFAULTS=
> ++ local already_handled=
> ++ test -f /usr/local/etc/vservers/crux03/scripts/pre-stop -a -r /usr/local/etc/vservers/crux03/scripts/pre-stop
> ++ continue
> ++ test -f '/usr/local/etc/vservers/crux03/scripts/pre-stop.d/*' -a -r '/usr/local/etc/vservers/crux03/scripts/pre-stop.d/*'
> ++ continue
> ++ test -z '' -o -n ''
> ++ local DONT_SKIP_DEFAULTS=
> ++ local already_handled=
> ++ test -f /usr/local/etc/vservers/.defaults/scripts/pre-stop -a -r /usr/local/etc/vservers/.defaults/scripts/pre-stop
> ++ continue
> ++ test -f '/usr/local/etc/vservers/.defaults/scripts/pre-stop.d/*' -a -r '/usr/local/etc/vservers/.defaults/scripts/pre-stop.d/*'
> ++ continue
> ++ test -z '' -o -n ''
> ++ cd /usr/local/etc/vservers/crux03/vdir/
> ++ test -z ''
> ++ fail=
> ++ test -n 1
> ++ /usr/local/sbin/vserver-info - FEATURE vkill
> +++ /usr/local/sbin/vserver-info 49188 INITPID
> ++ initpid=7411
> ++ /usr/local/sbin/vkill -s INT -- 7411
> vkill: vc_ctx_kill(): No such process
> ++ fail=1
> ++ test -n 1
> ++ vshelper.doDestroy /usr/local/etc/vservers/crux03 49188
> ++ vshelper.isEnabled
> ++ local f=disabled
> ++ test '!' -e /usr/local/etc/vservers/.defaults/apps/vshelper/disabled
> ++ /usr/local/sbin/vserver-info - FEATURE vshelper
> ++ test -n ''
> ++ return 0
> ++ /bin/rm -f /usr/local/var/run/vshelper/49188
> ++ sendKillSequence 49188 15 5 9
> ++ local ctx=49188
> ++ local wait=
> ++ shift
> ++ isCtxRunning 49188
> ++ local _tmp
> ++ _getProcNumberCount 49188 _tmp
> ++ local _gp_var=_tmp
> ++ local _gp_procnr_cnt=0
> ++ test -d /proc/virtual
> +++ /usr/bin/grep '^PROC:' /proc/virtual/49188/limit
> ++ set -- PROC: 4 6 -1 0
> ++ _gp_procnr_cnt=4
> ++ let _gp_procnr_cnt=_gp_procnr_cnt+0
> ++ eval '_tmp=$_gp_procnr_cnt'
> +++ _tmp=4
> ++ test 4 -gt 0
> ++ test -z ''
> ++ /usr/local/sbin/vkill -c 49188 -s 15
> ++ test -n 5
> ++ wait=5
> ++ shift 2
> ++ isCtxRunning 49188
> ++ local _tmp
> ++ _getProcNumberCount 49188 _tmp
> ++ local _gp_var=_tmp
> ++ local _gp_procnr_cnt=0
> ++ test -d /proc/virtual
> +++ /usr/bin/grep '^PROC:' /proc/virtual/49188/limit
> ++ set -- PROC: 1 6 -1 0
> ++ _gp_procnr_cnt=1
> ++ let _gp_procnr_cnt=_gp_procnr_cnt+0
> ++ eval '_tmp=$_gp_procnr_cnt'
> +++ _tmp=1
> ++ test 1 -gt 0
> ++ test -z 5
> ++ sleep 5
> ++ /usr/local/sbin/vkill -c 49188 -s 9
> ++ test -n ''
> ++ break
> ++ isVserverRunning /usr/local/etc/vservers/crux03
> ++ local _ivr_ctx _ivr_procnum
> ++ getVserverStatus /usr/local/etc/vservers/crux03 _ivr_ctx _ivr_procnum 1
> ++ test -r /usr/local/etc/vservers/crux03/run
> ++ local _gvs_ctx
> ++ read _gvs_ctx
> ++ eval '_ivr_ctx=$_gvs_ctx'
> +++ _ivr_ctx=49188
> ++ test -n _ivr_procnum
> ++ local _gvs_tmp
> ++ _getProcNumberCount 49188 _gvs_tmp
> ++ local _gp_var=_gvs_tmp
> ++ local _gp_procnr_cnt=0
> ++ test -d /proc/virtual
> +++ /usr/bin/grep '^PROC:' /proc/virtual/49188/limit
> ++ set -- PROC: 1 6 -1 0
> ++ _gp_procnr_cnt=1
> ++ let _gp_procnr_cnt=_gp_procnr_cnt+0
> ++ eval '_gvs_tmp=$_gp_procnr_cnt'
> +++ _gvs_tmp=1
> ++ eval '_ivr_procnum=$_gvs_tmp'
> +++ _ivr_procnum=1
> ++ test 1 = 0
> ++ return 0
> ++ test 1 '!=' 0
> ++ test -z ''
> ++ return 0
> ++ echo 'Vserver '\''/usr/local/etc/vservers/crux03'\'' still running unexpectedly; please investigate it manually...'
> Vserver '/usr/local/etc/vservers/crux03' still running unexpectedly; please investigate it manually...
> ++ execScriptlets /usr/local/etc/vservers/crux03 crux03 post-stop
> ++ declare -r vdir=/usr/local/etc/vservers/crux03
> ++ declare -r name=crux03
> ++ declare -r flavor=post-stop
> ++ local base i
> ++ local DONT_SKIP_DEFAULTS=
> ++ local already_handled=
> ++ test -f /usr/local/etc/vservers/crux03/scripts/post-stop -a -r /usr/local/etc/vservers/crux03/scripts/post-stop
> ++ continue
> ++ test -f '/usr/local/etc/vservers/crux03/scripts/post-stop.d/*' -a -r '/usr/local/etc/vservers/crux03/scripts/post-stop.d/*'
> ++ continue
> ++ test -z '' -o -n ''
> ++ local DONT_SKIP_DEFAULTS=
> ++ local already_handled=
> ++ test -f /usr/local/etc/vservers/.defaults/scripts/post-stop -a -r /usr/local/etc/vservers/.defaults/scripts/post-stop
> ++ continue
> ++ test -f '/usr/local/etc/vservers/.defaults/scripts/post-stop.d/*' -a -r '/usr/local/etc/vservers/.defaults/scripts/post-stop.d/*'
> ++ continue
> ++ test -z '' -o -n ''
> ++ umountVserver /usr/local/etc/vservers/crux03
> ++ local cfgdir=/usr/local/etc/vservers/crux03
> ++ local vdir=/usr/local/etc/vservers/crux03/vdir
> ++ local is_ok=1
> ++ isAvoidNamespace /usr/local/etc/vservers/crux03
> ++ local cfgdir
> ++ /usr/local/sbin/vserver-info - FEATURE namespace
> +++ /usr/local/sbin/vserver-info /usr/local/etc/vservers/crux03 CFGDIR
> ++ cfgdir=/usr/local/etc/vservers/crux03
> ++ test '!' -e /usr/local/etc/vservers/crux03/namespace
> ++ test -e /usr/local/etc/vservers/.defaults/nonamespace -o -e /usr/local/etc/vservers/crux03/nonamespace
> ++ return 0
> ++ disableInterfaces /usr/local/etc/vservers/crux03
> ++ test -n 1
> ++ local i=2
> ++ declare -a var
> ++ lock /var/lock/vserver.interfaces
> +++ /usr/bin/mktemp /tmp/vserver-lock.XXXXXX
> ++ local tmp=/tmp/vserver-lock.XN7510
> ++ /bin/rm -f /tmp/vserver-lock.XN7510
> ++ /usr/bin/mkfifo -m600 /tmp/vserver-lock.XN7510
> ++ /usr/local/lib/util-vserver/lockfile /var/lock/vserver.interfaces /tmp/vserver-lock.XN7510
> ++ /usr/bin/grep -q true /tmp/vserver-lock.XN7510
> ++ _VS_LOCKS=7513 7478
> ++ test 2 -gt 0
> ++ let --i
> ++ eval 'var=( "${INTERFACE_CMDS_1[@]}" )'
> +++ var=("${INTERFACE_CMDS_1[@]}")
> ++ local type=IP_LINK
> ++ unset 'var[0]'
> ++ set -- eth0 up
> ++ test 1 -gt 0
> ++ let --i
> ++ :
> ++ eval 'var=( "${INTERFACE_CMDS_0[@]}" )'
> +++ var=("${INTERFACE_CMDS_0[@]}")
> ++ local type=IP_ADDR
> ++ unset 'var[0]'
> ++ set -- 172.27.12.16/21 broadcast + label eth0:c03 dev eth0
> ++ /usr/sbin/ip addr del 172.27.12.16/21 broadcast + label eth0:c03 dev eth0
> ++ test 0 -gt 0
> ++ unlock 1
> ++ local num=1
> ++ local i
> ++ set -- 7513 7478
> ++ test 2 -gt 0
> ++ kill -HUP 7513
> ++ shift
> ++ test 1 '!=' 1
> ++ break
> ++ _VS_LOCKS=7478
> ++ execScriptlets /usr/local/etc/vservers/crux03 crux03 postpost-stop
> ++ declare -r vdir=/usr/local/etc/vservers/crux03
> ++ declare -r name=crux03
> ++ declare -r flavor=postpost-stop
> ++ local base i
> ++ local DONT_SKIP_DEFAULTS=
> ++ local already_handled=
> ++ test -f /usr/local/etc/vservers/crux03/scripts/postpost-stop -a -r /usr/local/etc/vservers/crux03/scripts/postpost-stop
> ++ continue
> ++ test -f '/usr/local/etc/vservers/crux03/scripts/postpost-stop.d/*' -a -r '/usr/local/etc/vservers/crux03/scripts/postpost-stop.d/*'
> ++ continue
> ++ test -z '' -o -n ''
> ++ local DONT_SKIP_DEFAULTS=
> ++ local already_handled=
> ++ test -f /usr/local/etc/vservers/.defaults/scripts/postpost-stop -a -r /usr/local/etc/vservers/.defaults/scripts/postpost-stop
> ++ continue
> ++ test -f '/usr/local/etc/vservers/.defaults/scripts/postpost-stop.d/*' -a -r '/usr/local/etc/vservers/.defaults/scripts/postpost-stop.d/*'
> ++ continue
> ++ test -z '' -o -n ''
> + cleanup
> + set +e
> + unlock
> + local num=
> + local i
> + set -- 7478
> + test 1 -gt 0
> + kill -HUP 7478
> + shift
> + test '' '!=' 1
> + test -z ''
> + test 0 -gt 0
> + _VS_LOCKS=
> + test '!' -p ''
> _______________________________________________
> Vserver mailing list
> Vserver_at_list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Tue 05 Apr 2005 - 23:35:43 BST by hypermail 2.1.3