[Csync2] Hostnames in Host List of Configuration File

Clifford Wolf clifford at clifford.at
Wed Feb 22 12:22:47 CET 2006


Hi,

On Tue, Feb 21, 2006 at 04:23:55PM +0000, Aaron Randall wrote:
> I have a cluster of servers, all with the same host name, which cannot 
> be changed for various reasons.  Is there a way of defining hosts with 
> the same host name?  For example, by their IP address?

When csync is called with '-N <hostname>' it does not look up the local
hostname bu is using the provided hostname instead.

That way you can use seperate hostnames for csync2 only and map those to
the host ip adresses in your /etc/hosts file or DNS server.

But then you must _always_ run csync2 with this -N option (the inetd daemon as
well as from the command line).

I can add support for a /etc/csync2.hostname file which contains the
hostname to be used by csync2. Then csync2 would use the content of this
file instead of the real local hostname if the file exists. Would that
help in your case?

yours,
 - clifford

-- 
bash -c "gcc -o mysdldemo -Wall -O2 -lSDL -lm -pthread -x c <( echo -e '
#include <SDL/SDL.h>\n#include <complex.h>\nint main(){SDL_Surface*s;SDL_Event
e;int x,y,n;SDL_Init(SDL_INIT_VIDEO);s=SDL_SetVideoMode(640,480,32,0);for(x=0;
x<640;x++)for(y=0;y<480;y++){float _Complex z=0, c=((x-400)/200.0) + ((y-240)/
200.0)*1.0fi;for(n=1;n<64;n++){z=z*z+c;if(cabsf(z)>2){((Uint32*)s->pixels)[x+y
*640]=n<<3;n=99;}}}SDL_UpdateRect(s,0,0,s->w,s->h);do SDL_WaitEvent(&e); while
(e.type!=SDL_QUIT&&e.type!=SDL_KEYDOWN);SDL_Quit();return 0;}' ); ./mysdldemo"
 
Caffeine for mind, pizza for body, sushi for soul.
 


More information about the Csync2 mailing list