Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Japanese

Heartbeat3$B$G3+$+$l(B$B$k%]!<%H$K$D$$$F(B

 

 

Linux-HA japanese RSS feed   Index | Next | Previous | View Threaded


beniya at bit-isle

May 16, 2011, 1:40 AM

Post #1 of 1 (186 views)
Permalink
Heartbeat3$B$G3+$+$l(B$B$k%]!<%H$K$D$$$F(B

$B=i$a$^$7$F!"9HC+$H?=$7$^$9!#(B

$B8=:_!"(BHeartbeat3+Pacemaker$B$G(BHA$B$rAH$s$G$*$j$^$9!#(Bnetstat$B$rD/$a$F$$$?$i(B
$B5$$K$J$kE@$,$"$C$?$N$G3'MM$N$40U8+$rD:$1$l$P$H;W$$!"Ej9F$7$^$7$?!#(B

$B"#(BIP
hoge1
eth0 203.0.113.1
eth1 10.0.9.210
eth2 172.16.0.1
hoge2
eth0 203.0.113.2
eth1 10.0.9.211
eth2 172.16.0.2

2$B$D$N%W%i%$%Y!<%HLV$G(Bheartbeat$B$r8r49$7$F$$$^$9!#(Bnetstat$B$r8+$F$_$k$H!"(B
$B$=$l$>$l$N%5!<%P$G(Budp694$B$H%O%$%]!<%H$,(B0.0.0.0$B$G(B2$B$D3+$1$i$l!"%O%$%]!<%H(B
$B$,(Bheartbeat$B%Q%1%C%H$N%=!<%9%]!<%H$K$J$C$F$$$^$9!#(B
nmap$B$G8+$k$H!V(Bopen|filtered$B!W$H$J$j!"6u$$$F$=$&$J7k2L$bF@$i$l$^$9!#(B

$B3'MM$O$3$N%O%$%]!<%H$r$I$&$5$l$F$$$^$9$G$7$g$&$+!)(BFirewall$B$G:I$2$P:Q$`(B
$BOC$G$O$"$j$^$9$,!"B>$KJD$8$k<jCJ$,$"$l$P$J$!$H;W$C$F$*$j$^$9!#(B

$B3'MM$N$40U8+$rD:$1$l$P9,$$$G$9!#(B
$B0J>e!"$h$m$7$/$*4j$$$7$^$9!#(B


$B0J2<!"%3%^%s%I$N7k2LEy(B

$B"#(Bha.cf
====================================================================================================
crm yes
logfile /var/log/ha.log
logfacility local0
keepalive 1
warntime 5
deadtime 10
udpport 694
mcast eth1 239.0.0.1 694 1 0
mcast eth2 239.0.0.2 694 1 0
node hoge1
node hoge2
====================================================================================================

$B"#(Bnetstat
====================================================================================================
root [at] hoge:~# netstat -nap --udp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
udp 0 0 239.0.0.2:694 0.0.0.0:* 19246/heartbeat: wr
udp 0 0 239.0.0.1:694 0.0.0.0:* 19244/heartbeat: wr
udp 0 0 0.0.0.0:53945 0.0.0.0:* 19246/heartbeat: wr
udp 0 0 0.0.0.0:38781 0.0.0.0:* 19244/heartbeat: wr

root [at] hoge:~# netstat -nap --udp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
udp 0 0 239.0.0.2:694 0.0.0.0:* 21878/heartbeat: wr
udp 0 0 239.0.0.1:694 0.0.0.0:* 21876/heartbeat: wr
udp 1120 0 0.0.0.0:33302 0.0.0.0:* 21876/heartbeat: wr
udp 2240 0 0.0.0.0:44321 0.0.0.0:* 21878/heartbeat: wr
====================================================================================================

$B"#(Btcpdump
====================================================================================================
root [at] hoge:~# tcpdump -ni eth1 port 38781
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth1, link-type EN10MB (Ethernet), capture size 65535 bytes
16:44:25.640260 IP 10.0.9.210.38781 > 239.0.0.1.694: UDP, length 211
16:44:26.641209 IP 10.0.9.210.38781 > 239.0.0.1.694: UDP, length 211
16:44:27.642257 IP 10.0.9.210.38781 > 239.0.0.1.694: UDP, length 211
16:44:28.643265 IP 10.0.9.210.38781 > 239.0.0.1.694: UDP, length 211
16:44:29.644435 IP 10.0.9.210.38781 > 239.0.0.1.694: UDP, length 211

root [at] hoge:~# tcpdump -ni eth2 port 53945
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth2, link-type EN10MB (Ethernet), capture size 65535 bytes
16:44:38.644368 IP 172.16.0.1.53945 > 239.0.0.2.694: UDP, length 211
16:44:39.645460 IP 172.16.0.1.53945 > 239.0.0.2.694: UDP, length 211
16:44:40.646420 IP 172.16.0.1.53945 > 239.0.0.2.694: UDP, length 206
16:44:40.646447 IP 172.16.0.1.53945 > 239.0.0.2.694: UDP, length 211
16:44:41.647418 IP 172.16.0.1.53945 > 239.0.0.2.694: UDP, length 211
====================================================================================================
root [at] hoge:~# tcpdump -ni eth1 port 33302
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth1, link-type EN10MB (Ethernet), capture size 65535 bytes
15:05:28.771098 IP 10.0.9.211.33302 > 239.0.0.1.694: UDP, length 211
15:05:29.772038 IP 10.0.9.211.33302 > 239.0.0.1.694: UDP, length 211
15:05:30.773429 IP 10.0.9.211.33302 > 239.0.0.1.694: UDP, length 211
15:05:31.774360 IP 10.0.9.211.33302 > 239.0.0.1.694: UDP, length 211
15:05:32.775716 IP 10.0.9.211.33302 > 239.0.0.1.694: UDP, length 211

root [at] hoge:~# tcpdump -ni eth2 port 44321
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth2, link-type EN10MB (Ethernet), capture size 65535 bytes
15:05:14.775475 IP 172.16.0.2.44321 > 239.0.0.2.694: UDP, length 211
15:05:15.215703 IP 172.16.0.2.44321 > 239.0.0.2.694: UDP, length 206
15:05:15.776465 IP 172.16.0.2.44321 > 239.0.0.2.694: UDP, length 211
15:05:16.777411 IP 172.16.0.2.44321 > 239.0.0.2.694: UDP, length 211
15:05:17.778548 IP 172.16.0.2.44321 > 239.0.0.2.694: UDP, length 206
====================================================================================================

$B"#(Bnmap
====================================================================================================
test# nmap -sU 203.0.113.1 -p 694,38781,53945

Starting Nmap 5.50 ( http://nmap.org ) at 2008-12-18 05:49 JST
Nmap scan report for 14.128.30.3
Host is up (0.00049s latency).
PORT STATE SERVICE
694/udp closed ha-cluster
38781/udp open|filtered unknown
53945/udp open|filtered unknown

Nmap done: 1 IP address (1 host up) scanned in 1.50 seconds
====================================================================================================
test# nmap -sU 203.0.113.2 -p 694,33302,44321

Starting Nmap 5.50 ( http://nmap.org ) at 2008-12-18 05:49 JST
Nmap scan report for 14.128.30.4
Host is up (0.00066s latency).
PORT STATE SERVICE
694/udp closed ha-cluster
33302/udp open|filtered unknown
44321/udp open|filtered unknown

Nmap done: 1 IP address (1 host up) scanned in 1.51 seconds
====================================================================================================

--
Tomoki BENIYA <beniya [at] bit-isle>

_______________________________________________
Linux-ha-japan mailing list
Linux-ha-japan [at] lists
http://lists.sourceforge.jp/mailman/listinfo/linux-ha-japan

Linux-HA japanese RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.