[Vserver] copy-on-write after unification?

From: joeytrviano <joeytriviano_at_gmail.com>
Date: Wed 03 May 2006 - 10:21:26 BST
Message-ID: <4a1c34ee0605030221i631e76abncab2469292026862@mail.gmail.com>

Hello,

I have trouble when unifying vservers and then trying to personalize unified
files

Example:
Unification of vservers vtest6 and vtest5 (vtest5 as the reference server
for vtest6)

I did:

Copy from vtest5 to vtest6:
# vserver vtest6 build -m skeleton --hostname vtest6 --interface eth0:
127.0.0.1 --interface t1=eth0:10.200.0.6 --context 6
# cp -pr vtest5/* vtest6/

Reference server declaration as described in
http://linux-vserver.org/alpha+util-vserver :
# mkdir -p /etc/vservers/vtest5/apps/vunify
# mkdir -p /etc/vservers/vtest6/apps/vunify
# ln -s /etc/vservers/vtest6 /etc/vservers/vtest5/apps/vunify/refserver.00

Unification:
# /usr/lib/util-vserver/vunify vtest6

It seems to work fine as files in both directories have same inode
But trying to modify unified files is not transparent and I have to manually
copy, delete and rename the copy:

vserver:/# vserver vtest5 enter
mesg: /dev/pts/1: Operation not permitted
vtest5:/# ls -i /tests
508984 testfile 508985 testfile2
vtest5:/# exit
logout
vserver:/# vserver vtest6 enter
mesg: /dev/pts/1: Operation not permitted
vtest6:/# ls -i /tests
508984 testfile 508985 testfile2
vtest6:/# cat > /tests/testfile
bash: /tests/testfile: Permission denied
vtest6:/#

Is there a way to make it automatic?

And would you have any info about that mesg: /dev/pts/1: Operation not
permitted occuring each time I enter a vserver?

Thanks a lot

Mehdi Bennani

=============================================

System info:

Debian 3.1 with precompiled 2.6.12lvs kernel and apt-get'ed
0.30.204util-vserver (no vserver-debiantools because it seems not to
respect new
config of vserver).

vserver:/# vserver-info
Versions:
                   Kernel: 2.6.12lvs
                   VS-API: 0x00020001
             util-vserver: 0.30.204; Dec 20 2005, 16:58:50

Features:
                       CC: gcc, gcc (GCC) 3.3.5 (Debian 1:3.3.5-13)
                      CXX: g++, g++ (GCC) 3.3.5 (Debian 1:3.3.5-13)
                 CPPFLAGS: ''
                   CFLAGS: '-Wall -g -O2 -std=c99 -Wall -pedantic -W'
                 CXXFLAGS: '-g -O2 -ansi -Wall -pedantic -W
-fmessage-length=0'
               build/host: i386-pc-linux-gnu/i386-pc-linux-gnu
             Use dietlibc: yes
       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
        sysconf-Directory: /etc
            cfg-Directory: /etc/vservers
         initrd-Directory: $(sysconfdir)/init.d
       pkgstate-Directory: /var/run/vservers
            Kernelheaders: /usr/include
          vserver-Rootdir: /var/lib/vservers

_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Wed May 3 10:22:57 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 03 May 2006 - 10:23:01 BST by hypermail 2.1.8