Masamichi Fukuda - elf-systems
masamichi_fukud****@elf-s*****
2015年 3月 12日 (木) 00:02:03 JST
山内さん、松島さん こんばんは、福田です。 済みません、ha.cfを忘れてました。 debugfile /var/log/ha-debug logfacility daemon keepalive 2 deadtime 30 warntime 10 initdead 120 udpport 694 auto_failback on node lbv1.beta.com node lbv2.beta.com uuidfrom nodename respawn hacluster /usr/local/heartbeat/libexec/heartbeat/ipfail apiauth ipfail gid=haclient uid=hacluster crm yes 宜しくお願いします。 以上 2015年3月11日 23:00 Masamichi Fukuda - elf-systems < masamichi_fukud****@elf-s*****>: > 山内さん、松島さん > > こんばんは、福田です。 > > authkeysは下記のとおりです。 > > # cat authkeys > auth 1 > 1 sha1 (stdin)= ab57ac8bfaa43bee757e3a2843011c84 > > md5にしても、メッセージは同じです。 > > Mar 11 22:57:55 lbv1.beta.com heartbeat: [3363]: ERROR: LoadPlugin on md5 > returned 5: No such plugin/interface/interface type > Mar 11 22:57:55 lbv1.beta.com heartbeat: [3363]: ERROR: Lookup extended#2 > returned FALSE for md5 > Mar 11 22:57:55 lbv1.beta.com heartbeat: [3363]: ERROR: Table size: 0 > Mar 11 22:57:55 lbv1.beta.com heartbeat: [3363]: ERROR: Invalid authtype > [md5] > Mar 11 22:57:55 lbv1.beta.com heartbeat: [3363]: ERROR: Auth Key [1] not > found in keyfile [/etc/ha.d//authkeys] > Mar 11 22:57:55 lbv1.beta.com heartbeat: [3363]: ERROR: Authentication > configuration error. > Mar 11 22:57:55 lbv1.beta.com heartbeat: [3363]: ERROR: Configuration > error, heartbeat not started. > > 宜しくお願いします。 > > 以上 > > > 2015年3月11日 22:50 <renay****@ybb*****>: > > 福田さん >> 松島さん >> >> こんばんは、山内です。 >> >> >あと、debugメッセージのChecking access of はどのようにすれば良いのでしょうか。 >> >> >> これは、デバックメッセージなので問題ないです。 >> ha.cfのdebugを0にしてもらえれば出力されなくなります。 >> >> sha1ではなく、md5ではNGでしょうか? >> >> >Mar 11 22:08:12 lbv1.beta.com heartbeat: [21513]: ERROR: LoadPlugin on >> sha1 returned 5: No such plugin/interface/interface type >> >> >> のエラーも気になりますが・・・・ >> >> /etc/ha.dのha.cf <http://ha.xn--dha-lc4b.cf>,authkeyの内容はどうなっていますか? >> >> >> 以上です。 >> >> >> >> ----- Original Message ----- >> >From: Masamichi Fukuda - elf-systems <masamichi_fukud****@elf-s*****> >> >To: 山内英生 <renay****@ybb*****>; takeh****@gmail***** >> >Cc: "linux****@lists*****" < >> linux****@lists*****> >> >Date: 2015/3/11, Wed 22:15 >> >Subject: Re: [Linux-ha-jp] Heartbeat3.0.6ソースインストールでのmakeエラーについて >> > >> > >> >山内さん、松島さん >> > >> >こんばんは、福田です。 >> > >> >ha.cf内でipfailを指定していたので、それを変更しました。 >> > >> >< respawn hacluster /usr/local/heartbeat/libexec/heartbeat/ipfail >> >--- >> >> respawn hacluster /usr/lib/heartbeat/ipfail >> > >> > >> >ipfailのエラーは無くなりました。 >> > >> >authkeysは以前使っていたものをそのまま使おうとしたところ、 >> >今度はsha1のエラーが出てしまいました。 >> > >> >あと、debugメッセージのChecking access of はどのようにすれば良いのでしょうか。 >> > >> ># /etc/init.d/heartbeat start >> >Starting High-Availability services: Heartbeat failure [rc=6]. Failed. >> > >> >heartbeat: udpport setting must precede media statementsMar 11 22:08:12 >> lbv1.beta.com heartbeat: [21513]: info: Pacemaker support: yes >> >Mar 11 22:08:12 lbv1.beta.com heartbeat: [21513]: debug: Checking >> access of: /usr/local/heartbeat/libexec/heartbeat/ccm >> >Mar 11 22:08:12 lbv1.beta.com heartbeat: [21513]: debug: Checking >> access of: /usr/local/heartbeat/libexec/pacemaker/cib >> >Mar 11 22:08:12 lbv1.beta.com heartbeat: [21513]: debug: Checking >> access of: /usr/local/heartbeat/libexec/heartbeat/cib >> >Mar 11 22:08:12 lbv1.beta.com heartbeat: [21513]: debug: Checking >> access of: /usr/local/heartbeat/libexec/pacemaker/stonithd >> >Mar 11 22:08:12 lbv1.beta.com heartbeat: [21513]: debug: Checking >> access of: /usr/local/heartbeat/libexec/heartbeat/stonithd >> >Mar 11 22:08:12 lbv1.beta.com heartbeat: [21513]: debug: Checking >> access of: /usr/local/heartbeat/libexec/pacemaker/lrmd >> >Mar 11 22:08:12 lbv1.beta.com heartbeat: [21513]: debug: Checking >> access of: /usr/local/heartbeat/libexec/heartbeat/lrmd >> >Mar 11 22:08:12 lbv1.beta.com heartbeat: [21513]: debug: Checking >> access of: /usr/lib/heartbeat/lrmd >> >Mar 11 22:08:12 lbv1.beta.com heartbeat: [21513]: debug: Checking >> access of: /usr/local/heartbeat/libexec/pacemaker/attrd >> >Mar 11 22:08:12 lbv1.beta.com heartbeat: [21513]: debug: Checking >> access of: /usr/local/heartbeat/libexec/heartbeat/attrd >> >Mar 11 22:08:12 lbv1.beta.com heartbeat: [21513]: debug: Checking >> access of: /usr/local/heartbeat/libexec/pacemaker/crmd >> >Mar 11 22:08:12 lbv1.beta.com heartbeat: [21513]: debug: Checking >> access of: /usr/local/heartbeat/libexec/heartbeat/crmd >> >Mar 11 22:08:12 lbv1.beta.com heartbeat: [21513]: ERROR: LoadPlugin on >> sha1 returned 5: No such plugin/interface/interface type >> >Mar 11 22:08:12 lbv1.beta.com heartbeat: [21513]: ERROR: Lookup >> extended#2 returned FALSE for sha1 >> >Mar 11 22:08:12 lbv1.beta.com heartbeat: [21513]: ERROR: Table size: 0 >> >Mar 11 22:08:12 lbv1.beta.com heartbeat: [21513]: ERROR: Invalid >> authtype [sha1] >> >Mar 11 22:08:12 lbv1.beta.com heartbeat: [21513]: ERROR: Auth Key [1] >> not found in keyfile [/etc/ha.d//authkeys] >> >Mar 11 22:08:12 lbv1.beta.com heartbeat: [21513]: ERROR: Authentication >> configuration error. >> >Mar 11 22:08:12 lbv1.beta.com heartbeat: [21513]: ERROR: Configuration >> error, heartbeat not started. >> > >> >宜しくお願いします。 >> > >> >以上 >> > >> > >> > >> > >> >2015年3月11日 21:48 Masamichi Fukuda - elf-systems < >> masamichi_fukud****@elf-s*****>: >> > >> >松島さん、山内さん >> >> >> >>お世話になります、福田です。 >> >>情報頂きありがとうございます。 >> >>またdebianでの検証ありがとうございます。 >> >> >> >>わたしも一旦、cluster-glue,resource-agents,heartbeatをmake uninstallして >> >>松島さんに教えて頂いた手順で再度インストールしてみました。 >> >> >> >> >> >>configureのオプションは下記にしました。 >> >> >> >> >> >>1. Cluster-glue >> >>./configure --localstatedir=/var --sysconfdir=/etc >> >> >> >> >> >>cluster-glue configuration: >> >> Version = 1.0.12 (Build: >> 0a7add1d9996b6d869d441da6c82fb7b8abcef4f) >> >> Features = >> >> >> >> Prefix = /usr >> >> Executables = /usr/sbin >> >> Man pages = /usr/share/man >> >> Libraries = /usr/lib >> >> Header files = /usr/include >> >> Arch-independent files = /usr/share >> >> Documentation = /usr/share/doc/cluster-glue >> >> State information = /var >> >> System configuration = /etc >> >> >> >> Use system LTDL = yes >> >> >> >> HA group name = haclient >> >> HA user name = hacluster >> >> >> >> >> CFLAGS = -g -O2 -ggdb -fgnu89-inline >> -fstack-protector-all -Wall -Waggregate-return -Wbad-function-cast >> -Wcast-qual -Wcast-align -Wdeclaration-after-statement -Wendif-labels >> -Wfloat-equal -Wformat=2 -Wformat-security -Wformat-nonliteral -Winline >> -Wmissing-prototypes -Wmissing-declarations -Wmissing-format-attribute >> -Wnested-externs -Wno-long-long -Wno-strict-aliasing -Wpointer-arith >> -Wstrict-prototypes -Wwrite-strings -ansi -D_GNU_SOURCE -DANSI_ONLY >> -Werror >> >> Libraries = -lbz2 -lz -lxml2 -lc -luuid -lrt -ldl >> -lglib-2.0 -lltdl >> >> Stack Libraries = >> >> >> >> >> >>2.reosurce-agents >> >> >> >>./configure >> >> >> >>resource-agents configuration: >> >> Version = UNKNOWN >> >> Build Version = 02beac55c1da0ad99a5a19bd3b2333bcff7e916c >> >> Features = >> >> >> >> Prefix = /usr >> >> Executables = /usr/sbin >> >> Man pages = /usr/share/man >> >> Libraries = /usr/lib >> >> Header files = /usr/include >> >> Arch-independent files = /usr/share >> >> Documentation = /usr/share/doc/resource-agents >> >> State information = /var >> >> System configuration = /etc >> >> HA_BIN directory prefix = /usr/libexec >> >> RA state files = /var/run/resource-agents >> >> AIS Plugins = >> >> >> >> >> CFLAGS = -g -O2 -ggdb3 -fgnu89-inline >> -fstack-protector-all -Wall -Wbad-function-cast -Wcast-qual -Wcast-align >> -Wdeclaration-after-statement -Wendif-labels -Wfloat-equal -Wformat=2 >> -Wformat-security -Wformat-nonliteral -Winline -Wmissing-prototypes >> -Wmissing-declarations -Wmissing-format-attribute -Wnested-externs >> -Wno-long-long -Wno-strict-aliasing -Wpointer-arith -Wstrict-prototypes >> -Wwrite-strings -ansi -D_GNU_SOURCE -DANSI_ONLY -Werror >> >> Libraries = -lglib-2.0 >> >> Stack Libraries = >> >> >> >> >> >> >> >>3.heartbeat >> >>./configure --prefix=/usr/local/heartbeat --localstatedir=/var >> --sysconfdir=/etc --disable-fatal-warnings --includedir=/usr/include >> CFLAGS="$CFLAGS -L/usr/lib -I/usr/include -I/usr/include/heartbeat" >> >> >> >>heartbeat configuration: >> >> Version = "3.0.6" >> >> Executables = "/usr/local/heartbeat/sbin" >> >> Man pages = "/usr/local/heartbeat/share/man" >> >> Libraries = "/usr/local/heartbeat/lib" >> >> Header files = "/usr/include" >> >> Arch-independent files = "/usr/local/heartbeat/share" >> >> Documentation files = "/usr/local/heartbeat/share/doc/heartbeat" >> >> State information = "/var" >> >> System configuration = "/etc" >> >> Init (rc) scripts = "/etc/init.d" >> >> Init (rc) defaults = "/etc/default" >> >> Use system LTDL = "yes" >> >> HA group name = "haclient" >> >> HA group id = "113" >> >> HA user name = "hacluster" >> >> HA user user id = "109" >> >> Build dopd plugin = "yes" >> >> Enable times kludge = "yes" >> >> >> CC_WARNINGS = " -Wall -Wmissing-prototypes >> -Wmissing-declarations -Wstrict-prototypes -Wdeclaration-after-statement >> -Wpointer-arith -Wwrite-strings -Wcast-qual -Wcast-align >> -Wbad-function-cast -Winline -Wmissing-format-attribute -Wformat=2 >> -Wformat-security -Wformat-nonliteral -Wno-long-long >> -Wno-strict-aliasing " >> >> Mangled CFLAGS = " -L/usr/lib >> -I/usr/include -I/usr/include/heartbeat -Wall -Wmissing-prototypes >> -Wmissing-declarations -Wstrict-prototypes -Wdeclaration-after-statement >> -Wpointer-arith -Wwrite-strings -Wcast-qual -Wcast-align >> -Wbad-function-cast -Winline -Wmissing-format-attribute -Wformat=2 >> -Wformat-security -Wformat-nonliteral -Wno-long-long >> -Wno-strict-aliasing -ggdb3 -funsigned-char" >> >> Libraries = "-lbz2 -lz -lc -luuid -lrt -ldl -lltdl" >> >> RPATH enabled = "" >> >> Distro-style RPMs = "no" >> >> >> >>これでheartbeatを起動したところ、今までとは違うerrorとなりました。 >> >> >> >># /etc/init.d/heartbeat start >> >>Starting High-Availability services: Heartbeat failure [rc=6]. Failed. >> >> >> >>heartbeat: udpport setting must precede media statements >> >>Mar 11 21:07:24 lbv1.beta.com heartbeat: [32388]: ERROR: Illegal >> directive [ucast] in /etc/ha.d//ha.cf >> >>Mar 11 21:07:24 lbv1.beta.com heartbeat: [32388]: ERROR: Client child >> command [/usr/lib/heartbeat/ipfail] is not executable >> >>Mar 11 21:07:24 lbv1.beta.com heartbeat: [32388]: info: Pacemaker >> support: yes >> >>Mar 11 21:07:24 lbv1.beta.com heartbeat: [32388]: debug: Checking >> access of: /usr/local/heartbeat/libexec/heartbeat/ccm >> >>Mar 11 21:07:24 lbv1.beta.com heartbeat: [32388]: debug: Checking >> access of: /usr/local/heartbeat/libexec/pacemaker/cib >> >>Mar 11 21:07:24 lbv1.beta.com heartbeat: [32388]: debug: Checking >> access of: /usr/local/heartbeat/libexec/heartbeat/cib >> >>Mar 11 21:07:24 lbv1.beta.com heartbeat: [32388]: debug: Checking >> access of: /usr/lib/heartbeat/cib >> >>Mar 11 21:07:24 lbv1.beta.com heartbeat: [32388]: ERROR: Failed to add >> pacemaker client child "cib" >> >>Mar 11 21:07:24 lbv1.beta.com heartbeat: [32388]: ERROR: Heartbeat not >> started: configuration error. >> >>Mar 11 21:07:24 lbv1.beta.com heartbeat: [32388]: ERROR: Configuration >> error, heartbeat not started. >> >> >> >> >> >>ha.cfの配置場所は正常になりました。(何かコンフィグがおかしいようですが) >> >> >> >>あと、[/usr/lib/heartbeat/ipfail] is not executableと言われてしまいましたが、 >> >> >> >>実際には、/usr/local/heartbeat/libexec/heartbeat/ipfailにあります。 >> >> >> >>パッケージでインストールすると、/usr/lib/heartbeat/ipfailにあります。 >> >> >> >>まだ以前のスクリプトが残っているんでしょうか。 >> >> >> >>宜しくお願いします。 >> >> >> >>以上 >> >> >> >> >> >> >> >> >> >>2015年3月11日 21:31 <renay****@ybb*****>: >> >> >> >>福田さん >> >>>松島さん >> >>> >> >>>こんばんは、山内です。 >> >>> >> >>>debianにうといのですが、インストールして、紆余曲折しながらも、Heartbeatのソースインストールまで >> >>>こぎつけて、以下のconfigureで実施してみましたが、やはり、福田さんと同じでした。 >> >>> >> >>>---configure--- >> >>>root @ debian78-1:/opt/Heartbeat-3-0-cceeb47a7d8f# ./configure >> --prefix=/usr --localstatedir=/var --sysconfdir=/etc >> --disable-fatal-warnings >> >>> >> >>> >> >>>---結果--- >> >>>root @ debian78-1:~# /etc/init.d/heartbeat start >> >> >>>Starting High-Availability services: Heartbeat failure [rc=6]. Failed. >> >>> >> >>>heartbeat[64223]: 2015/03/11_21:27:27 ERROR: Cannot open config file >> [/usr/etc/ha.d//ha.cf] >> >>>heartbeat[64223]: 2015/03/11_21:27:27 info: An annotated sample >> /usr/etc/ha.d//ha.cf file is provided in the documentation. >> >>>heartbeat[64223]: 2015/03/11_21:27:27 info: Please copy it to >> /usr/etc/ha.d//ha.cf, read it, customize it, and try again. >> >>>heartbeat[64223]: 2015/03/11_21:27:27 ERROR: Heartbeat not started: >> configuration error. >> >>>heartbeat[64223]: 2015/03/11_21:27:27 ERROR: Configuration error, >> heartbeat not started. >> >>> >> >>>prefixは/usrにしておいたので、私が最初に紹介した手順です。 >> >>> >> >>> >> >>>make uninstallなどもしてみましたが、やはり同じ結果でした。 >> >>> >> >>>また、色々と確認して何かわかれば連絡します。 >> >>> >> >>>#くどいよういですが、debianにうとい為、glue,resource-agentのインストールにもかなり手間取りました(笑) >> >>> >> >>>以上です。 >> >>> >> >>> >> >>> >> >>> >> >>>----- Original Message ----- >> >>> >> >>>> From: Takehiro Matsushima <takeh****@gmail*****> >> >>>> To: Linux-HA Japan ML <linux****@lists*****> >> >>>> Cc: >> >>>> Date: 2015/3/11, Wed 15:06 >> >>>> Subject: Re: [Linux-ha-jp] Heartbeat3.0.6ソースインストールでのmakeエラーについて >> >>>> >> >>>> 福田さん >> >>>> >> >>>> お世話になっております。松島と申します。 >> >>>> 横から失礼いたします。 >> >>>> >> >>>>> コンフィグファイルの指定で、スラッシュが2つ使われているのが気になります。 >> >>>> おそらく、スクリプトのなかで変数を展開する都合だと思います。 >> >>>> (スラッシュで終わっていなかった場合に備えて) >> >>>> ですので、お気になさることはないかとおもいます。 >> >>>> >> >>>> もう一点です。 >> >>>> 私もHeartbeatのビルドをしてみました。 >> >>>> 1. cluster-glue >> >>>> 2. resource-agents >> >>>> 3. heartbeat >> >>>> の順でmake installしました。 >> >>>> >> >>>> よく検証していないのですが、heartbeatで--prefixや--sysconfdirの指定なしにconfigureした段階の >> >>>> スクリプトが残っているためと思われます。(make installはおそらく上書きをしていない) >> >>>> ですので、いったんHeartbeatを消してから入れなおせば解決するのではと考えておりますが、如何でしょうか。 >> >>>> >> >>>> 以上です、割り込んでしまい申し訳ございません。 >> >>>> >> >>>> ---- >> >>>> Takehiro Matsushima >> >>>> _______________________________________________ >> >>>> Linux-ha-japan mailing list >> >>>> Linux****@lists***** >> >>>> http://lists.sourceforge.jp/mailman/listinfo/linux-ha-japan >> >>>> >> >>> >> >>>_______________________________________________ >> >>>Linux-ha-japan mailing list >> >>>Linux****@lists***** >> >>>http://lists.sourceforge.jp/mailman/listinfo/linux-ha-japan >> >>> >> >> >> >> >> >>-- >> >> >> >>ELF Systems >> >>Masamichi Fukuda >> >>mail to: masamichi_fukud****@elf-s***** >> > >> > >> >-- >> > >> >ELF Systems >> >Masamichi Fukuda >> >mail to: masamichi_fukud****@elf-s***** >> > >> > >> >> _______________________________________________ >> Linux-ha-japan mailing list >> Linux****@lists***** >> http://lists.sourceforge.jp/mailman/listinfo/linux-ha-japan >> > > > > -- > ELF Systems > Masamichi Fukuda > mail to: *masamichi_fukud****@elf-s***** <elfsy****@gmail*****>* > -- ELF Systems Masamichi Fukuda mail to: *masamichi_fukud****@elf-s***** <elfsy****@gmail*****>* -------------- next part -------------- HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B... Descargar