$B$^$?$^$?>>K\$G$9!#(B
$B$@$$$V$*A{$,$;$7$F$^$9$M!#(B
$B$^$:$OE:IU%U%!%$%k$G$9$,!"(B
- ha.cf $B"*(B 2$BBf$H$bF1$8$b$N(B
- add_ipaddr.xml $B"*(B web$B$=$N$^$^$G$9(B at
http://linux-ha.org/ja/Install_ja#head-308e6c532e950e60127c600ceeff54b4fbf8190e - node1/2 $B$=$l$>$l$N%m%0(B
$B$=$7$F!"$4$a$s$J$5$$;v$J$N$G$9$,!":#$^$G$H(B node1/2 $B$,5U$K$J$C$F$7$^$$$^$7$?!#!#!#(B
($B5$$,IU$/$N$,CY$+$C$?!&!&!&4@(B)
$B$G$9$N$G!"(B
node1 $B"*(B XenDomU(CentOS4.6)
node2 $B"*(B $B%j%"%k%5!<%P(B(CentOS5.2)
$B$H$J$C$F$$$^$9!#(B
$BA0Ds$H$7$F$O!"(B
$BN>%N!<%I$H$b0J2<$N%U%!%$%k$r:o=|$+$i;O$a$^$7$?!#(B
rm /var/lib/heartbeat/crm/*
rm /var/lib/heartbeat/hb*
rm /var/lib/heartbeat/hostcache
$B%7%J%j%*$H$7$F$O!"0J9_$J<j=g$G$9!#(B
$B%N!<%IL>$J$I$O%m!<%+%k$J$N$G8x3+$7$F$b9=$o$J$$$N$G$9$1$I!"G0$N$?$a$H$$$&;v$G!#(B
$B$=$l$H!"%m%0$r;2>H$7$d$9$$$h$&$K(B $BDd;_(B/$B3+;O(B $B$J$I$N%?%$%_%s%0$G;~4V$rF~$l$F$^$9!#(B
$B!w(Bnode1 $B$+$i5/F0!#(B(2008/08/19 16:55:32)
----------------------------------------------------------------------
# service heartbeat start
----------------------------------------------------------------------
$B!wC1FH$GN)$A>e$,$C$?$N$r3NG'!#(B
----------------------------------------------------------------------
============
Last updated: Tue Aug 19 16:59:14 2008
Current DC: node1 (********-****-****-****-************)
1 Nodes configured.
0 Resources configured.
============
Node: node1 (********-****-****-****-************): online
Full list of resources:
----------------------------------------------------------------------
$B!w<!$K(B node2 $B$r5/F0!#(B(2008/08/19 16:59:56)
----------------------------------------------------------------------
# service heartbeat start
----------------------------------------------------------------------
$B!wN>%N!<%I$G(B online $B$K$J$C$?$N$r3NG'!#(B
----------------------------------------------------------------------
============
Last updated: Tue Aug 19 17:00:43 2008
Current DC: node1 (********-****-****-****-************)
2 Nodes configured.
0 Resources configured.
============
Node: node1 (********-****-****-****-************): online
Node: node2 (********-****-****-****-************): online
Full list of resources:
----------------------------------------------------------------------
$B!w(Bnode1 $B$G0J2<$r3NG'!#(B
----------------------------------------------------------------------
# crmadmin -D
Designated Controller is: node1
# crmadmin -S node1
Status of crmd@node1: S_IDLE (ok)
----------------------------------------------------------------------
$B!w(Bnode1 $B$+$i%j%=!<%9$rDI2C!#(B(2008/08/19 17:02:13)
----------------------------------------------------------------------
# cibadmin -U -x add_ipaddr.xml
----------------------------------------------------------------------
$B!w(Bnode1 $B$G7k2L$r3NG'!#(B
----------------------------------------------------------------------
============
Last updated: Tue Aug 19 17:02:55 2008
Current DC: node1 (********-****-****-****-************)
2 Nodes configured.
1 Resources configured.
============
Node: node1 (********-****-****-****-************): online
Node: node2 (********-****-****-****-************): online
Full list of resources:
Resource Group: grpTest
prmIpTest (heartbeat::ocf:IPaddr): Started node1
----------------------------------------------------------------------
$B!w(Bnode2 $B$G$O!&!&!&!&%j%=!<%9$,DI2C$5$l$F$$$J$$$_$?$$!#(B
----------------------------------------------------------------------
============
Last updated: Tue Aug 19 17:03:04 2008
Current DC: node1 (********-****-****-****-************)
2 Nodes configured.
0 Resources configured.
============
Node: node1 (********-****-****-****-************): online
Node: node2 (********-****-****-****-************): online
Full list of resources:
----------------------------------------------------------------------
$B"($3$3$+$i@h$O;29M$^$G!#(B
$B!w(Bnode2 $B$rDd;_!#(B(2008/08/19 17:05:45)
----------------------------------------------------------------------
# service heartbeat stop
----------------------------------------------------------------------
$B!w(Bnode1 $B$+$i(B crm_mon -r $B$7$F!"(Bnode2 $B$N(BOFFLINE $B$r3NG'!#(B
----------------------------------------------------------------------
============
Last updated: Tue Aug 19 17:06:21 2008
Current DC: node1 (********-****-****-****-************)
2 Nodes configured.
1 Resources configured.
============
Node: node1 (********-****-****-****-************): online
Node: node2 (********-****-****-****-************): OFFLINE
Full list of resources:
Resource Group: grpTest
prmIpTest (heartbeat::ocf:IPaddr): Started node1
----------------------------------------------------------------------
$B!w(Bnode2 $B$r3+;O!#(B(2008/08/19 17:06:51)
----------------------------------------------------------------------
# service heartbeat start
----------------------------------------------------------------------
$B!w(Bnode2 $B$+$i$@$H(B OFFLINE $B$N$^$^!#(B
----------------------------------------------------------------------
============
Last updated: Tue Aug 19 17:07:43 2008
Current DC: NONE
2 Nodes configured.
0 Resources configured.
============
Node: node1 (********-****-****-****-************): OFFLINE
Node: node2 (********-****-****-****-************): OFFLINE
Full list of resources:
----------------------------------------------------------------------
$B!w$7$P$i$/$7$F$b$&0lEY(B node2 $B$+$i3NG'$7$F$b(B OFFLINE $B$N$^$^!#(B
----------------------------------------------------------------------
============
Last updated: Tue Aug 19 17:12:12 2008
Current DC: NONE
2 Nodes configured.
0 Resources configured.
============
Node: node1 (********-****-****-****-************): OFFLINE
Node: node2 (********-****-****-****-************): OFFLINE
Full list of resources:
----------------------------------------------------------------------
$B!w(Bnode1 $B$+$i$@$H!"N>%N!<%I6&$K(B online$B!#(B
----------------------------------------------------------------------
============
Last updated: Tue Aug 19 17:12:49 2008
Current DC: node1 (********-****-****-****-************)
2 Nodes configured.
1 Resources configured.
============
Node: node1 (********-****-****-****-************): online
Node: node2 (********-****-****-****-************): online
Full list of resources:
Resource Group: grpTest
prmIpTest (heartbeat::ocf:IPaddr): Started node1
----------------------------------------------------------------------
$B!w(Bnode2 $B$rDd;_!#(B(2008/08/19 17:31:03)
----------------------------------------------------------------------
# service heartbeat stop
----------------------------------------------------------------------
$B!w(Bnode1 $B$rDd;_!#(B(2008/08/19 17:33:05)
----------------------------------------------------------------------
# service heartbeat stop
----------------------------------------------------------------------
$B0J>e!"$3$s$J46$8$G$9!#(B
2008/08/19 21:41 Takahiro Matsumoto <matsuandtak@gmail.com>:
> $B>>K\$G$9!#(B
>
>> $B$J$s$+(BHeartbeat$B$H$$$&$h$j(BXen$B$NOCBj$K$J$C$F$-$^$7$?$M(B.. ($B>P(B)
>
> $B$^$C$?$/$G$9$M!#(B
> $B8D?ME*$K$O$$$$$*JY6/$K$J$j$^$9$1$I!#(B($B>P(B)
>
> $B$^$:$O!"(BDomU$B$N@_Dj%U%!%$%k$G$9!#(B
> ----------------------------------------------------------------------
> # cat /etc/xen/node2
> name = "node2"
> uuid = "********-****-****-****-************"
> maxmem = 256
> memory = 256
> vcpus = 1
> bootloader = "/usr/bin/pygrub"
> on_poweroff = "destroy"
> on_reboot = "restart"
> on_crash = "restart"
> vfb = [ ]
> disk = [ "phy:/dev/mapper/VolGroup00-node2,xvda,w" ]
> vif = [ "mac=00:16:3e:7e:33:ce,bridge=xenbr0" ]
> ----------------------------------------------------------------------
>
> Dom0$B$G(B ifconfig $B$9$k$H!"(B
> ----------------------------------------------------------------------
> # ifconfig
> eth0 Link encap:Ethernet HWaddr 00:11:25:**:**:**
> inet addr:***.***.***.*** Bcast:***.***.***.63 Mask:255.255.255.192
> inet6 addr: 2001:c90:37cc:88f8:211:25ff:fe1c:1e38/64 Scope:Global
> inet6 addr: fe80::211:25ff:fe1c:1e38/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:119282 errors:0 dropped:0 overruns:0 frame:0
> TX packets:28439 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:44603564 (42.5 MiB) TX bytes:19749385 (18.8 MiB)
>
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> inet6 addr: ::1/128 Scope:Host
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:31 errors:0 dropped:0 overruns:0 frame:0
> TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:5525 (5.3 KiB) TX bytes:5525 (5.3 KiB)
>
> peth0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
> inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
> UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
> RX packets:2256888 errors:0 dropped:0 overruns:0 frame:0
> TX packets:1390585 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:1716734085 (1.5 GiB) TX bytes:825108998 (786.8 MiB)
>
> vif0.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
> inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
> UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
> RX packets:28466 errors:0 dropped:0 overruns:0 frame:0
> TX packets:119304 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:19753495 (18.8 MiB) TX bytes:44612579 (42.5 MiB)
>
> vif1.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
> inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
> UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
> RX packets:7263 errors:0 dropped:0 overruns:0 frame:0
> TX packets:163596 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:32
> RX bytes:662622 (647.0 KiB) TX bytes:76770769 (73.2 MiB)
>
> vif5.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
> inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
> UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
> RX packets:1299931 errors:0 dropped:0 overruns:0 frame:0
> TX packets:2156320 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:32
> RX bytes:768990366 (733.3 MiB) TX bytes:1657969299 (1.5 GiB)
>
> virbr0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
> inet addr:***.***.122.1 Bcast:***.***.122.255 Mask:255.255.255.0
> inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:35 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:0 (0.0 b) TX bytes:7792 (7.6 KiB)
>
> xenbr0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
> UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
> RX packets:134986 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:60840076 (58.0 MiB) TX bytes:0 (0.0 b)
> ----------------------------------------------------------------------
>
> $BF1$8$/(BDom0$B$G(B netstat -r $B$9$k$H!"(B
> ----------------------------------------------------------------------
> # netstat -r
> Kernel IP routing table
> Destination Gateway Genmask Flags MSS Window irtt Iface
> ***.***.***.0 * 255.255.255.192 U 0 0 0 eth0
> ***.***.122.0 * 255.255.255.0 U 0 0 0 virbr0
> 169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
> default mygate 0.0.0.0 UG 0 0 0 eth0
> ----------------------------------------------------------------------
>
>
> DomU$B$G(B ifconfig $B$9$k$H!"(B
> ----------------------------------------------------------------------
> # ifconfig
> eth0 Link encap:Ethernet HWaddr 00:16:3E:7E:33:CE
> inet addr:***.***.***.*** Bcast:***.***.***.63 Mask:255.255.255.192
> inet6 addr: 2001:c90:37cc:88f8:216:3eff:fe7e:33ce/64 Scope:Global
> inet6 addr: fe80::216:3eff:fe7e:33ce/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:2177662 errors:0 dropped:0 overruns:0 frame:0
> TX packets:1321141 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:1662179449 (1.5 GiB) TX bytes:811073244 (773.4 MiB)
>
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> inet6 addr: ::1/128 Scope:Host
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:31 errors:0 dropped:0 overruns:0 frame:0
> TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:3966 (3.8 KiB) TX bytes:3966 (3.8 KiB)
> ----------------------------------------------------------------------
>
> $BF1$8$/(BDomU$B$G(B netstat -r $B$9$k$H!"(B
> ----------------------------------------------------------------------
> # netstat -r
> Kernel IP routing table
> Destination Gateway Genmask Flags MSS Window irtt Iface
> ***.***.***.0 * 255.255.255.192 U 0 0 0 eth0
> 169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
> default mygate 0.0.0.0 UG 0 0 0 eth0
> ----------------------------------------------------------------------
>
> $B$H$J$C$F$$$^$9!#(B
>
>
>> $BJ9$/=gHV$,5U$K$J$C$?$N$G$9$,!"(Bxenbr$B$,(B1$B$D$7$+$J$$7k2L$+$i$9$k$H!"%5!<%S(B
>> $B%9(BLAN$B$H%$%s%?!<%3%M%/%H(BLAN$B$OJL$1$F$J$$$N$G$9$M(B?
>> ha.cf$B$N@_Dj$r8+$F4pK\9=@.$bM}2r$7$?$$$H;W$$$^$9!#(B
>
> $B$"!"$=$&$G$9$M!#(B
> $B$3$A$i$bJ*M}9=@.$J$I$r$*CN$i$;$9$k$NK:$l$F$$$^$7$?!#(B
>
> $B:G=i$O7Z!A$$5$;}$A$G;O$a$?$N$G!"(B
> $BJ*M}(B/$B2>A[6&$K(BNIC1$BKg$E$D$G$N9=@.$H$J$C$F$$$^$9!#(B
>
>
>
>
>
> 2008/08/19 20:52 Takayuki Tanaka <tanaka.takayuki@oss.ntt.co.jp>:
>> $BEDCf(B $B$G$9!#(B
>>
>> $B$J$s$+(BHeartbeat$B$H$$$&$h$j(BXen$B$NOCBj$K$J$C$F$-$^$7$?$M(B.. ($B>P(B)
>>
>>
>>>> brctl show $B$N7k2LEy$r8+$;$FD:$1$l$P$o$+$k$+$H$b;W$$$^$9$,!"$R$g$C$H$9$k(B
>>>> $B$H(BDomU$B$O%G%U%)%k%H$G:n@.$5$l$k(B virbr0 $B$N2>A[%V%j%C%8$K@\B3$7$F$$$k$N$G(B
>>>> $B$7$g$&$+(B?
>>>
>>> $B$*$C$7$c$kDL$j!"%G%U%)%k%H$N(B virbr0 $B$G$9!#(B
>>> $B$3$s$J46$8$K$J$C$F$^$9!#(B
>>> ----------------------------------------------------------------------
>>> # brctl show
>>> bridge name bridge id STP enabled interfaces
>>> virbr0 8000.000000000000 yes
>>> xenbr0 8000.feffffffffff no vif5.0
>>> vif1.0
>>> peth0
>>> vif0.0
>>> ----------------------------------------------------------------------
>>>
>>> $BLdBj$H$J$C$F$$$k$N$O!"(Bvif5.0 $B$G$9!#(B
>>
>> DomU$B$O(B ID$B$,(B 5$B$G!"(Bvif5.0$B$G(B xenbr0 $B$K@\B3$7$F$$$k$H$$$&;v$K$J$j$^$9$M!#(B
>> $B$I$N$h$&$K(B DomU$B$r2>A[%V%j%C%8$K@\B3$7$F$$$k$+3NG'$9$k$?$a!"(B/etc/xen $B0J(B
>> $B2<$N(B DomU$B$N@_Dj%U%!%$%k$b8+$?$$$G$9!#(B
>>
>>
>>> $B$R$H$^$:!"%M%C%H%o!<%/4XO"$@$1$*CN$i$;$7$F$*$-$^$9$H(B.....
>>>
>>>>> $B$A$J$_$K!"(BNG$B$N%Q%?!<%s$G$O!"(Bscp$B$d(Bftp$B$J$I$N%U%!%$%kE>Aw$G$O!"APJ}8~$GDL(B
>>>>> $B?.%9%T!<%IEy$bLdBj$J$/DL?.$G$-$F$$$k$N$G$7$g$&$+(B?
>>>>> lost packet(s) $B$H=P$F$$$k$N$J$i$P!"B>$N%W%m%H%3%k$b$^$H$b$KDL?.$G$-$F$J(B
>>>>> $B$$$h$&$J5$$b$7$^$9$,(B..
>>>
>>> DomU$B4D6-$N%Q%1%C%HMn$A$J$I$K$D$$$F!":#$^$GL$3NG'$@$C$?$N$G3N$+$a$F$_$^$7$?!#(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
>> _______________________________________________
>> Linux-ha-japan mailing list
>> Linux-ha-japan@lists.sourceforge.jp
>> http://lists.sourceforge.jp/mailman/listinfo/linux-ha-japan
>>
>