Debian Sarge
kernel-patch-vserver 1.9.5.3
util-vserver   0.30.204-5sarge
kernel-image-2.6.8+vserver_custom01_i386
drbd0.7-module-2.6.8+vserver_0.7.10-3+custom01_i386

Everything updated and recent from Debian stock.

Setting up a guest in the default /var/lib and /var/run worked nice.

DRBD alone works nice - as usual.

But I would like to have everything belonging to the guest on a DRBD-device, to restart the guest in case of failover on the other node.

cel600:/# cat /etc/fstab | grep drbd
/dev/drbd0 /ha-vser42 ext3 rw,user,noauto,user_xattr,errors=remount-ro 0 1

First idea was to 'build' the guest directly into /ha-vser42

cel600:/# vserver -v vs27 build --force -m debootstrap --hostname vs27.nack.at --netdev eth0 --interface 192.168.0.27/24 --context 27 sarge /ha-vser42 ftp://ftp.debian.org/debian

This does not work, and because of missing docs I could not find out what the correct options and arguments should be, or if this is possible.

After some trial and error I did 'cp -a /etc/vservers' to /ha-vser42,
mkdir /ha-vser42/var/<bla>, exchanged /etc/vservers against a symbolic link, changed the symbolic links in .defaults

cel600:/# ls -all /etc/vservers
lrwxrwxrwx 1 root root 23 2005-06-15 23:49 /etc/vservers -> /ha-vser42/etc/vservers

cel600:/# ls -all /ha-vser42/etc/vservers/.defaults
total 16
drwxr-xr-x  4 root root 4096 2005-06-16 00:56 .
drwxr-xr-x  7 root root 4096 2005-06-16 01:56 ..
drwxr-xr-x  2 root root 4096 2005-05-24 22:22 apps
drwxr-xr-x  2 root root 4096 2005-05-24 22:22 files
lrwxrwxrwx 1 root root 31 2005-06-16 00:55 run.rev -> /ha-vser42/var/run/vservers.rev lrwxrwxrwx 1 root root 27 2005-06-16 00:56 vdirbase -> /ha-vser42/var/lib/vservers

After removing all guests, I built new ones with the same method, which worked nice before on the default configuration:

cel600:/# vserver -v vs27 build --force -m debootstrap --hostname vs27.nack.at --netdev eth0 --interface 192.168.0.27/24 --context 27 -- -d sarge -m http://ftp.at.debian.org/debian/

This seemed to work nice, but is not startable:

cel600:/# vserver vs27 start
vcontext: execvp("/etc/init.d/rc"): Permission denied

Another trial:

cel600:/ha-vser42/etc/vservers/.defaults# vserver -v vs24 build --force -m debootstrap --hostname vs24.nack.at --netdev eth0 --interface 192.168.0.27/24 --context 24 -- -d sarge -m http://ftp.at.debian.org/debian/ chattr: Function not implemented while setting flags on /etc/vservers/.defaults/vdirbase/vs24
I: Retrieving debootstrap.invalid_dists_sarge_Release
[...]
I: Extracting libstdc++5...
chroot: cannot run command `mount': Permission denied
W: Failure trying to run: chroot /etc/vservers/.defaults/vdirbase/vs24 mount -tproc proc /proc
umount: /etc/vservers/.defaults/vdirbase/vs24/dev/pts: not found
umount: /etc/vservers/.defaults/vdirbase/vs24/dev/shm: not found
umount: /etc/vservers/.defaults/vdirbase/vs24/proc/bus/usb: not found
umount: /etc/vservers/.defaults/vdirbase/vs24/proc: not mounted

Hmm.

Helmut Wollmersdorfer

_______________________________________________
Vserver mailing list
[email protected]
http://list.linux-vserver.org/mailman/listinfo/vserver

Reply via email to