Discussion:
[Ultramonkey-users 103] saruのmakeに関しまして
Yuta Kiriyama
2004-12-07 02:44:27 UTC
Permalink
$BKhEY$*@$OC$K$J$C$F$*$j$^$9!"6M;3$G$9!#(B

http://ultramonkey.jp/papers/lvs_jan_2004/stuff/lvs_jan_2004.pdf
$B>e5-%I%-%e%a%s%H$r;29M$K$5$;$FD:$$$F(BActive-Active$B9=@.$K%A%c%l%s%8$7$F$$$^$9!#(B
$B$=$NCf$G(Bsaru$B$N(Bmake$B$G$D$^$E$$$F$$$k$N$G$9$,!"$I$J$?$+2TF0<***@S$N$"$kJ}$,(B
$B$$$i$C$7$c$$$^$7$?$i!"$=$N(Bmake$B$N2aDx$***@_DjCM$J$I$r$*65$(4j$($J$$$+$H(B
$B;W$$$^$7$F%a!<%k$5$;$FD:$-$^$7$?!#(B

$B%(%i!<=PNOEy$r85$K!"?'!9$HBP1~$O$7$h$&$H$7$F$$$k$N$G$9$,!"(B
FIFO$B$N%9%Z%7%c%k%U%!%$%k$r:n$k$J$I$7$F$$$k$&$A$K!"(B
$B$=$b$=$b:,K\$+$i4V0c$C$F$$$k$h$&$J5$$,$7$F$$$^$7$F!#!#!#(B






$B2<5-$KEvJ}$N:n6HFbMF5Z$S7k2L$r5-$7$^$9!#(B


OS$B$O(BRed Hat Linux 9$B%Y!<%9$G!"%+!<%M%k$r(Boutgoing_mac$BBP1~$5$;$k$?$a$K(B
2.4.20$B$G:F9=C[$7!"(Boutgoing_mac$B$NF0:n$O3NG'$7$^$7$?!#(B
ultramonkey$B$N(B2.0.1$B$N%Q%C%1!<%872$r%$%s%9%H!<%k$7!"C1BN$G$NF0:n$r3NG'$7$^$7$?!#(B

$B$=$N>e$G!"2<5-$N(BRPM$B$r%$%s%9%H!<%k$7$^$7$?!#(B
glib-devel-1.2.10-10.i386.rpm
vanessa_logger-0.0.6-1.rh.9.i386.rpm
vanessa_logger-devel-0.0.6-1.rh.9.i386.rpm
vanessa_adt-0.0.6-1.rh.9.i386.rpm
vanessa_adt-devel-0.0.6-1.rh.9.i386.rpm
vanessa_socket-0.0.6-1.rh.9.i386.rpm
vanessa_socket-devel-0.0.6-1.rh.9.i386.rpm

$B$=$7$F(Bsaru$B$N(Bmake$B$J$N$G$9$,!"(B

# ./configure
# make
# make install
$B$^$:$O2?$b%*%W%7%g%s;XDj$J$7$G$d$C$F$_$?$H$3$m(Biptables.h$B$,L5$$$H%(%i!<$,=P$^$7$?!#(B
$B$3$l$K4X$7$F$O%a!<%j%s%0%j%9%H$N2a5n%m%0$r;2>H$5$;$FD:$-!"(Biptables$B$N%=!<%9$r(B
$BE83+$7$F;XDj$9$k$3$H$K$h$C$F2sHr$9$k$3$H$H$7$^$7$?!#(B


# ./configure --with-ipt-includes=/tmp/iptables-1.2.11/include
# make
# make install
$BB3$$$F$3$N$h$&$K$7$?$H$3$m!"2<5-$N$h$&$J%(%i!<$,=P$^$7$?!#(B
`NONE/lib/modules/2.4.20/kernel/net/ipv4/netfilter'
must be an absolute directory name

"NONE"$B$H$$$&J8;zNs$,M>7W$@$J$H!"(B
configure$B%U%!%$%k$N3:EvItJ,$r2<5-$N$h$&$K=q$-49$($F:FEY<B9T$7$?$H$3$m!"(B
$B$H$j$"$($:%(%i!<$O$J$/%$%s%9%H!<%k$,=*N;$7$^$7$?!#(B
==========================================================================================
#module_install_path="${prefix}/lib/modules/${kernel_release}/kernel/net/ipv4/netfilter"
module_install_path="/lib/modules/${kernel_release}/kernel/net/ipv4/netfilter"
==========================================================================================




$BB3$$$F(Bsaru$B$r5/F0$7$^$7$?!#$=$N:]$***@_Dj%U%!%$%k$O2<5-$NDL$j$G$9!#(B

[/etc/ha.d/ha.cf] (172.16.54.1$B$OD>6a$N%k!<%?$G$"$j!"(BGW$B$G$9(B)
==========================================================================================
logfacility local0

mcast eth0 225.0.0.1 694 1 1
ping 172.16.54.1
node lvs1
node lvs2

respawn root /usr/local/sbin/saru
==========================================================================================

[/etc/ha.d/haresources] ($B6u%U%!%$%k(B)
==========================================================================================
==========================================================================================

[/usr/local/etc/saru/saru.conf] ($B%G%P%C%0%b!<%I(B)
==========================================================================================
-d
==========================================================================================

$B$9$k$H!"2<5-$N%(%i!<$,=PNO$5$l$^$7$?!#(B

Dec 6 16:52:09 lvs1 saru[9148]: saru[9148]: saru_join_cluster: signon:
Cannot lock FIFO for saru_1: Permission denied hb_api_signon:
Can't open reply fifo /var/lib/heartbeat/api/saru_1.rsp

[saru_1.rsp]$B$rC5$7$?$H$3$m!"(B[/usr/local/var/lib/heartbeat/api/]
$B$KB8:_$7$F$$$?$?$a!"(B[/var/lib/heartbeat/api/]$B$K:***@.$7$J$*$7$^$7$?!#(B

# cd /var/lib/heartbeat/api
# mkfifo -m 200 saru_1.req
# mkfifo -m 600 saru_1.rsp
# chown hacluster:haclient saru_1*




$B$=$N>e$G:FEY(Bsaru$B$r5/F0$7$F$_$?$H$3$m!"(B
ERROR: Client mismatch! (impersonation?) $B$H$$$&%(%i!<$,=PNO$5$l$F$7$^$$$^$7$?!#(B
$B$=$NA08e$N%m%0$O2<5-$NDL$j$G$9!#(B

==========================================================================================
Dec 7 09:23:42 lvs1 heartbeat[17786]: info: Exiting /usr/local/sbin/saru process 17788 returned rc 0.
Dec 7 09:23:42 lvs1 heartbeat[17786]: info: Exiting /usr/local/sbin/saru process 17788 returned rc 0.
Dec 7 09:23:42 lvs1 heartbeat[17786]: info: Respawning client /usr/local/sbin/saru:
Dec 7 09:23:42 lvs1 heartbeat[17786]: info: Respawning client /usr/local/sbin/saru:
Dec 7 09:23:42 lvs1 heartbeat[17786]: info: Starting child client /usr/local/sbin/saru (0,0)
Dec 7 09:23:42 lvs1 heartbeat[17786]: info: Starting child client /usr/local/sbin/saru (0,0)
Dec 7 09:23:42 lvs1 saru[17803]: saru[17803]: version=0.0.1, debug=on, clear=off, clear_all=off, config_file="/usr/local/etc/saru/saru.conf", id="1",
init_pause="30", log_facility="local0", no_daemon=off, quiet=off, state_timeout="7",
Dec 7 09:23:42 lvs1 saru[17803]: saru[17803]: version=0.0.1, debug=on, clear=off, clear_all=off, config_file="/usr/local/etc/saru/saru.conf", id="1",
init_pause="30", log_facility="local0", no_daemon=off, quiet=off, state_timeout="7",
Dec 7 09:23:42 lvs1 saru[17803]: saru[17803]: Got seed for random number generator from "/dev/random": 1332378176
Dec 7 09:23:42 lvs1 saru[17803]: saru[17803]: Connecting to cluster. This may block if heartbeat is not running
Dec 7 09:23:42 lvs1 heartbeat[17786]: debug: StartNextRemoteRscReq(): child count 1
Dec 7 09:23:42 lvs1 saru[17804]: saru[17804]: saru_setid: uid=500 euid=500 gid=65 egid=65
Dec 7 09:23:42 lvs1 saru[17804]: saru[17804]: set node_name=lvs1, generation=86
Dec 7 09:23:42 lvs1 saru[17804]: saru[17804]: node type: ping=1 normal=0 unknown=0
Dec 7 09:23:42 lvs1 saru[17804]: saru[17804]: heartbeat status: up=0 init=0 active=0 ping=1 dead=0 unknown=0
Dec 7 09:23:42 lvs1 saru[17804]: saru[17804]: saru status: join=0 leave=0 unknown=1
Dec 7 09:23:42 lvs1 saru[17804]: saru[17804]: node status: join=0 leave=0 unknown=1
Dec 7 09:23:42 lvs1 saru[17804]: saru[17804]: 172.16.54.1 state=f0f008 since=41b4f80e id=0 weight=0 mode=s
Dec 7 09:23:42 lvs1 saru[17804]: saru[17804]: node type: ping=1 normal=1 unknown=0
Dec 7 09:23:42 lvs1 saru[17804]: saru[17804]: heartbeat status: up=0 init=0 active=1 ping=1 dead=0 unknown=0
Dec 7 09:23:42 lvs1 saru[17804]: saru[17804]: saru status: join=0 leave=0 unknown=1
Dec 7 09:23:42 lvs1 saru[17804]: saru[17804]: node status: join=0 leave=0 unknown=1
Dec 7 09:23:42 lvs1 saru[17804]: saru[17804]: lvs2 state=000004 since=41b4f80e id=0 weight=0 mode=s
Dec 7 09:23:42 lvs1 saru[17804]: saru[17804]: 172.16.54.1 state=f0f008 since=41b4f80e id=0 weight=0 mode=s
Dec 7 09:23:42 lvs1 saru[17804]: saru[17804]: node type: ping=1 normal=2 unknown=0
Dec 7 09:23:42 lvs1 saru[17804]: saru[17804]: heartbeat status: up=0 init=0 active=2 ping=1 dead=0 unknown=0
Dec 7 09:23:42 lvs1 saru[17804]: saru[17804]: saru status: join=0 leave=0 unknown=1
Dec 7 09:23:42 lvs1 saru[17804]: saru[17804]: node status: join=0 leave=0 unknown=1
Dec 7 09:23:42 lvs1 saru[17804]: saru[17804]: lvs1 state=000004 since=41b4f80e id=0 weight=0 mode=s
Dec 7 09:23:42 lvs1 saru[17804]: saru[17804]: lvs2 state=000004 since=41b4f80e id=0 weight=0 mode=s
Dec 7 09:23:42 lvs1 saru[17804]: saru[17804]: 172.16.54.1 state=f0f008 since=41b4f80e id=0 weight=0 mode=s
Dec 7 09:23:42 lvs1 saru[17804]: saru[17804]: init_pause 30 seconds
Dec 7 09:23:42 lvs1 heartbeat[17789]: info: No local resources [/usr/lib/heartbeat/ResourceManager listkeys lvs1]
Dec 7 09:23:42 lvs1 heartbeat[17789]: info: No local resources [/usr/lib/heartbeat/ResourceManager listkeys lvs1]
Dec 7 09:23:42 lvs1 heartbeat[17789]: info: Resource acquisition completed.
Dec 7 09:23:42 lvs1 heartbeat[17789]: info: Resource acquisition completed.
Dec 7 09:23:43 lvs1 heartbeat[17802]: info: Starting /usr/local/sbin/saru as uid 0 gid 0 (pid 17802)
Dec 7 09:23:43 lvs1 heartbeat[17802]: info: Starting /usr/local/sbin/saru as uid 0 gid 0 (pid 17802)
Dec 7 09:23:43 lvs1 heartbeat[17786]: info: Exiting /usr/local/sbin/saru process 17802 returned rc 0.
Dec 7 09:23:43 lvs1 heartbeat[17786]: info: Exiting /usr/local/sbin/saru process 17802 returned rc 0.
Dec 7 09:23:43 lvs1 heartbeat[17786]: info: Respawning client /usr/local/sbin/saru:
Dec 7 09:23:43 lvs1 heartbeat[17786]: info: Respawning client /usr/local/sbin/saru:
Dec 7 09:23:43 lvs1 heartbeat[17786]: info: Starting child client /usr/local/sbin/saru (0,0)
Dec 7 09:23:43 lvs1 heartbeat[17786]: info: Starting child client /usr/local/sbin/saru (0,0)
Dec 7 09:23:43 lvs1 saru[17811]: saru[17811]: version=0.0.1, debug=on, clear=off, clear_all=off, config_file="/usr/local/etc/saru/saru.conf", id="1",
init_pause="30", log_facility="local0", no_daemon=off, quiet=off, state_timeout="7",
Dec 7 09:23:43 lvs1 saru[17811]: saru[17811]: version=0.0.1, debug=on, clear=off, clear_all=off, config_file="/usr/local/etc/saru/saru.conf", id="1",
init_pause="30", log_facility="local0", no_daemon=off, quiet=off, state_timeout="7",
Dec 7 09:23:43 lvs1 saru[17811]: saru[17811]: Got seed for random number generator from "/dev/random": 2225438329
Dec 7 09:23:43 lvs1 saru[17811]: saru[17811]: Connecting to cluster. This may block if heartbeat is not running
Dec 7 09:23:43 lvs1 saru[17812]: saru[17812]: saru_setid: uid=500 euid=500 gid=65 egid=65
Dec 7 09:23:43 lvs1 saru[17812]: saru[17812]: set node_name=lvs1, generation=86
Dec 7 09:23:43 lvs1 heartbeat[17786]: ERROR: Client mismatch! (impersonation?)
Dec 7 09:23:43 lvs1 heartbeat[17786]: ERROR: Client mismatch! (impersonation?)
Dec 7 09:23:43 lvs1 heartbeat[17786]: info: pids (17812 vs 17804), Client IDs (saru_1 vs saru_1)
Dec 7 09:23:43 lvs1 heartbeat[17786]: info: pids (17812 vs 17804), Client IDs (saru_1 vs saru_1)
==========================================================================================

$B0J>e(B
--
==========================
$B6M;3(B $BM:Bg(B
***@u-jp.com
==========================
KUROSAWA Takahiro
2004-12-07 09:56:12 UTC
Permalink
$B9u_7$G$9!%(B

On 7 Dec 2004 11:44:27 +0900
Post by Yuta Kiriyama
$B$=$N>e$G:FEY(Bsaru$B$r5/F0$7$F$_$?$H$3$m!"(B
ERROR: Client mismatch! (impersonation?) $B$H$$$&%(%i!<$,=PNO$5$l$F$7$^$$$^$7$?!#(B
$B$=$NA08e$N%m%0$O2<5-$NDL$j$G$9!#(B
$B$3$N%(%i!<$,=PNO$5$l$k$N$O!$%m%0$r8+$k8B$j(B saru $B$N5/F0$,Fs=E$K$J$C$F(B
$B$7$^$C$F$$$k$3$H$@$H;W$$$^$9!%(B

saru $B$r(B heartbeat $B$+$i(B respawn $B;XDj$G5/F0$5$;$k>l9g$O!$(Bsaru.conf $B$G(B
no_daemon $B$r;XDj$7$F$/$@$5$$!%(Bsaru $B$r(B heartbeat $B$+$i5/F0$9$k>l9g$K!$(B
$B%G!<%b%s$H$7$F5/F0$9$k$***@5$7$/F0:n$7$^$;$s!%(B

$B$J$*!$(Bsaru.conf $B$G$O%3%^%s%I%i%$%s%*%W%7%g%s$H0c$$!$(B- $B$OITMW$G$9!%(B

----
VA Linux Systems $B%8%c%Q%s(B $B5;=QIt(B
$B9u_7(B $B?r9((B <***@valinux.co.jp>

Loading...