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

From: Herbert Poetzl (herbert_at_13thfloor.at)
Date: Thu 16 Jun 2005 - 02:38:22 BST


On Thu, Jun 16, 2005 at 03:04:10AM +0200, Helmut Wollmersdorfer wrote:
> 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

I'd advise to update to 2.0-rc4 and 0.30.207
(IIRC, the latter one should be in broken^Wunstable :)

> 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.

a single guest, or the /vservers (/var/lib/vservers
on debian) path?

> 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

should work fine with /dev/drbd0 mounted at /var/lib/vservers
but might give 'unexpected' issues on /var/lib/vservers/ha-vser42
(the common path for vservers is configured at build time, and
for debian this is /var/lib/vservers)
 
> 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.

http://linux-vserver.org/alpha+util-vserver

> 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

why the heck /etc/vservers? those are the config files,
and I doubt you want to put those into the drbd?

> 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

just means that your /etc/init.d/rc inside the guest
could not be executed by the default init style ...
(see the Flower Page for more details)

> 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

also make sure that your debootstrap is not
buggy or some 'special' security is keeping
you from installing a 'working' debian system
with debootstrap ...

if those 'unusual' permission denied messages
(please check the kernel logs for more info)
remain after updating, please let us know as
it might be an issue which results from the
combination of drbd and linux-vserver ...

(i.e. we will look into it)

> 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.

HTH,
Herbert

> Helmut Wollmersdorfer
>
> _______________________________________________
> 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 Thu 16 Jun 2005 - 02:38:45 BST by hypermail 2.1.3