Re: [vserver] HA vserver in an active/active configuration

From: Daniel Hokka Zakrisson <daniel_at_hozac.com>
Date: Wed 05 Mar 2008 - 12:27:42 GMT
Message-ID: <33608.192.168.102.6.1204720062.squirrel@intranet>

Christian Balzer wrote:
>
> Hello,
>
> Now that I actually got the hardware und things up and running...
>
> On Sun, 3 Feb 2008 11:43:44 +0100 (CET) Daniel Hokka Zakrisson wrote:
>
>> Christian Balzer wrote:
> [stuff about how to deal with the config files]
>>
>> vserver /path/to/config start is supposed to work. If it doesn't, it's a
>> bug that will be fixed.
>>
> I'm not sure if it's a bug per se, since it works on one half, but not the
> other...
>
> First of, I have 2 nodes, and 2 HA controlled filesystems, data-a and
> data-b respectively. There is a sub-directory "guests" in both and that in
> turn holds an "etc" and a "vservers" one, it should be obvious what they
> are. :-p
>
> If I do a "vserver /data-a/guests/etc/engtest04 start" with data-a mounted
> on node A, all is fine. On node A /etc/vservers is a symlink
> to /data-a/guests/etc/, so that for normal operations (both nodes
> up) things work out of the box w/o having to supply the path.
> On node B it's obviously pointing to /data-b/...

You actually want to keep /etc/vservers as a separate directory, or if you
have configuration there you want to share, add /data-a and /data-b to
/etc/vservers/.defaults/namespace-cleanup-skip.

> However if I fail things over onto node B, this happens:
> ---
> borg00b:~# vserver /data-a/guests/etc/engtest04 start
> save_ctxinfo:
> symlink("/data-a/guests/etc/engtest04","/etc/vservers/.defaults/run.rev/10001"):
> No such file or directory
> ----
> Which is a blatant lie, as /etc/vservers/.defaults/run.rev/ exists very
> much and so does of course /data-a/guests/etc/engtest04.
> Any idea what is going on here?
>
> Am I really doomed to rsync the whole configs back and forth all the time?
> Anybody with success stories for split vserver configs and vdirbases?
>
> For completeness sake, a ls of that config directory, nothing fancy going
> on really:
> ---
> borg00a:~# ls -la /data-a/guests/etc/engtest04/
> total 36
> drwxr-xr-x 6 root root 4096 2008-03-05 16:29 .
> drwxr-xr-x 5 root root 4096 2008-03-05 17:53 ..
> drwxr-xr-x 4 root root 4096 2008-03-03 17:02 apps
> lrwxrwxrwx 1 root root 43 2008-03-03 17:02 cache ->
> /etc/vservers/.defaults/cachebase/engtest04
> -rw-r--r-- 1 root root 6 2008-03-03 17:02 context
> drwxr-xr-x 2 root root 4096 2008-03-03 17:02 cpuset
> -rw-r--r-- 1 root root 112 2008-03-03 17:02 fstab
> drwxr-xr-x 4 root root 4096 2008-03-03 17:08 interfaces
> -rw-r--r-- 1 root root 10 2008-03-03 17:02 name
> lrwxrwxrwx 1 root root 27 2008-03-03 17:02 run ->
> /var/run/vservers/engtest04
> drwxr-xr-x 2 root root 4096 2008-03-03 17:02 uts
> lrwxrwxrwx 1 root root 33 2008-03-05 16:29 vdir ->
> /data-a/guests/vservers/engtest04
> ---
>
> Regards,
>
> Christian

-- 
Daniel Hokka Zakrisson
Received on Wed Mar 5 12:28:01 2008
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 05 Mar 2008 - 12:28:04 GMT by hypermail 2.1.8