renay****@ybb*****
renay****@ybb*****
2011年 9月 8日 (木) 13:52:23 JST
コヤマさん こんにちは、山内です。 > --- haresource ----------- > fax1 IPaddr:192.168.1.85 > fax1 MailTo::user1 @ localhost::ERRR_MAIL > ------------------------------------------ ですが、IPaddrの後ろは"::"ですが、大丈夫でしょうか? また、heartbeatを起動しない状態で、/etc/ha.d/resource.dディレクトリで、IPaddrを実行した場合に起動しますでしょうか? (例) [root @ bl460g1a resource.d]# ./IPaddr 192.168.201.170/24 start INFO: Using calculated nic for 192.168.201.170: eth5 INFO: Using calculated netmask for 192.168.201.170: 255.255.255.0 DEBUG: Using calculated broadcast for 192.168.201.170: 192.168.201.255 INFO: eval ifconfig eth5:0 192.168.201.170 netmask 255.255.255.0 broadcast 192.168.201.255 DEBUG: Sending Gratuitous Arp for 192.168.201.170 on eth5:0 [eth5] ARPING 192.168.201.170 from 192.168.201.170 eth5 INFO: Success INFO: Success [root @ bl460g1a resource.d]# ./IPaddr 192.168.201.170/24 stop SIOCDELRT: No such process INFO: ifconfig eth5:0 down INFO: Success INFO: Success [root @ bl460g1a resource.d]# Sent 10 probes (10 broadcast(s)) Received 0 response(s) 以上、宜しく御願いいたします。 --- On Thu, 2011/9/8, mlus <mlus****@39596*****> wrote: > コヤマと申します。 heartbeat3.0.4の設定で、動作しないので、ご教授お願い致します。 > > host1 --- host2 > eth0:192.168.1.80 eth0:192.168.1.81 > /dev/ttyS1 ---- /dev/ttyS1 > > の環境で、 > > ---- ha.cf ------------- > logfile /var/log/ha-log > logfacility local0 > keepalive 2 > deadtime 30 > warntime 10 > initdead 120 > # > baud 19200 > serial /dev/ttyS1 # Linux > # > auto_failback off > # > node fax1 fax2 > # > ping 192.168.1.1 > # > respawn hacluster /usr/lib/heartbeat/ipfail > apiauth ipfail gid=haclient uid=hacluster > ----------------------------------------------------------- > > --- haresource ----------- > fax1 IPaddr:192.168.1.85 > fax1 MailTo::user1 @ localhost::ERRR_MAIL > ------------------------------------------ > > --- authkeys --------- > auth 2 > 2 crc > ------------------------ > > この設定で、起動しても、eth0:0 のアドレスが作成されません。 > ログには、(ホスト名は削りました) > > > Sep 08 13:17:06 fax1 heartbeat: [12622]: info: heartbeat: version 3.0.4 > Sep 08 13:17:06 fax1 heartbeat: [12622]: info: Heartbeat generation: 1315446791 > Sep 08 13:17:07 fax1 heartbeat: [12622]: info: glib: Starting serial heartbeat > on tty /dev/ttyS1 (19200 baud) > Sep 08 13:17:07 fax1 heartbeat: [12622]: info: glib: ping heartbeat started. > Sep 08 13:17:07 fax1 heartbeat: [12622]: info: Local status now set to: 'up' > Sep 08 13:17:07 fax1 heartbeat: [12622]: info: Link 192.168.1.1:192.168.1.1 up. > Sep 08 13:17:07 fax1 heartbeat: [12622]: info: Status update for node > 192.168.1.1: status ping > Sep 08 13:17:10 fax1 heartbeat: [12622]: info: Link /dev/ttyS1 up. > Sep 08 13:17:10 fax1 heartbeat: [12622]: info: Status update for node > : status up > harc[12630]: 2011/09/08_13:17:10 info: Running /etc/ha.d//rc.d/status status > Sep 08 13:17:11 fax1 heartbeat: [12622]: info: Comm_now_up(): updating > status to active > Sep 08 13:17:11 fax1 heartbeat: [12622]: info: Local status now set to: 'active' > Sep 08 13:17:11 fax1 heartbeat: [12622]: info: Starting child client > "/usr/lib/heartbeat/ipfail" (90,90) > Sep 08 13:17:11 fax1 heartbeat: [12648]: info: Starting > "/usr/lib/heartbeat/ipfail" as uid 90 gid 90 (pid 12648) > Sep 08 13:17:12 fax1 heartbeat: [12622]: info: Status update for node > fax2: status active > harc[12651]: 2011/09/08_13:17:12 info: Running /etc/ha.d//rc.d/status status > Sep 08 13:17:17 fax1 ipfail: [12648]: info: Status update: Node fax2 > now has status active > Sep 08 13:17:20 fax1 ipfail: [12648]: info: Asking other side for ping > node count. > Sep 08 13:17:23 fax1 ipfail: [12648]: info: No giveup timer to abort. > Sep 08 13:17:23 fax1 heartbeat: [12622]: info: remote resource > transition completed. > Sep 08 13:17:23 fax1 heartbeat: [12622]: info: remote resource > transition completed. > Sep 08 13:17:23 fax1 heartbeat: [12622]: info: Initial resource > acquisition complete (T_RESOURCES(us)) > ResourceManager[12688]: 2011/09/08_13:17:23 ERROR: Cannot locate > resource script IPaddr > ResourceManager[12721]: 2011/09/08_13:17:23 ERROR: Cannot locate > resource script MailTo > Sep 08 13:17:23 fax1 heartbeat: [12669]: info: Local Resource > acquisition completed. > harc[12748]: 2011/09/08_13:17:23 info: Running > /etc/ha.d//rc.d/ip-request-resp ip-request-resp > > こんな感じで、エラーになってしまいます。 > リソースの、 IPaddr とか MailTo が 不明と言っているように取れるのですが、どう対処したものか判断つきかねます。 > > どなたかアドバイスを、よろしくお願い致します。 > > > > > > > > > > > > > > > ~ > ~ > > > > > > ~ > ~ > > _______________________________________________ > Linux-ha-japan mailing list > Linux****@lists***** > http://lists.sourceforge.jp/mailman/listinfo/linux-ha-japan >