Thu, 04 Sep 2008 12:05:32 +0200
> depending on _how_ you share the 'root fs' it might
> destroy the benefit of unification ...
>
> I'd be interested in the output of 'stat /bin/bash'
> (assuming that /bin/bash is shared) for two guests
> on the same host
>
> best,
> Herbert
>
hum it seems hashify has some issue on my system:
Sep 4 11:42:10 AQ-00-0001 kernel: vhashify[16897:#0]: segfault at
ffffffffffffffff rip 0000000000405707 rsp 00007fff3c1983c0 error 6
Sep 4 11:42:10 AQ-00-0001 kernel: vhashify[16931:#0]: segfault at
ffffffffffffffff rip 0000000000405707 rsp 00007fff686a38c0 error 6
Sep 4 11:43:27 AQ-00-0001 kernel: vhashify[16965:#0]: segfault at
ffffffffffffffff rip 0000000000405707 rsp 00007fff823df600 error 6
Sep 4 11:49:31 AQ-00-0001 kernel: vhashify[17100:#0]: segfault at
ffffffffffffffff rip 0000000000405707 rsp 00007fff2ebd2df0 error 6
Sep 4 11:49:55 AQ-00-0001 kernel: vhashify[17135:#0]: segfault at
ffffffffffffffff rip 0000000000405707 rsp 00007ffffeb39d60 error 6
AQ-00-0001:~# vserver fai01 hashify
Erreur de segmentation
Versions:
Kernel: 2.6.22.19-vs2.2.0.7
VS-API: 0x00020200
util-vserver: 0.30.215; Sep 3 2008, 17:11:29
Features:
CC: gcc, gcc (GCC) 4.1.2 20061115 (prerelease)
(Debian 4.1.1-21)
CXX: g++, g++ (GCC) 4.1.2 20061115 (prerelease)
(Debian 4.1.1-21)
CPPFLAGS: ''
CFLAGS: '-g -O2 -std=c99 -Wall -pedantic -W
-funit-at-a-time'
CXXFLAGS: '-g -O2 -ansi -Wall -pedantic -W
-fmessage-length=0 -funit-at-a-time'
build/host: x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu
Use dietlibc: yes
Build C++ programs: yes
Build C99 programs: yes
Available APIs: v13,net,v21,v22,v23,netv2
ext2fs Source: e2fsprogs
syscall(2) invocation: alternative
vserver(2) syscall#: 236/glibc
crypto api: beecrypt
Paths:
prefix: /usr/local
sysconf-Directory: ${prefix}/etc
cfg-Directory: ${prefix}/etc/vservers
initrd-Directory: /etc/init.d
pkgstate-Directory: ${prefix}/var/run/vservers
vserver-Rootdir: /vservers
/dev/etherd/e10.1 on /vservers type ocfs2
(rw,_netdev,noatime,heartbeat=local)
CTX PROC VSZ RSS userTIME sysTIME UPTIME NAME
100 1 9.1M 652K 0m00s08 0m00s24 0m09s20 fai01
101 1 9.1M 652K 0m00s12 0m00s28 0m03s95 fai02
AQ-00-0001:~# free
total used free shared buffers cached
Mem: 1022768 75936 946832 0 8680 32676
-/+ buffers/cache: 34580 988188
Swap: 3903712 0 3903712
AQ-00-0001:~# ls -al /usr/local/etc/vservers/.defaults/apps/vunify/hash/
total 16
drwxr-sr-x 2 root staff 4096 2008-09-04 11:42 .
drwxr-sr-x 3 root staff 4096 2008-09-03 17:12 ..
-rw-r--r-- 1 root staff 4 2008-09-04 11:42 blocks
-rw-r--r-- 1 root staff 6 2008-09-04 11:42 method
lrwxrwxrwx 1 root staff 15 2008-09-04 11:30 root -> /vservers/.hash
here is a strace:
[pid 17796] execve("/usr/local/sbin/vnamespace",
["/usr/local/sbin/vnamespace", "--enter", "101", "--",
"/usr/local/sbin/vspace", "--enter", "101", "--",
"/usr/local/sbin/vtag", "--migrate", "--tag", "101", "--silent", "--",
"/usr/local/sbin/vcontext", "--silent", "--migrate", "--chroot",
"--xid", "101", "--uid", "0", "--", "sh", "-c", "cat
/var/lib/dpkg/info/*.conffil"...], ["INIT_CWD=/", "TERM=xterm",
"SHELL=/bin/bash", "SSH_CLIENT=192.168.1.247 12172 2"...,
"SSH_TTY=/dev/pts/1", "USER=root",
"SSH_AUTH_SOCK=/tmp/ssh-YzztNM368"..., "MAIL=/var/mail/root",
"PATH=/usr/local/sbin:/usr/local/"...,
"PWD=/usr/local/etc/vservers/fai0"..., "LANG=C", "SHLVL=1",
"HOME=/root", "LOGNAME=root", "SSH_CONNECTION=192.168.1.247 121"...]) = 0
[pid 17796] vserver(0, 0x3f, 0, 0, 0) = 131584
[pid 17796] vserver(0x10000, 0, 0, 0, 0) = 50333617
[pid 17796] vserver(0xa010001, 0x65, 0x7fffc0469ed0, 0, 0) = 0
[pid 17796] execve("/usr/local/sbin/vspace", ["/usr/local/sbin/vspace",
"--enter", "101", "--", "/usr/local/sbin/vtag", "--migrate", "--tag",
"101", "--silent", "--", "/usr/local/sbin/vcontext", "--silent",
"--migrate", "--chroot", "--xid", "101", "--uid", "0", "--", "sh", "-c",
"cat /var/lib/dpkg/info/*.conffil"...], ["INIT_CWD=/", "TERM=xterm",
"SHELL=/bin/bash", "SSH_CLIENT=192.168.1.247 12172 2"...,
"SSH_TTY=/dev/pts/1", "USER=root",
"SSH_AUTH_SOCK=/tmp/ssh-YzztNM368"..., "MAIL=/var/mail/root",
"PATH=/usr/local/sbin:/usr/local/"...,
"PWD=/usr/local/etc/vservers/fai0"..., "LANG=C", "SHLVL=1",
"HOME=/root", "LOGNAME=root", "SSH_CONNECTION=192.168.1.247 121"...]) = 0
[pid 17796] vserver(0, 0x3f, 0, 0, 0) = 131584
[pid 17796] vserver(0x10000, 0, 0, 0, 0) = 50333617
[pid 17796] vserver(0xa010001, 0x65, 0x7fffc0469f20, 0, 0) = 0
[pid 17796] execve("/usr/local/sbin/vtag", ["/usr/local/sbin/vtag",
"--migrate", "--tag", "101", "--silent", "--",
"/usr/local/sbin/vcontext", "--silent", "--migrate", "--chroot",
"--xid", "101", "--uid", "0", "--", "sh", "-c", "cat
/var/lib/dpkg/info/*.conffil"...], ["INIT_CWD=/", "TERM=xterm",
"SHELL=/bin/bash", "SSH_CLIENT=192.168.1.247 12172 2"...,
"SSH_TTY=/dev/pts/1", "USER=root",
"SSH_AUTH_SOCK=/tmp/ssh-YzztNM368"..., "MAIL=/var/mail/root",
"PATH=/usr/local/sbin:/usr/local/"...,
"PWD=/usr/local/etc/vservers/fai0"..., "LANG=C", "SHLVL=1",
"HOME=/root", "LOGNAME=root", "SSH_CONNECTION=192.168.1.247 121"...]) = 0
[pid 17796] vserver(0, 0x3f, 0, 0, 0) = 131584
[pid 17796] vserver(0x10000, 0, 0, 0, 0) = 50333617
[pid 17796] execve("/usr/local/sbin/vcontext",
["/usr/local/sbin/vcontext", "--silent", "--migrate", "--chroot",
"--xid", "101", "--uid", "0", "--", "sh", "-c", "cat
/var/lib/dpkg/info/*.conffil"...], ["INIT_CWD=/", "TERM=xterm",
"SHELL=/bin/bash", "SSH_CLIENT=192.168.1.247 12172 2"...,
"SSH_TTY=/dev/pts/1", "USER=root",
"SSH_AUTH_SOCK=/tmp/ssh-YzztNM368"..., "MAIL=/var/mail/root",
"PATH=/usr/local/sbin:/usr/local/"...,
"PWD=/usr/local/etc/vservers/fai0"..., "LANG=C", "SHLVL=1",
"HOME=/root", "LOGNAME=root", "SSH_CONNECTION=192.168.1.247 121"...]) = 0
[pid 17796] rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0
[pid 17796] chroot(".") = 0
[pid 17796] vserver(0, 0x3f, 0, 0xffffffffffffffff, 0) = 131584
[pid 17796] vserver(0x10000, 0, 0, 0xffffffffffffffff, 0) = 50333617
[pid 17796] vserver(0xa040000, 0, 0x7fffc0469e80, 0xffffffffffffffff, 0) = 0
[pid 17796] vserver(0xa010001, 0x65, 0x7fffc0469e70, 0xffffffffffffffff,
0) = 0
[pid 17796] vserver(0xb010001, 0x65, 0x7fffc0469eb0, 0xffffffffffffffff,
0upeek: ptrace(PTRACE_PEEKUSER,17796,120,0): No such process
Process 17793 resumed
Process 17796 detached
Running on debian etch and a half with vanilla kernel build with
vserver, Any idea ?
--
Cordialement,
Ghislain
["application/x-pkcs7-signature" not shown]