Masamichi Fukuda - elf-systems
masamichi_fukud****@elf-s*****
2015年 3月 11日 (水) 11:27:34 JST
山内さん こんにちは、福田です。 こちらも調べていますが、 済みませんが宜しくお願いします。 コンフィグファイルの指定で、スラッシュが2つ使われているのが気になります。 >なぜか/usr/etc/ha.d//ha.cfが無いと言ってきます。 宜しくお願いします。 以上 2015年3月11日水曜日、<renay****@ybb*****>さんは書きました: > 福田さん > > おはようございます。山内です。 > > >heartbeatのconfigureでは、コンフィグの配置は/etcにしているのですが、 > >なぜか/usr/etc/ha.d//ha.cfが無いと言ってきます。 > (snip) > >configureの結果をみると、system configurationは/etcになっています。 > >現状、/usrの配下にはetcディレクトリもありません。 > > > > > >configureのオプションが間違っているのでしょうか。 > > configureのオプションで指定出来るのかどうか? > 確認してみますね。 > > #私用の為、回答は明日になるかも知れません・・ > > 以上です。 > > ----- Original Message ----- > >From: Masamichi Fukuda - elf-systems <masamichi_fukud****@elf-s***** > <javascript:;>> > >To: 山内英生 <renay****@ybb***** <javascript:;>>; " > linux****@lists***** <javascript:;>" < > linux****@lists***** <javascript:;>> > >Date: 2015/3/10, Tue 21:33 > >Subject: Re: [Linux-ha-jp] Heartbeat3.0.6ソースインストールでのmakeエラーについて > > > > > >山内さん > > > >こんばんは、福田です。 > >ご返答ありがとうございます。 > > > >resource-agentをインストールしました。 > >ocf-shellfuncsは、RHELと同じ場所に配置されました。 > >ありがとうございました。 > > > >これで起動してみたところ、shellfuncsやocd-shellfuncsのエラーは無くなりました。 > >ですが今度は、コンフィグファイル(ha.cf)の配置がおかしいようで > >次のメッセージがでます。 > > > ># /etc/init.d/heartbeat start > >Starting High-Availability services: Heartbeat failure [rc=6]. Failed. > > > >Mar 10 21:17:43 lbv1.beta.com heartbeat: [4784]: ERROR: Cannot open > config file [/usr/etc/ha.d//ha.cf] > >Mar 10 21:17:43 lbv1.beta.com heartbeat: [4784]: info: An annotated > sample /usr/etc/ha.d//ha.cf file is provided in the documentation. > >Mar 10 21:17:43 lbv1.beta.com heartbeat: [4784]: info: Please copy it to > /usr/etc/ha.d//ha.cf, read it, customize it, and try again. > >Mar 10 21:17:43 lbv1.beta.com heartbeat: [4784]: ERROR: Heartbeat not > started: configuration error. > >Mar 10 21:17:43 lbv1.beta.com heartbeat: [4784]: ERROR: Configuration > error, heartbeat not started. > > > >heartbeatのconfigureでは、コンフィグの配置は/etcにしているのですが、 > >なぜか/usr/etc/ha.d//ha.cfが無いと言ってきます。 > > > >heartbeatは再度インストールして、configureは次のようにしました。 > > > ># ./configure --prefix=/usr/local/heartbeat --localstatedir=/var > --sysconfdir=/etc --disable-fatal-warnings > --includedir=/usr/local/cluster-glue/include > > > >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/local/cluster-glue/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 = "-g -O2 -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" > > > >configureの結果をみると、system configurationは/etcになっています。 > >現状、/usrの配下にはetcディレクトリもありません。 > > > > > >configureのオプションが間違っているのでしょうか。 > > > >何度もすみませんが、宜しくお願いします。 > > > >以上 > > > > > > > >2015年3月10日 17:50 <renay****@ybb***** <javascript:;>>: > > > >福田さん > >> > >>こんにちは、山内です。 > >> > >>glue,Heartbeatの他に、resource-agentもインストールして頂く必要があります。 > >> > >>最新のリリース版は、3.9.6です。 > >> > >> > >>https://github.com/ClusterLabs/resource-agents/tree/v3.9.6 > >> > >> > >>インストールは、Debianでも、該当ソースを展開後に、autogen、configureの手順で大丈夫かと思います. > >> > >> > >>ちなみに、私の環境(RHEL6.4)ですが、以下に配置されています。 > >>[root @ rh64-heartbeat1 resource-agents-master]# ls -lt > /usr/lib/ocf/lib/heartbeat/ocf-shellfuncs > >>-rw-r--r-- 1 root root 17925 3月 10 17:43 2015 > /usr/lib/ocf/lib/heartbeat/ocf-shellfuncs > >> > >>#外していたら、申し訳ありません。 > >> > >>以上です。 > >> > >> > >>----- Original Message ----- > >>>From: Masamichi Fukuda - elf-systems <masamichi_fukud****@elf-s***** > <javascript:;>> > >>>To: 山内英生 <renay****@ybb***** <javascript:;>>; " > linux****@lists***** <javascript:;>" < > linux****@lists***** <javascript:;>> > >> > >>>Date: 2015/3/10, Tue 16:11 > >>>Subject: Re: [Linux-ha-jp] Heartbeat3.0.6ソースインストールでのmakeエラーについて > >>> > >>> > >>>山内さん > >>> > >>>こんにちは、福田です。 > >>> > >>>sysconfdir等のオプションを付け直して再インストールしてみました。 > >>> > >>>cluster glueは、/usr/local/cluster-glueにインストールしました。 > >>>cluster-glueのconfigureの結果です。 > >>> > >>># ./configure --prefix=/usr/local/cluster-glue > >>>(一部抜粋です) > >>> Features = > >>> > >>> Prefix = /usr/local/cluster-glue > >>> Executables = /usr/local/cluster-glue/sbin > >>> Man pages = /usr/local/cluster-glue/share/man > >>> Libraries = /usr/local/cluster-glue/lib > >>> Header files = /usr/local/cluster-glue/include > >>> Arch-independent files = /usr/local/cluster-glue/share > >>> Documentation = > /usr/local/cluster-glue/share/doc/cluster-glue > >>> State information = /usr/local/cluster-glue/var > >>> System configuration = /usr/local/cluster-glue/etc > >>> > >>> > >>>heartbeat最新版は/usr/local/heartbeatにインストールしたいため > >>>configureは次のオプションをつけています。 > >>> > >>>./configure --prefix=/usr/local/heartbeat --localstatedir=/var > >>--sysconfdir=/etc --disable-fatal-warnings CFLAGS="$CFLAGS > >>-L/usr/local/cluster-glue/lib -I/usr/local/cluster-glue/include > >>-I/usr/local/cluster-glue/include/heartbeat/" > >>--includedir=/usr/local/cluster-glue/include > >>> > >>>CFLAGSとincludedirの指定があっているのか?不安なんですが、 > >>>configureの結果は次のとおりです。 > >>> > >>>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/local/heartbeat/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/local/cluster-glue/lib > -I/usr/local/cluster-glue/include > -I/usr/local/cluster-glue/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" > >>> > >>>とりあえずこれでmake installまでは終わっています。 > >>> > >>>そして起動すると、今度は先ほどとはちょっと違うメッセージが出てしまいました。 > >>> > >>># /etc/init.d/heartbeat start > >>>/etc/init.d/heartbeat: 96: .: Can't open > /usr/lib/ocf/lib//heartbeat/ocf-shellfuncs > >>> > >>> > >>>/etc/ha.dにshellfuncsがありますが、これは今回インストールされたものではなく > >>>パッケージで導入した時のもののようです。 > >>> > >>># ls -la shellfuncs > >>>-rw-r--r-- 1 root root 2082 Mar 10 2014 shellfuncs > >>> > >>>また、メッセージに出ているocf-shellfuncsはfindで探しましたが、ありませんでした。 > >>> > >>>以前、パッケージで導入したノード2側を見るとocf-shellfuncsがあります。 > >>> > >>>ノード2 > >>># find / -name ocf-shellfuncs > >>>/usr/lib/ocf/lib/heartbeat/ocf-shellfuncs > >>>/usr/share/cluster/ocf-shellfuncs > >>> > >>>インストールが完了していないのでしょうか。 > >>> > >>>宜しくお願いします。 > >>> > >>>以上 > >>> > >>> > >>> > >>> > >>> > >>>2015年3月10日 12:52 <renay****@ybb***** <javascript:;>>: > >>> > >>>福田さん > >>>> > >>>>こんにちは、山内です。 > >>>> > >>>>configureコマンド時のオプション指定で解決するかと思います。 > >>>> > >>>>./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc > >>>> > >>>>たぶん、sysconfdir当たりのデフォルトが違うせいだと思います。 > >>>> > >>>>一旦、アンインストールして、再度configureでsysconfdirのオプションを指定してみてください。 > >>>> > >>>>#外しているかも知れませんが・・・・ > >>>> > >>>>以上です。 > >>>> > >>>> > >>>>----- Original Message ----- > >>>>>From: Masamichi Fukuda - elf-systems < > masamichi_fukud****@elf-s***** <javascript:;>> > >>>> > >>>>>To: 山内英生 <renay****@ybb***** <javascript:;>>; " > linux****@lists***** <javascript:;>" < > linux****@lists***** <javascript:;>> > >>>>>Date: 2015/3/10, Tue 11:25 > >>>>>Subject: Re: [Linux-ha-jp] Heartbeat3.0.6ソースインストールでのmakeエラーについて > >>>>> > >>>>> > >>>>>山内さん > >>>>> > >>>>>こんにちは、福田です。 > >>>>> > >>>>> > >>>>>おかげさまでインストールは完了しました。 > >>>>>ありがとうございました。 > >>>>> > >>>>> > >>>>>ただ、/etc/init.d/heartbeatで起動したのですが、 > >>>>> > >>>>># /etc/init.d/heartbeat start > >>>>>/etc/init.d/heartbeat: 57: .: Can't open > /usr/local/heartbeat/etc/ha.d/shellfuncs > >>>>> > >>>>> > >>>>>shellfuncsは以前パッケージで導入した/etc/ha.dにはあります。 > >>>>> > >>>>>今回heartbeatは、/usr/local/heartbeatディレクトリにインストールしたのですが。 > >>>>> > >>>>> > >>>>>宜しくお願いします。 > >>>>> > >>>>>以上 > >>>>> > >>>>> > >>>>>2015年3月10日 10:14 <renay****@ybb***** <javascript:;>>: > >>>>> > >>>>> > >>>>>>福田さん > >>>>>> > >>>>>>山内です。こんにちは。 > >>>>>> > >>>>>>環境に、xsltprocコマンドが入っていないのではないでしょうか? > >>>>>> > >>>>>>make時に以下のようにxsltprocコマンドを利用しています。 > >>>>>> > >>>>>>(snip) > >>>>>>XPERIMENTALDIRS = > >>>>>>XSLTPROC = /usr/bin/xsltproc > >>>>>>YACC = bison -y > >>>>>>(snip) > >>>>>> > >>>>>>もしかすると、外しているかも知れませんが・・・ > >>>>>> > >>>>>>以上です。 > >>>>>>----- Original Message ----- > >>>>>>>From: Masamichi Fukuda - elf-systems < > masamichi_fukud****@elf-s***** <javascript:;>> > >>>>>> > >>>>>>>To: renay****@yahoo***** <javascript:;>; " > linux****@lists***** <javascript:;>" < > linux****@lists***** <javascript:;>> > >>>>>>>Date: 2015/3/10, Tue 09:55 > >>>>>>>Subject: Re: [Linux-ha-jp] Heartbeat3.0.6ソースインストールでのmakeエラーについて > >>>>>>> > >>>>>>> > >>>>>>>山内さん > >>>>>>> > >>>>>>>おはようございます、福田です。 > >>>>>>>早速ありがとうございます。 > >>>>>>> > >>>>>>>--disable-fatal-warningsオプションを指定してconfigureを実行しましたら、 > >>>>>>>先ほどのエラーは出なくなりました。 > >>>>>>> > >>>>>>>ところがまた別のエラーが出てしまいました。 > >>>>>>> > >>>>>>>make[1]: Entering directory > `/var/tmp/Heartbeat-3-0-958e11be8686/doc' > >>>>>>>\ > >>>>>>> --xinclude \ > >>>>>>> > http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl > heartbeat.xml > >>>>>>>/bin/bash: line 2: --xinclude: command not found > >>>>>>>make[1]: *** [heartbeat.8] Error 127 > >>>>>>>make[1]: Leaving directory `/var/tmp/Heartbeat-3-0-958e11be8686/doc' > >>>>>>>make: *** [all-recursive] Error 1 > >>>>>>> > >>>>>>> > >>>>>>>bashでコマンドが見つからないと言われてしまいます。 > >>>>>>> > >>>>>>>宜しくお願いします。 > >>>>>>> > >>>>>>>以上 > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>>2015年3月10日 9:30 <renay****@yahoo***** <javascript:;>>: > >>>>>>> > >>>>>>>福田さん > >>>>>>>> > >>>>>>>>おはようございます。山内です。 > >>>>>>>> > > >>>>>>>>外しているかも知れませんが、--disable-fatal-warningsオプションを指定して./configureを実行してみてはどうでしょうか? > >>>>>>>> > >>>>>>>>エラー自体は、未使用変数に関するものですので、構築出来れば、無視しても問題ないはずです。 > >>>>>>>> > >>>>>>>> > >>>>>>>>以上です。 > >>>>>>>> > >>>>>>>> > >>>>>>>>----- Original Message ----- > >>>>>>>>>From: Masamichi Fukuda - elf-systems < > masamichi_fukud****@elf-s***** <javascript:;>> > >>>>>>>>>To: "linux****@lists***** <javascript:;>" < > linux****@lists***** <javascript:;>> > >>>>>>>>>Date: 2015/3/10, Tue 05:53 > >>>>>>>>>Subject: [Linux-ha-jp] Heartbeat3.0.6ソースインストールでのmakeエラーについて > >>>>>>>>> > >>>>>>>>> > >>>>>>>>>お世話になります、福田です。 > >>>>>>>>> > >>>>>>>>>検証のため、heartbeat3.0.6 + pacemaker1.1.12のインストールを開始しました。 > >>>>>>>>>OSはdebian7.8です。 > >>>>>>>>> > >>>>>>>>>cluster glue1.0.12はソースインストール完了しました。 > >>>>>>>>>pacemakerはまだ手を付けていません。 > >>>>>>>>> > >>>>>>>>>heartbeat3.0.6のインストールについて質問させて頂きます。 > >>>>>>>>> > >>>>>>>>>$ ./bootstrap > >>>>>>>>>$ ./configure > >>>>>>>>> > >>>>>>>>>は正常終了しています。 > >>>>>>>>> > >>>>>>>>>make時に次のエラーが出ます。 > >>>>>>>>> > >>>>>>>>>Making all in buildtools > >>>>>>>>>make[1]: Entering directory > `/var/tmp/Heartbeat-3-0-958e11be8686/buildtools' > >>>>>>>>>gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../include > -I/usr/local/include/heartbeat -I/usr/include/glib-2.0 > -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -Wno-unused -g -O2 -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 -Werror -ggdb3 -funsigned-char -MT ccdv-ccdv.o -MD > -MP -MF .deps/ccdv-ccdv.Tpo -c -o ccdv-ccdv.o `test -f 'ccdv.c' || echo > './'`ccdv.c > >>>>>>>>>ccdv.c: In function 'SlurpProgress': > >>>>>>>>>ccdv.c:116:32: error: variable 'trailcp' set but not used > [-Werror=unused-but-set-variable] > >>>>>>>>>ccdv.c:114:29: error: variable 'tleft' set but not used > [-Werror=unused-but-set-variable] > >>>>>>>>>ccdv.c: In function 'main': > >>>>>>>>>ccdv.c:362:11: error: variable 'retval' set but not used > [-Werror=unused-but-set-variable] > >>>>>>>>>cc1: all warnings being treated as errors > >>>>>>>>>make[1]: *** [ccdv-ccdv.o] Error 1 > >>>>>>>>>make[1]: Leaving directory > `/var/tmp/Heartbeat-3-0-958e11be8686/buildtools' > >>>>>>>>>make: *** [all-recursive] Error 1 > >>>>>>>>> > >>>>>>>>>何か解決策がありましたら、ご教示お願いします。 > >>>>>>>>> > >>>>>>>>>宜しくお願いします。 > >>>>>>>>> > >>>>>>>>>以上 > >>>>>>>>> > >>>>>>>>> > >>>>>>>>>-- > >>>>>>>>> > >>>>>>>>>ELF Systems > >>>>>>>>>Masamichi Fukuda > >>>>>>>>>mail to: masamichi_fukud****@elf-s***** <javascript:;> > >>>>>>>>>_______________________________________________ > >>>>>>>>>Linux-ha-japan mailing list > >>>>>>>>>Linux****@lists***** <javascript:;> > >>>>>>>>>http://lists.sourceforge.jp/mailman/listinfo/linux-ha-japan > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>> > >>>>>>>>_______________________________________________ > >>>>>>>>Linux-ha-japan mailing list > >>>>>>>>Linux****@lists***** <javascript:;> > >>>>>>>>http://lists.sourceforge.jp/mailman/listinfo/linux-ha-japan > >>>>>>>> > >>>>>>> > >>>>>>> > >>>>>>>-- > >>>>>>> > >>>>>>>ELF Systems > >>>>>>>Masamichi Fukuda > >>>>>>>mail to: masamichi_fukud****@elf-s***** <javascript:;> > >>>>>>>_______________________________________________ > >>>>>>>Linux-ha-japan mailing list > >>>>>>>Linux****@lists***** <javascript:;> > >>>>>>>http://lists.sourceforge.jp/mailman/listinfo/linux-ha-japan > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>> > >>>>>>_______________________________________________ > >>>>>>Linux-ha-japan mailing list > >>>>>>Linux****@lists***** <javascript:;> > >>>>>>http://lists.sourceforge.jp/mailman/listinfo/linux-ha-japan > >>>>>> > >>>>> > >>>>> > >>>>>-- > >>>>> > >>>>>ELF Systems > >>>>>Masamichi Fukuda > >>>>>mail to: masamichi_fukud****@elf-s***** <javascript:;> > >>>>> > >>>>> > >>>> > >>>>_______________________________________________ > >>>>Linux-ha-japan mailing list > >>>>Linux****@lists***** <javascript:;> > >>>>http://lists.sourceforge.jp/mailman/listinfo/linux-ha-japan > >>>> > >>> > >>> > >>>-- > >>> > >>>ELF Systems > >>>Masamichi Fukuda > >>>mail to: masamichi_fukud****@elf-s***** <javascript:;> > >>> > >>> > >> > >>_______________________________________________ > >>Linux-ha-japan mailing list > >>Linux****@lists***** <javascript:;> > >>http://lists.sourceforge.jp/mailman/listinfo/linux-ha-japan > >> > > > > > >-- > > > >ELF Systems > >Masamichi Fukuda > >mail to: masamichi_fukud****@elf-s***** <javascript:;> > > > > > > -- 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...다운로드