[Linux-ha-dev] [PATCH] I revise a space character cord of pound
Hi When I built latest resource-agents, I found an error. c2a0 cord of the UTF-8 mixed it with pound. I revised this in the space of ASCII. https://github.com/ClusterLabs/resource-agents/pull/197 Regards, Tomo ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
[Linux-ha-dev] [PATCH]JAVA_OPTS is not set definitely in JBoss
Hi JAVA_OPTS was not set definitely when I started Jboss in a jboss user, I revised it. https://github.com/ClusterLabs/resource-agents/pull/188 Regards, Tomo ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
[Linux-ha-dev] Tomcat: Proposal patch of new Tomcat-RA.
Hi, I made a patch of new Tomcat-RA based on the following suggestion. https://github.com/ClusterLabs/resource-agents/pull/79 The patches which I described are as follows. https://github.com/ClusterLabs/resource-agents/pull/110 Regards, Tomo -- Tomoya Nozawa ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
Re: [Linux-ha-dev] Request to everybody adding tag
Hi Lars, resource-agents v3.9.3 release. Signed tag has been added for that one. Thanks for your quick response. Did you know git describe --tags ? I did not know it. Should I make modifications as follows? diff --git a/make/git-version-gen b/make/git-version-gen index 795a98b..1a9a740 100755 --- a/make/git-version-gen +++ b/make/git-version-gen @@ -102,8 +102,8 @@ then # directory, and git describe output looks sensible, use that to # derive a version string. elif test `git log -1 --pretty=format:x . 21` = x \ - v=`git describe --abbrev=4 --match='v*' HEAD 2/dev/null \ - || git describe --abbrev=4 HEAD 2/dev/null` \ + v=`git describe --tag --abbrev=4 --match='v*' HEAD 2/dev/null \ + || git describe --tag --abbrev=4 HEAD 2/dev/null` \ v=`printf '%s\n' $v | sed $tag_sed_script` \ case $v in v[0-9]*) ;; Regards, Tomo On Wed, 30 May 2012 10:47:56 +0200 Lars Ellenberg lars.ellenb...@linbit.com wrote: On Mon, May 28, 2012 at 04:40:04PM +0900, noza...@gmail.com wrote: Hi Everybody adding tag please add -a or -s option. Because the script uses git describe when I make rpm package , a package is made with a strange value. Even though many Pacemaker tags are neither signed nor annotated as well (afaics), given the timing, I assume you refer to the recent resource-agents v3.9.3 release. Signed tag has been added for that one. Did you know git describe --tags ? Thanks, -- : Lars Ellenberg : LINBIT | Your Way to High Availability : DRBD/HA support and consulting http://www.linbit.com ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ -- Tomoya Nozawa ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
[Linux-ha-dev] Request to everybody adding tag
Hi Everybody adding tag please add -a or -s option. Because the script uses git describe when I make rpm package , a package is made with a strange value. Regards, Tomo -- Tomoya Nozawa ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
Re: [Linux-ha-dev] [PATCH] Addition to rotate of console log on jboss
Hi The test was completed including all the contents of the argument in following github. https://github.com/ClusterLabs/resource-agents/pull/86 I want you to approve the following pull request without an objection in particular. https://github.com/nozawat/resource-agents/commit/a478f4ed58435f214140e4e77ebda2e5b8fd0bb7 I want to put it in resource-agents-3.9.3. Regards, Tomo On Fri, 18 May 2012 10:52:41 +0900 nozaw...@intellilink.co.jp wrote: Hi Thank you for much comment. Because the comment of my modified history was not good, I did pull request including conventional modified contents newly. https://github.com/ClusterLabs/resource-agents/pull/93 The thing in front closed it. https://github.com/ClusterLabs/resource-agents/pull/86 Regards, Tomo On Mon, 14 May 2012 18:07:40 +0200 Dejan Muhamedagic de...@suse.de wrote: Hi Tomo-san, On Mon, May 14, 2012 at 04:25:19PM +0900, noza...@gmail.com wrote: Hi I incorporated rotate possible processing in console log in Jboss-RA. https://github.com/ClusterLabs/resource-agents/pull/86 For example, a result is output by console log when I acquire GC log. Therefore I want to enable rotate because log is easy to be enlarged. OK. You'll find some comments over there. Thanks, Dejan Regards, Tomo -- Tomoya Nozawa ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ -- Tomoya Nozawa ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ -- Tomoya Nozawa ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
[Linux-ha-dev] [PATCH] Addition to rotate of console log on jboss
Hi I incorporated rotate possible processing in console log in Jboss-RA. https://github.com/ClusterLabs/resource-agents/pull/86 For example, a result is output by console log when I acquire GC log. Therefore I want to enable rotate because log is easy to be enlarged. Regards, Tomo -- Tomoya Nozawa ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
[Linux-ha-dev] [PATCH] Correction at the time of the slapd start delay
Hi Dejan, It becomes the error at the time of a start delay of ldapserver now. Therefore I send a patch revising it. I did pull request to github. https://github.com/nozawat/resource-agents/commit/bbc0934ea7b906f818e3c7e00bfaaa61ae46bc51 Regards, Tomo -- Tomoya Nozawa ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
[Linux-ha-dev] about Issue #52 of resource-agents
Hi Tim I make a script version of findif now. In the script, I acquire information by the following commands. #ip -o -f inet6 route list I was going to confirm the following situation in Debian, but did not understand how I reappeared. https://github.com/ClusterLabs/resource-agents/issues/52 In the case of the upper situation, I want to know how becomes the result of the ip command. Regards, Tomo ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
Re: [Linux-ha-dev] Patch : slapd : Even if kill command fails in terminate, return success.
Hi Dejan Thank you for your reply. This patch doesn't look right. What if the first kill(1) fails (because, say, the process just exited)? And if '$result' is -ne 0, then the while loop will finish anyway. Yes,And output an error in an origin of summons and retry it. because kill repaid return 0 in the case of an error as for me, I made modifications to return 1 and output an error. Anyway, the terminate function looks too complicated for what it does. As for this correction, a logic is surely complicated. By the way, as for this correction, kill is effective when the error except the case without a process occurs. The situation did not hit on me. Can we also do a global replace s/result/rc/? OK,I contribute a patch again. 2012年3月29日22:35 Dejan Muhamedagic de...@suse.de: Hi Tomo, On Tue, Mar 27, 2012 at 10:27:36AM +0900, nozawat wrote: Hi Even if kill fails in terminate, return success. When kill fails, this is the patch which I revised to return an error definitely. This patch doesn't look right. What if the first kill(1) fails (because, say, the process just exited)? And if '$result' is -ne 0, then the while loop will finish anyway. Anyway, the terminate function looks too complicated for what it does. Can we also do a global replace s/result/rc/? Cheers, Dejan Regards, Tomo ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
Re: [Linux-ha-dev] Patch : slapd : Even if kill command fails in terminate, return success.
Hi Dejan Can we also do a global replace s/result/rc/? OK,I contribute a patch again. I made this patch, I attach it. Regards, Tomo 2012年3月30日12:03 nozawat noza...@gmail.com: Hi Dejan Thank you for your reply. This patch doesn't look right. What if the first kill(1) fails (because, say, the process just exited)? And if '$result' is -ne 0, then the while loop will finish anyway. Yes,And output an error in an origin of summons and retry it. because kill repaid return 0 in the case of an error as for me, I made modifications to return 1 and output an error. Anyway, the terminate function looks too complicated for what it does. As for this correction, a logic is surely complicated. By the way, as for this correction, kill is effective when the error except the case without a process occurs. The situation did not hit on me. Can we also do a global replace s/result/rc/? OK,I contribute a patch again. 2012年3月29日22:35 Dejan Muhamedagic de...@suse.de: Hi Tomo, On Tue, Mar 27, 2012 at 10:27:36AM +0900, nozawat wrote: Hi Even if kill fails in terminate, return success. When kill fails, this is the patch which I revised to return an error definitely. This patch doesn't look right. What if the first kill(1) fails (because, say, the process just exited)? And if '$result' is -ne 0, then the while loop will finish anyway. Anyway, the terminate function looks too complicated for what it does. Can we also do a global replace s/result/rc/? Cheers, Dejan Regards, Tomo ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ slapd.patch Description: Binary data ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
[Linux-ha-dev] Patch : slapd : Even if kill command fails in terminate, return success.
Hi Even if kill fails in terminate, return success. When kill fails, this is the patch which I revised to return an error definitely. Regards, Tomo slapd.patch Description: Binary data ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
[Linux-ha-dev] [PATCH]low:Violation of coding agreement of C
Hi When they built glue, the following warning produced me. lrmd.c: In function 'init_start': lrmd.c:1106: warning: ISO C90 forbids mixed declarations and code I attach a patch avoiding warning. Regards, Tomo lrmd.c.diff Description: Binary data ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
Re: [Linux-ha-dev] [resource-agents] `findif` could be rewritten in shell (#53)
Hi Lars, Thank you for your comment. An allotment of the same IP is not made now when IP is assigned to a loopback device in IPv6addr; have a problem. Which of IPaddr2 and IPv6addr do you think to revise it to solve this problem? Mori-san asks it about this in the following ML. http://www.gossamer-threads.com/lists/linuxha/dev/76429 Regards, Tomo 2012年2月7日20:06 Lars Ellenberg lars.ellenb...@linbit.com: On Mon, Feb 06, 2012 at 09:51:46PM +0900, nozawat wrote: Hi Lars I added IPv6 correspondence to a script of Lars. Which is nice, thank you ;-) but useless :( unless we also want to rewrite the currently written in C IPv6addr resource agent ... Which would also be nice, from my point of view. But I'm not sure if that is feasable. Cheers, -- : Lars Ellenberg : LINBIT | Your Way to High Availability : DRBD/HA support and consulting http://www.linbit.com ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
Re: [Linux-ha-dev] [resource-agents] `findif` could be rewritten in shell (#53)
Hi Lars I added IPv6 correspondence to a script of Lars. I am corresponding to the contents of the following ML. http://www.gossamer-threads.com/lists/linuxha/dev/76429 - #!/bin/bash findif() { local match NIC= NETMASK= BRDCAST=$OCF_RESKEY_broadcast match=$OCF_RESKEY_ip network=inet echo $match | grep -qs : if [ $? = 0 ];then network=inet6 fi if [ $network = inet ] ; then [ -n $OCF_RESKEY_cidr_netmask ] match=$match/$OCF_RESKEY_cidr_netmask set -- `ip -o -f inet route list match $match scope link` else set -- `ip -o -f inet6 route list match $match` fi if [ $# = 0 ] ; then case $OCF_RESKEY_ip in 127.*) set -- `ip -o -f $network route list match $match table local scope host` shift;; *::1) set -- `ip -o -f $network route list match $match table local` shift;; esac fi [ $# = 0 ] return 1 case $1 in */*) : OK ;; *) return 1 ;; esac NIC=$3 NETMASK=${1#*/} if [ $network = inet ] ; then set -- `ip -o -f $network addr show dev $NIC primary` [ $5 = brd ] BRDCAST=$6 : == DEBUG == brd $BRDCAST == fi return 0 } # try it: set -vx OCF_RESKEY_ip=192.168.133.222 findif OCF_RESKEY_ip=127.1.2.3/27 findif - Regards, Tomo Taking this to the mailing list as well, to give it a wider audience ... On Tue, Jan 31, 2012 at 07:56:56AM -0800, b-a-t wrote: Referring to the #52 I got the idea that shell script for finding interface by IP address could be better solution than parsing routing table in C. For (most) Linux distributions 'ip' command is a part of the standard installation and: pre # ip route get 10.0.0.220 10.0.0.220 dev eth1 src 10.0.0.106 /pre gives better and more portable results. For FreeBSD(and Solaris I guess): We can ignore non-Linux for IPaddr2, that is already linux specific. Even parsing of '/proc/net/route' is easier in shell, so I see no good reason for quite complex and not flexible C binary for these purpose(except the speed, possibly). If this idea gets support I can try to write such a replacement. once upon a time I started something like that already, just for fun. But then left it alone for quite some time, because, well, if it ain't broken, don't fix it... I'm not sure why we would care to specify an explicit broadcast address, so we probably should not try to guess it (the kernel knows better, anyways) and only put it into the command line if it really was passed in via configuration parameters, in case there actually is a use case for that. findif seems to have a few heuristics, which seem to override the input? Not sure here. There is also the hack-ish LVS support stuff in the script, we need to make sure that does not break. Nor any other aspect of unusual usage. Anyways, it may be a starting point: findif() { local match # FIXME: if all is specified, why would we try to second guess? # just use the input, and if it fails, it fails? # non-local, return values NIC= NETMASK= BRDCAST=$OCF_RESKEY_broadcast # FIXME just make sure you drop the brd $BRDCAST # from the ip addr add command if $BRDCAST is empty, # and the kernel will do the right thing. Or so me thinks... # Also see below, where we try to second guess BRDCAST. match=$OCF_RESKEY_ip # ip actually does not care if the mask is cidr or dotted quad, # as long as it is a mask. # No mask implies /32 (for the match, only). # The match in ip route list match ... will find the best (longest prefix) route. [ -n $OCF_RESKEY_cidr_netmask ] match=$match/$OCF_RESKEY_cidr_netmask # FIXME: what if the guessed nic, # and the requested nic, do not match? # Would tools/findif.c have ignored the input in that case? # Should the RA return $OCF_ERR_CONFIGURED in that case? ### FIXME ### [ -n $OCF_RESKEY_nic ] match=$match dev $OCF_RESKEY_nic # Only routes with scope link. set -- `ip -o -f inet route list match $match scope link` if [ $# = 0 ] ; then # possibly need to add special case for 127.x.y.z # at least tools/findif.c has one case $OCF_RESKEY_ip in 127.*) set -- `ip -o -f inet route list match $match table local scope host` # prints local as first word shift esac fi # Still nothing? Too bad. [ $# = 0 ] return 1 # paranoia case $1 in */*): OK ;; *) # No slash should only happen for table local, no mask # (or /32), and address already present, and even then # it should not show up as first line of output... # If we cannot guess the netmask, you need to specify it.
[Linux-ha-dev] low: ocf-shellfunc path correction of slapd
Hi Path designation of ocf-shellfunc remained old. Therefore I switched to a current path. Regards, Tomo slapd.patch Description: Binary data ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
Re: [Linux-ha-dev] [PATCH]Monitor failure and IPv6 support of apache-ra
Hi Dejan Why is it important to match multiple lines? When I check normal WEB page, I think that a newline code enters in almost all. Corresponding to that purpose, newline code thought whether it was necessary. But I know that Dejan deleted the handling of 'tr'. I deleted 'tr' or why will teach a reason? Is a problem of 'tr' the problem about the newline of the HTML side? Just curious: how do you put this string into statusurl? I'm sorry if different whether it was not to say that I show the HTML that I obtain in WGET. Regards, Tomo 2012年1月28日5:34 Dejan Muhamedagic de...@suse.de: Hi, On Fri, Jan 20, 2012 at 02:09:13PM +0900, nozawat wrote: Hi Dejan I'm agreeable in the opinion. I send the patch which I revised. I'll apply this one. BTW, can you share your use case. If there is not -z option, the following HTML files return an error. - example --- html body test /body /html --- I placed a page for checks and was going to monitor it. Even though I said I'd apply this one, I'm now rather reluctant, because it may break some existing configurations, for instance if there are anchors in the regular expression (^ or $). Why is it important to match multiple lines? Just curious: how do you put this string into statusurl? Cheers, Dejan Regards, Tomo 2012年1月20日4:20 Dejan Muhamedagic de...@suse.de: Hi, On Thu, Jan 19, 2012 at 11:42:07AM +0900, nozawat wrote: Hi Dejan and Lars I send the patch which settled a conventional argument. 1)apache-001.patch -I am the same with the patch which I sent last time. -It is the version that I added an option of the grep to. I'll apply this one. BTW, can you share your use case. 2)apache-002.patch -It is a processing method using tr at the age of HB2.1.4. Can't recall or see from the history why tr(1) was dropped (and it was me who removed it :( But I guess there was a reason for that. 3)http-mon.sh.patch -It is the patch which coupled my suggestion with A. After trying to rework the patch a bit, I think now that we need a different user interface, i.e. we should introduce a boolean parameter, say use_ipv6, then fix interface bind addresses depending on that. For instance, if user wants to use curl, then we'd need to add the -g option to make it work with IPv6. We can also try to figure out from the statusurl content if it contains an IPv6 address (echo $statusurl | grep -qs ::) then make the http client use IPv6 automatically. Would that work for you? Opinions? Cheers, Dejan 1) and 2) improve malfunction at the time of the monitor processing. 3) supports IPv6. The malfunction is not revised when I do not apply at least 1) or 2). I think that 2) plan is good, but leave the final judgment to Dejan. Regards, Tomo 2012年1月19日1:12 Dejan Muhamedagic de...@suse.de: Hi, On Wed, Jan 18, 2012 at 11:19:58AM +0900, nozawat wrote: Hi Dejna and Lars When, for example, it is a logic of the examples of Lars to try both, in the case of IPv6, is the check of IPv4 that I enter every time? Don't you hate that useless processing enters every time? In that case, I think that I should give a parameter such as OCF_RESKEY_bindaddress. -- bind_address=127.0.0.1 if [ -n $OCF_RESKEY_bindaddress ]; then bind_address=$OCF_RESKEY_bindaddress fi WGETOPTS=-O- -q -L --no-proxy --bind-address=$bind_address -- That's fine too. We can combine yours and Lars' proposal, i.e. in case bindaddress is not set, it tries both. Do you think you could prepare such a patch? BTW, the extra processing is minimal, in particular compared to the rest this RA does. Thanks, Dejan Regards, Tomo 2012年1月17日23:28 Dejan Muhamedagic de...@suse.de: On Tue, Jan 17, 2012 at 11:41:41AM +0100, Lars Ellenberg wrote: On Tue, Jan 17, 2012 at 11:07:09AM +0900, nozawat wrote: Hi Dejan and Lars, I send the patch which I revised according to indication of Lars. OK. I guess that this won't introduce a regression. And I guess that sometimes one may need a newline in the test string. I seemed to surely take such a step in the past. However, I thought that the tr processing was deleted that load became higher. Therefore I used the -z option. Thinking about it, maybe to reduce chance of regression, we can try both? I'm not sure about the default order, ipv4 or ipv6 first? for bind_address in 127.0.0.1 ::1 ; do wget ... ret=$? [ $ret = 0 ] break; # recent wget could [ $ret != 4 ] break, # Network error. But older wget return 1... done Dejan? Yes, that looks like the best way. Cheers, Dejan -- : Lars Ellenberg : LINBIT | Your Way to High
Re: [Linux-ha-dev] [PATCH]Monitor failure and IPv6 support of apache-ra
Hi Dejan I'm agreeable in the opinion. I send the patch which I revised. I'll apply this one. BTW, can you share your use case. If there is not -z option, the following HTML files return an error. - example --- html body test /body /html --- I placed a page for checks and was going to monitor it. Regards, Tomo 2012年1月20日4:20 Dejan Muhamedagic de...@suse.de: Hi, On Thu, Jan 19, 2012 at 11:42:07AM +0900, nozawat wrote: Hi Dejan and Lars I send the patch which settled a conventional argument. 1)apache-001.patch -I am the same with the patch which I sent last time. -It is the version that I added an option of the grep to. I'll apply this one. BTW, can you share your use case. 2)apache-002.patch -It is a processing method using tr at the age of HB2.1.4. Can't recall or see from the history why tr(1) was dropped (and it was me who removed it :( But I guess there was a reason for that. 3)http-mon.sh.patch -It is the patch which coupled my suggestion with A. After trying to rework the patch a bit, I think now that we need a different user interface, i.e. we should introduce a boolean parameter, say use_ipv6, then fix interface bind addresses depending on that. For instance, if user wants to use curl, then we'd need to add the -g option to make it work with IPv6. We can also try to figure out from the statusurl content if it contains an IPv6 address (echo $statusurl | grep -qs ::) then make the http client use IPv6 automatically. Would that work for you? Opinions? Cheers, Dejan 1) and 2) improve malfunction at the time of the monitor processing. 3) supports IPv6. The malfunction is not revised when I do not apply at least 1) or 2). I think that 2) plan is good, but leave the final judgment to Dejan. Regards, Tomo 2012年1月19日1:12 Dejan Muhamedagic de...@suse.de: Hi, On Wed, Jan 18, 2012 at 11:19:58AM +0900, nozawat wrote: Hi Dejna and Lars When, for example, it is a logic of the examples of Lars to try both, in the case of IPv6, is the check of IPv4 that I enter every time? Don't you hate that useless processing enters every time? In that case, I think that I should give a parameter such as OCF_RESKEY_bindaddress. -- bind_address=127.0.0.1 if [ -n $OCF_RESKEY_bindaddress ]; then bind_address=$OCF_RESKEY_bindaddress fi WGETOPTS=-O- -q -L --no-proxy --bind-address=$bind_address -- That's fine too. We can combine yours and Lars' proposal, i.e. in case bindaddress is not set, it tries both. Do you think you could prepare such a patch? BTW, the extra processing is minimal, in particular compared to the rest this RA does. Thanks, Dejan Regards, Tomo 2012年1月17日23:28 Dejan Muhamedagic de...@suse.de: On Tue, Jan 17, 2012 at 11:41:41AM +0100, Lars Ellenberg wrote: On Tue, Jan 17, 2012 at 11:07:09AM +0900, nozawat wrote: Hi Dejan and Lars, I send the patch which I revised according to indication of Lars. OK. I guess that this won't introduce a regression. And I guess that sometimes one may need a newline in the test string. I seemed to surely take such a step in the past. However, I thought that the tr processing was deleted that load became higher. Therefore I used the -z option. Thinking about it, maybe to reduce chance of regression, we can try both? I'm not sure about the default order, ipv4 or ipv6 first? for bind_address in 127.0.0.1 ::1 ; do wget ... ret=$? [ $ret = 0 ] break; # recent wget could [ $ret != 4 ] break, # Network error. But older wget return 1... done Dejan? Yes, that looks like the best way. Cheers, Dejan -- : Lars Ellenberg : LINBIT | Your Way to High Availability : DRBD/HA support and consulting http://www.linbit.com DRBD(R) and LINBIT(R) are registered trademarks of LINBIT, Austria. ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home
Re: [Linux-ha-dev] [PATCH]Monitor failure and IPv6 support of apache-ra
Hi Dejan and Lars I send the patch which settled a conventional argument. 1)apache-001.patch -I am the same with the patch which I sent last time. -It is the version that I added an option of the grep to. 2)apache-002.patch -It is a processing method using tr at the age of HB2.1.4. 3)http-mon.sh.patch -It is the patch which coupled my suggestion with A. 1) and 2) improve malfunction at the time of the monitor processing. 3) supports IPv6. The malfunction is not revised when I do not apply at least 1) or 2). I think that 2) plan is good, but leave the final judgment to Dejan. Regards, Tomo 2012年1月19日1:12 Dejan Muhamedagic de...@suse.de: Hi, On Wed, Jan 18, 2012 at 11:19:58AM +0900, nozawat wrote: Hi Dejna and Lars When, for example, it is a logic of the examples of Lars to try both, in the case of IPv6, is the check of IPv4 that I enter every time? Don't you hate that useless processing enters every time? In that case, I think that I should give a parameter such as OCF_RESKEY_bindaddress. -- bind_address=127.0.0.1 if [ -n $OCF_RESKEY_bindaddress ]; then bind_address=$OCF_RESKEY_bindaddress fi WGETOPTS=-O- -q -L --no-proxy --bind-address=$bind_address -- That's fine too. We can combine yours and Lars' proposal, i.e. in case bindaddress is not set, it tries both. Do you think you could prepare such a patch? BTW, the extra processing is minimal, in particular compared to the rest this RA does. Thanks, Dejan Regards, Tomo 2012年1月17日23:28 Dejan Muhamedagic de...@suse.de: On Tue, Jan 17, 2012 at 11:41:41AM +0100, Lars Ellenberg wrote: On Tue, Jan 17, 2012 at 11:07:09AM +0900, nozawat wrote: Hi Dejan and Lars, I send the patch which I revised according to indication of Lars. OK. I guess that this won't introduce a regression. And I guess that sometimes one may need a newline in the test string. I seemed to surely take such a step in the past. However, I thought that the tr processing was deleted that load became higher. Therefore I used the -z option. Thinking about it, maybe to reduce chance of regression, we can try both? I'm not sure about the default order, ipv4 or ipv6 first? for bind_address in 127.0.0.1 ::1 ; do wget ... ret=$? [ $ret = 0 ] break; # recent wget could [ $ret != 4 ] break, # Network error. But older wget return 1... done Dejan? Yes, that looks like the best way. Cheers, Dejan -- : Lars Ellenberg : LINBIT | Your Way to High Availability : DRBD/HA support and consulting http://www.linbit.com DRBD(R) and LINBIT(R) are registered trademarks of LINBIT, Austria. ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ apache-001.patch Description: Binary data apache-002.patch Description: Binary data http-mon.sh.patch Description: Binary data ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
Re: [Linux-ha-dev] [PATCH]Monitor failure and IPv6 support of apache-ra
Hi Dejna and Lars When, for example, it is a logic of the examples of Lars to try both, in the case of IPv6, is the check of IPv4 that I enter every time? Don't you hate that useless processing enters every time? In that case, I think that I should give a parameter such as OCF_RESKEY_bindaddress. -- bind_address=127.0.0.1 if [ -n $OCF_RESKEY_bindaddress ]; then bind_address=$OCF_RESKEY_bindaddress fi WGETOPTS=-O- -q -L --no-proxy --bind-address=$bind_address -- Regards, Tomo 2012年1月17日23:28 Dejan Muhamedagic de...@suse.de: On Tue, Jan 17, 2012 at 11:41:41AM +0100, Lars Ellenberg wrote: On Tue, Jan 17, 2012 at 11:07:09AM +0900, nozawat wrote: Hi Dejan and Lars, I send the patch which I revised according to indication of Lars. OK. I guess that this won't introduce a regression. And I guess that sometimes one may need a newline in the test string. I seemed to surely take such a step in the past. However, I thought that the tr processing was deleted that load became higher. Therefore I used the -z option. Thinking about it, maybe to reduce chance of regression, we can try both? I'm not sure about the default order, ipv4 or ipv6 first? for bind_address in 127.0.0.1 ::1 ; do wget ... ret=$? [ $ret = 0 ] break; # recent wget could [ $ret != 4 ] break, # Network error. But older wget return 1... done Dejan? Yes, that looks like the best way. Cheers, Dejan -- : Lars Ellenberg : LINBIT | Your Way to High Availability : DRBD/HA support and consulting http://www.linbit.com DRBD(R) and LINBIT(R) are registered trademarks of LINBIT, Austria. ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
Re: [Linux-ha-dev] [PATCH]Monitor failure and IPv6 support of apache-ra
Hi Dejan I was very sorry to mistake the spelling of your name (in the previous email). Regards, Tomo 2012年1月18日11:19 nozawat noza...@gmail.com: Hi Dejna and Lars When, for example, it is a logic of the examples of Lars to try both, in the case of IPv6, is the check of IPv4 that I enter every time? Don't you hate that useless processing enters every time? In that case, I think that I should give a parameter such as OCF_RESKEY_bindaddress. -- bind_address=127.0.0.1 if [ -n $OCF_RESKEY_bindaddress ]; then bind_address=$OCF_RESKEY_bindaddress fi WGETOPTS=-O- -q -L --no-proxy --bind-address=$bind_address -- Regards, Tomo 2012年1月17日23:28 Dejan Muhamedagic de...@suse.de: On Tue, Jan 17, 2012 at 11:41:41AM +0100, Lars Ellenberg wrote: On Tue, Jan 17, 2012 at 11:07:09AM +0900, nozawat wrote: Hi Dejan and Lars, I send the patch which I revised according to indication of Lars. OK. I guess that this won't introduce a regression. And I guess that sometimes one may need a newline in the test string. I seemed to surely take such a step in the past. However, I thought that the tr processing was deleted that load became higher. Therefore I used the -z option. Thinking about it, maybe to reduce chance of regression, we can try both? I'm not sure about the default order, ipv4 or ipv6 first? for bind_address in 127.0.0.1 ::1 ; do wget ... ret=$? [ $ret = 0 ] break; # recent wget could [ $ret != 4 ] break, # Network error. But older wget return 1... done Dejan? Yes, that looks like the best way. Cheers, Dejan -- : Lars Ellenberg : LINBIT | Your Way to High Availability : DRBD/HA support and consulting http://www.linbit.com DRBD(R) and LINBIT(R) are registered trademarks of LINBIT, Austria. ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
Re: [Linux-ha-dev] [PATCH]Monitor failure and IPv6 support of apache-ra
Hi Dejan and Lars, I send the patch which I revised according to indication of Lars. OK. I guess that this won't introduce a regression. And I guess that sometimes one may need a newline in the test string. I seemed to surely take such a step in the past. However, I thought that the tr processing was deleted that load became higher. Therefore I used the -z option. Regards, Tomo 2012年1月14日20:55 Lars Ellenberg lars.ellenb...@linbit.com: On Fri, Jan 13, 2012 at 06:58:21PM +0100, Dejan Muhamedagic wrote: Hi, On Wed, Dec 14, 2011 at 02:27:56PM +0900, nozawat wrote: Hi 1.apache.patch(Coping of monitor failure) When a newline code is included, I fail in a monitor. Therefore I coped with a newline code. OK. I guess that this won't introduce a regression. And I guess that sometimes one may need a newline in the test string. 2.http-mon.sh.patch(IPv6 support) When I did wget, I assigned 127.0.0.1 to --bind-address optionally, but this deleted it now for IPv4. Even IPv6 works by doing so it. But this may have adverse effect on existing configurations. For instance, if the configuration specifies a URL which may be accessed from outside, then suddenly a monitor will return success on any node in the cluster. I think that we need a different approach here. Why exactly IPv6 doesn't work? I think, because: $ wget -O- -q -L --no-proxy --bind-address 127.0.0.1 http://[::1]/; does not work. strace reveals: socket(PF_INET6, SOCK_STREAM, IPPROTO_IP) = 3 bind(3, {sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr(127.0.0.1)}, 16) = -1 EINVAL (Invalid argument) However, this does work: $ wget -O- -q -L --no-proxy --bind-address ::1 http://[::1]/; ; echo $? So maybe bindaddress should become an option as well? Or auto-detect: if ip -o -f inet6 a s dev lo | grep -q ::1/; then # alternatively, to not be linux specific, ifconfig lo | grep ... # in case the output is actually reliably grep-able accross OSes. bind_address=::1 else bind_address=127.0.0.1 fi Because, at least as long as net.ipv6.bindv6only = 0, binding to ::1 works for http://127.0.0.1 as well. Thanks, Dejan Regards, Tomo ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ -- : Lars Ellenberg : LINBIT | Your Way to High Availability : DRBD/HA support and consulting http://www.linbit.com DRBD(R) and LINBIT(R) are registered trademarks of LINBIT, Austria. ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ http-mon.sh.patch Description: Binary data ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
Re: [Linux-ha-dev] [PATCH]A monitor error and the log output of slapd
Hi Dejan Thank you for an applied. Regards, Tomo 2012年1月14日2:49 Dejan Muhamedagic de...@suse.de: Hi, On Wed, Jan 11, 2012 at 11:07:59AM +0900, nozawat wrote: Hi Dejan Thank you for your comments. I revise an indication point and send it again. Applied. Many thanks for the patches! Cheers, Dejan Regards, Tomo 2012年1月10日5:40 Dejan Muhamedagic de...@suse.de: Hi, On Wed, Dec 28, 2011 at 05:52:51PM +0900, nozawat wrote: Hi The patches of slapd are as follows. 1)slapd-001.patch -I made modifications to output a value of result code. It is usually referred to as exit code not result code. 2)slapd-002.patch -An error occurs at the time of a start by a timing. Therefore I made modifications to restrain the error at the time of the start. This patch introduces a lot of code repetition. Better something like this: local err_option=-err [ -z $1 ] err_option= ocf_run -q $err_option ... And two ifs for ocf_log err further down can be reduced to if [ -z $1 ] || [ -n $1 -a $result -ne 1 ]; then Cheers, Dejan Regards, Tomo ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
[Linux-ha-dev] Fwd: [PATCH]Comment for tomcat-ra and status-action and correction of the parameter check
Hi Dejan How do you think about a patch of this tomcat? The following patches want more you to look. This is a patch of the changes by a process check, but speaks the reason that I want to change. http://www.gossamer-threads.com/lists/linuxha/dev/75839#77203 Regards, Tomo -- 転送メッセージ -- From: nozawat noza...@gmail.com 日付: 2011年12月12日18:23 件名: [PATCH]Comment for tomcat-ra and status-action and correction of the parameter check To: High-Availability Linux Development List linux-ha-dev@lists.linux-ha.org Hi I made the following modifications in tomcat-ra. 1.tomcat-001.patch The default had a description to be called root in the comment of the tomcat_user parameter. However, I deleted the comment because there was not the default in root. 2.tomcat-002.patch I made modifications now because nothing did the status action to carry out a monitor. 3.tomcat-003.patch I added a check of JAVA_HOME and CATALINA_HOME and CATALINA_BASE like jboss-ra. Regards, Tomo tomcat-001.patch Description: Binary data tomcat-002.patch Description: Binary data tomcat-003.patch Description: Binary data ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
Re: [Linux-ha-dev] [PATCH]Monitor failure and IPv6 support of apache-ra
Hi Dejan,Tim How do you think about a patch of this apache? Regards, Tomo 2011年12月14日14:27 nozawat noza...@gmail.com: Hi 1.apache.patch(Coping of monitor failure) When a newline code is included, I fail in a monitor. Therefore I coped with a newline code. 2.http-mon.sh.patch(IPv6 support) When I did wget, I assigned 127.0.0.1 to --bind-address optionally, but this deleted it now for IPv4. Even IPv6 works by doing so it. Regards, Tomo ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
Re: [Linux-ha-dev] [PATCH]A monitor error and the log output of slapd
Hi Dejan Thank you for your comments. I revise an indication point and send it again. Regards, Tomo 2012年1月10日5:40 Dejan Muhamedagic de...@suse.de: Hi, On Wed, Dec 28, 2011 at 05:52:51PM +0900, nozawat wrote: Hi The patches of slapd are as follows. 1)slapd-001.patch -I made modifications to output a value of result code. It is usually referred to as exit code not result code. 2)slapd-002.patch -An error occurs at the time of a start by a timing. Therefore I made modifications to restrain the error at the time of the start. This patch introduces a lot of code repetition. Better something like this: local err_option=-err [ -z $1 ] err_option= ocf_run -q $err_option ... And two ifs for ocf_log err further down can be reduced to if [ -z $1 ] || [ -n $1 -a $result -ne 1 ]; then Cheers, Dejan Regards, Tomo ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ slapd-001.patch Description: Binary data slapd-002.patch Description: Binary data ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
[Linux-ha-dev] [PATCH]A monitor error and the log output of slapd
Hi The patches of slapd are as follows. 1)slapd-001.patch -I made modifications to output a value of result code. 2)slapd-002.patch -An error occurs at the time of a start by a timing. Therefore I made modifications to restrain the error at the time of the start. Regards, Tomo slapd-001.patch Description: Binary data slapd-002.patch Description: Binary data ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
[Linux-ha-dev] [PATCH]Check of configfile addition to rsyslog
Hi I added check of config file to rsyslog-ra Regards, Tomo rsyslog.patch Description: Binary data ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
[Linux-ha-dev] [PATCH]Bug correction of the return value to slapd
Hi Because a return value of slapd_validate_all was not returned definitely, I made modifications. Regards, Tomo slapd.patch Description: Binary data ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
Re: [Linux-ha-dev] change of process check in tomcat-ra
Hi Dejan I have two reasons to change the process check. 1)There is the pattern that pgrep does not work by contents to set in CATALINA_OPTS. For example, they are as follows. e.g.)-XX:+UseConcMarkSweepGC 2)It does not support plural parameters. Therefore I want to change a process check. Regards, Tomo 2011年11月17日14:51 nozawat noza...@gmail.com: Hi Dejan When I set CATALINA_OPTS from the outside, it is as follows. 1)It is set CATALINA_OPTS by crm-configure. 2)It is set CATALINA_OPTS by external file(setenv.sh) -setenv.sh is called from run.sh -In this case I set -Dname by all means. In this case it causes a mistake. Therefore I think that I should not use CATALINA_OPTS by a process monitoring when I consider outside setting. Does not it become a reason to change the process monitoring? Regards, Tomo 2011/11/11 nozawat noza...@gmail.com: Hi Dejan What is overwritten?Which environment variable do you refer to? It is CATALINA_OPTS. When CATALINA_OPTS is set from the outside, a right process check is not possible. It occurs at following time. 1.-Dname is not set(Outside setting). 2.When -Dname is different. 3.When setting of CATALINA_OPTS is different by cib and outside setting When I set CATALINA_OPTS in the tomcat-ra from the outside, there is the same definition to two places(cib and setenv.sh),and When I set -Dname definitely. It moves. However, is not it confusing? Regards, Tomo 2011/11/10 Dejan Muhamedagic de...@suse.de: On Fri, Nov 04, 2011 at 01:55:57PM +0900, nozawat wrote: Hi Dejan Are we sure that the pid file is _always_ going to exist and contain the PID? I believe that PID file exists, and I include pid. BTW, it is the next sentence to be important by this change. What's wrong with setting the tomcat_name parameter when it's really needed (i.e. it is different from the default tomcat)? For example, it may not move when CATALINA_OPTS is catalina.sh and is overwritten. It is to move without a problem even if an environment variable is set from the outside that I need. I'm sorry, but I don't understand much of this. Could you please rephrase. may not move, what may (not) move? What is overwritten? Which environment variable do you refer to? Cheers, Dejan Regards, Tomo 2011/11/4 Dejan Muhamedagic de...@suse.de: Hi, On Tue, Nov 01, 2011 at 09:31:10AM +0900, nozawat wrote: Hi Dejan Sorry,I got a wrong attached file. I send a right file. Are we sure that the pid file is _always_ going to exist and contain the PID? What's wrong with setting the tomcat_name parameter when it's really needed (i.e. it is different from the default tomcat)? If you don't produce good arguments, this change looks superfluous to me. Cheers, Dejan Regards, Tomo 2011/11/1 Dejan Muhamedagic de...@suse.de: Hi, On Thu, Oct 27, 2011 at 11:36:10AM +0900, nozawat wrote: Hi I changed the method of the process check in tomcat-ra. SEARCH_STR does not function when I set tomcat parameter in catalina.sh. This is the same one like the other to remove the pid file. Wrong patch attached? Thanks, Dejan Regards, Tomo ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
[Linux-ha-dev] [PATCH]Monitor failure and IPv6 support of apache-ra
Hi 1.apache.patch(Coping of monitor failure) When a newline code is included, I fail in a monitor. Therefore I coped with a newline code. 2.http-mon.sh.patch(IPv6 support) When I did wget, I assigned 127.0.0.1 to --bind-address optionally, but this deleted it now for IPv4. Even IPv6 works by doing so it. Regards, Tomo http-mon.sh.patch Description: Binary data apache.patch Description: Binary data ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
[Linux-ha-dev] [PATCH]Comment for tomcat-ra and status-action and correction of the parameter check
Hi I made the following modifications in tomcat-ra. 1.tomcat-001.patch The default had a description to be called root in the comment of the tomcat_user parameter. However, I deleted the comment because there was not the default in root. 2.tomcat-002.patch I made modifications now because nothing did the status action to carry out a monitor. 3.tomcat-003.patch I added a check of JAVA_HOME and CATALINA_HOME and CATALINA_BASE like jboss-ra. Regards, Tomo tomcat-001.patch Description: Binary data tomcat-002.patch Description: Binary data tomcat-003.patch Description: Binary data ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
Re: [Linux-ha-dev] In RHEL5 and RHEL6 about different HA_RSCTMP
Hi Andrew Right, but the location and its deletion date back over 8 years IIRC. I seem to delete it in the following. -http://hg.linux-ha.org/heartbeat-STABLE_3_0/file/7e3a82377fa8/heartbeat/heartbeat.c -- 991 if (system(rm -fr RSC_TMPDIR) != 0) { 992 cl_log(LOG_INFO, Removing %s failed, recreating., RSC_TMPDIR); 993 } -- Regards, Tomo 2011/12/8 Andrew Beekhof and...@beekhof.net: On Tue, Dec 6, 2011 at 8:00 PM, nozawat noza...@gmail.com wrote: Hi A maintenance mode in the heartbeat-stack does not work by this difference now in RHEL6. The reason is because /var/run/heartbeat/rsctmp is deleted at the time of initialization of Heartbeat. Right, but the location and its deletion date back over 8 years IIRC. Some RA makes a status file there. Which makes the resource seemed stopped? At the point heartbeat starts all bets are off and the RA needs to be able to correctly rediscover its own state. The resource-agents.spec files are as follows. -- 151 %if 0%{?fedora} = 11 || 0%{?centos_version} 5 || 0%{?rhel} 5 152 CFLAGS=$(echo '%{optflags}') 153 %global conf_opt_rsctmpdir --with-rsctmpdir=%{_var}/run/heartbeat/rsctmp 154 %global conf_opt_fatal --enable-fatal-warnings=no 155 %else 156 CFLAGS=${CFLAGS} ${RPM_OPT_FLAGS} 157 %global conf_opt_fatal --enable-fatal-warnings=yes 158 %endif -- Why is it that I use rsctmp in RHEL6? Should I want to delete the 153 line if possible? I contribute a patch if good. Regards, Tomo ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
[Linux-ha-dev] In RHEL5 and RHEL6 about different HA_RSCTMP
Hi A maintenance mode in the heartbeat-stack does not work by this difference now in RHEL6. The reason is because /var/run/heartbeat/rsctmp is deleted at the time of initialization of Heartbeat. Some RA makes a status file there. The resource-agents.spec files are as follows. -- 151 %if 0%{?fedora} = 11 || 0%{?centos_version} 5 || 0%{?rhel} 5 152 CFLAGS=$(echo '%{optflags}') 153 %global conf_opt_rsctmpdir --with-rsctmpdir=%{_var}/run/heartbeat/rsctmp 154 %global conf_opt_fatal --enable-fatal-warnings=no 155 %else 156 CFLAGS=${CFLAGS} ${RPM_OPT_FLAGS} 157 %global conf_opt_fatal --enable-fatal-warnings=yes 158 %endif -- Why is it that I use rsctmp in RHEL6? Should I want to delete the 153 line if possible? I contribute a patch if good. Regards, Tomo ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
Re: [Linux-ha-dev] In RHEL5 and RHEL6 about different HA_RSCTMP
Hi I requested pull. https://github.com/ClusterLabs/resource-agents/pull/41 Regards, Tomo 2011/12/6 nozawat noza...@gmail.com: Hi A maintenance mode in the heartbeat-stack does not work by this difference now in RHEL6. The reason is because /var/run/heartbeat/rsctmp is deleted at the time of initialization of Heartbeat. Some RA makes a status file there. The resource-agents.spec files are as follows. -- 151 %if 0%{?fedora} = 11 || 0%{?centos_version} 5 || 0%{?rhel} 5 152 CFLAGS=$(echo '%{optflags}') 153 %global conf_opt_rsctmpdir --with-rsctmpdir=%{_var}/run/heartbeat/rsctmp 154 %global conf_opt_fatal --enable-fatal-warnings=no 155 %else 156 CFLAGS=${CFLAGS} ${RPM_OPT_FLAGS} 157 %global conf_opt_fatal --enable-fatal-warnings=yes 158 %endif -- Why is it that I use rsctmp in RHEL6? Should I want to delete the 153 line if possible? I contribute a patch if good. Regards, Tomo ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
Re: [Linux-ha-dev] [PATCH]Three corrections of slapd
Hi Dejan Oops, I misread the code :-) I'll apply this patch too. Thanks! I wait to be applied. Regards, Tomo 2011/12/5 Dejan Muhamedagic de...@suse.de: Hi Tomo, On Mon, Dec 05, 2011 at 10:09:24AM +0900, nozawat wrote: Hi Dejan 1.slapd-001.patch When there is not PID file, I add the error log output. It could happen that slapd takes longer to start. I don't think it would make sense to log error in that case. This patch is not start processing, It is a patch of the monitor processing. When PID file did not exist by monitor processing, I thought that it was proper to output error-log. Oops, I misread the code :-) I'll apply this patch too. Cheers, Dejan Regards, Tomo 2011/12/2 Dejan Muhamedagic de...@suse.de: Hi, On Fri, Dec 02, 2011 at 11:59:22AM +0900, nozawat wrote: Hi 1.slapd-001.patch When there is not PID file, I add the error log output. It could happen that slapd takes longer to start. I don't think it would make sense to log error in that case. 2.slapd-002.patch Bug correction of the while sentence. Applied. 3.slapd-003.patch Spelling miscorrection of the return code. Applied. Good catch. Cheers, Dejan Regards, Tomo ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
Re: [Linux-ha-dev] [PATCH]Three corrections of slapd
Hi Dejan 1.slapd-001.patch When there is not PID file, I add the error log output. It could happen that slapd takes longer to start. I don't think it would make sense to log error in that case. This patch is not start processing, It is a patch of the monitor processing. When PID file did not exist by monitor processing, I thought that it was proper to output error-log. Regards, Tomo 2011/12/2 Dejan Muhamedagic de...@suse.de: Hi, On Fri, Dec 02, 2011 at 11:59:22AM +0900, nozawat wrote: Hi 1.slapd-001.patch When there is not PID file, I add the error log output. It could happen that slapd takes longer to start. I don't think it would make sense to log error in that case. 2.slapd-002.patch Bug correction of the while sentence. Applied. 3.slapd-003.patch Spelling miscorrection of the return code. Applied. Good catch. Cheers, Dejan Regards, Tomo ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
[Linux-ha-dev] [PATCH]Three corrections of slapd
Hi 1.slapd-001.patch When there is not PID file, I add the error log output. 2.slapd-002.patch Bug correction of the while sentence. 3.slapd-003.patch Spelling miscorrection of the return code. Regards, Tomo slapd-001.patch Description: Binary data slapd-002.patch Description: Binary data slapd-003.patch Description: Binary data ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
[Linux-ha-dev] [PATCH]LSB_STATUS_STOPPED is not initialized in jboss-ra
Hi NULL returns now when status processing is carried out. Therefore I set a value in LSB_STATUS_STOPPED. Regards, Tomo jboss.patch Description: Binary data ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
Re: [Linux-ha-dev] [PATCH2/2]delete the comment
Hi Dejan Thanks a lot. Regards, Tomo 2011/11/21 Dejan Muhamedagic de...@suse.de: Hi, On Mon, Nov 21, 2011 at 03:14:23PM +0900, nozawat wrote: Hi I deleted the comment of the parameter not to exist. Applied. Cheers, Dejan Regards, Tomo ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
[Linux-ha-dev] [PATCH1/2]Start handling of rsyslog correction
Hi This occurs in the following environment. 1) It occurs in RHEL5.x, but does not occur in RHEL6.x. Even if this starts in the same way in a terminal, it stop. Backquote seems to be bad. Regards, Tomo rsyslog-001.patch Description: Binary data ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
[Linux-ha-dev] [PATCH2/2]delete the comment
Hi I deleted the comment of the parameter not to exist. Regards, Tomo rsyslog-002.patch Description: Binary data ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
Re: [Linux-ha-dev] change of process check in tomcat-ra
Hi Dejan When I set CATALINA_OPTS from the outside, it is as follows. 1)It is set CATALINA_OPTS by crm-configure. 2)It is set CATALINA_OPTS by external file(setenv.sh) -setenv.sh is called from run.sh -In this case I set -Dname by all means. In this case it causes a mistake. Therefore I think that I should not use CATALINA_OPTS by a process monitoring when I consider outside setting. Does not it become a reason to change the process monitoring? Regards, Tomo 2011/11/11 nozawat noza...@gmail.com: Hi Dejan What is overwritten?Which environment variable do you refer to? It is CATALINA_OPTS. When CATALINA_OPTS is set from the outside, a right process check is not possible. It occurs at following time. 1.-Dname is not set(Outside setting). 2.When -Dname is different. 3.When setting of CATALINA_OPTS is different by cib and outside setting When I set CATALINA_OPTS in the tomcat-ra from the outside, there is the same definition to two places(cib and setenv.sh),and When I set -Dname definitely. It moves. However, is not it confusing? Regards, Tomo 2011/11/10 Dejan Muhamedagic de...@suse.de: On Fri, Nov 04, 2011 at 01:55:57PM +0900, nozawat wrote: Hi Dejan Are we sure that the pid file is _always_ going to exist and contain the PID? I believe that PID file exists, and I include pid. BTW, it is the next sentence to be important by this change. What's wrong with setting the tomcat_name parameter when it's really needed (i.e. it is different from the default tomcat)? For example, it may not move when CATALINA_OPTS is catalina.sh and is overwritten. It is to move without a problem even if an environment variable is set from the outside that I need. I'm sorry, but I don't understand much of this. Could you please rephrase. may not move, what may (not) move? What is overwritten? Which environment variable do you refer to? Cheers, Dejan Regards, Tomo 2011/11/4 Dejan Muhamedagic de...@suse.de: Hi, On Tue, Nov 01, 2011 at 09:31:10AM +0900, nozawat wrote: Hi Dejan Sorry,I got a wrong attached file. I send a right file. Are we sure that the pid file is _always_ going to exist and contain the PID? What's wrong with setting the tomcat_name parameter when it's really needed (i.e. it is different from the default tomcat)? If you don't produce good arguments, this change looks superfluous to me. Cheers, Dejan Regards, Tomo 2011/11/1 Dejan Muhamedagic de...@suse.de: Hi, On Thu, Oct 27, 2011 at 11:36:10AM +0900, nozawat wrote: Hi I changed the method of the process check in tomcat-ra. SEARCH_STR does not function when I set tomcat parameter in catalina.sh. This is the same one like the other to remove the pid file. Wrong patch attached? Thanks, Dejan Regards, Tomo ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
Re: [Linux-ha-dev] I change java_home of JBoss-RA to the required parameter
Hi Dejan Thank you for a reply. JAVA_HOME is necessary by all means to start JBoss. I did not understand a method to hand an environment variable from the outside. Therefore I deleted change and JAVA_HOME to a required parameter. Regards, Tomo 2011/11/14 Dejan Muhamedagic de...@suse.de: Hi, On Fri, Nov 11, 2011 at 06:08:53PM +0900, nozawat wrote: Hi It is not usually possible that an environment variable passes. Therefore I revised java_home in a required parameter. Sorry, we cannot do this. It will break existing installations. Why would you need this parameter to be required? Thanks, Dejan Regards, Tomo ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
Re: [Linux-ha-dev] I change java_home of JBoss-RA to the required parameter
Hi Dejan Certainly there is a way to set a system wide environment variable. Perhaps it depends on the distribution. OK. Then it is deleted JAVA_HOME It is surely bad to do. But what's the point? The RA allows java_home to be set, so you can do that. If somebody else has an environment already set which includes JAVA_HOME, then they can skip setting this parameter. Where do you see a problem? I thought that JAVA_HOME was not set. Therefore I set required=1. In java_home, the problem does not occur because I can set it. However, I thought that I should set required=1 if JAVA_HOME was not set. Please destroy this patch. Regards, Tomo 2011/11/14 Dejan Muhamedagic deja...@fastmail.fm: Hi, On Mon, Nov 14, 2011 at 11:03:40PM +0900, nozawat wrote: Hi Dejan Thank you for a reply. JAVA_HOME is necessary by all means to start JBoss. I did not understand a method to hand an environment variable from the outside. Certainly there is a way to set a system wide environment variable. Perhaps it depends on the distribution. Therefore I deleted change and JAVA_HOME to a required parameter. But what's the point? The RA allows java_home to be set, so you can do that. If somebody else has an environment already set which includes JAVA_HOME, then they can skip setting this parameter. Where do you see a problem? Thanks, Dejan Regards, Tomo 2011/11/14 Dejan Muhamedagic de...@suse.de: Hi, On Fri, Nov 11, 2011 at 06:08:53PM +0900, nozawat wrote: Hi It is not usually possible that an environment variable passes. Therefore I revised java_home in a required parameter. Sorry, we cannot do this. It will break existing installations. Why would you need this parameter to be required? Thanks, Dejan Regards, Tomo ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
[Linux-HA] About status handling of ocf-ra
Hi I thought that the status was called by V1 mode of Heartbeat. However, status calls monitor in /etc/ha.d/resource.d/hto-mapfuncs. --- hto-mapfuncs:56 status) $__SCRIPT_NAME monitor;;# Mapping this to monitor is a bug --- Is the status processing an unnecessary cord? Or may status be called from others? Regards, Tomo ___ Linux-HA mailing list Linux-HA@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
Re: [Linux-ha-dev] I change java_home of JBoss-RA to the required parameter
Hi I'm sorry. I got a wrong patch file that I attached. I attach a right file. Regards, Tomo 2011/11/11 nozawat noza...@gmail.com: Hi It is not usually possible that an environment variable passes. Therefore I revised java_home in a required parameter. Regards, Tomo jboss.patch Description: Binary data ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
Re: [Linux-ha-dev] Patch to JBoss RA
Hi All, I divided the patch which David sent into two. 1) 001-jboss.patch It is the patch which changed '\n' to '\'. 2) 002-jboss.patch It is a patch for the parameter addition of JAVA_OPTS. I added export of JAVA_OPTS from a patch of David. Regards, Tomo 2011/11/8 Dejan Muhamedagic deja...@fastmail.fm: Hi Lars, On Sun, Nov 06, 2011 at 09:56:12PM +0100, Lars Ellenberg wrote: On Fri, Nov 04, 2011 at 09:42:50AM -0500, David Gersic wrote: On 11/3/2011 at 11:20 AM, Dejan Muhamedagic de...@suse.de wrote: Hunks 2 and 3 fail, don't know if it's due to space being mangled or the jboss RA version you worked on is old: I started with the newest JBoss RA I could find, but that was a while ago. Where can I get the current one? Also, was there a reason removing \n in the export lines? To be honest, I don't remember. I think I had problems getting it working with them in. I'll re-check that though. They are wrong. They would try to execute some binary named n. Really? Oops. I thought that this was tested and I think that there are some that use the RA. Yes, please, remove these bogus \n. No objection, as long as it's in a separate patch :) Cheers, Dejan -- : Lars Ellenberg : LINBIT | Your Way to High Availability : DRBD/HA support and consulting http://www.linbit.com ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ 001-jboss.patch Description: Binary data 002-jboss.patch Description: Binary data ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
[Linux-ha-dev] I change java_home of JBoss-RA to the required parameter
Hi It is not usually possible that an environment variable passes. Therefore I revised java_home in a required parameter. Regards, Tomo tomcat.patch Description: Binary data ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
Re: [Linux-ha-dev] change of process check in tomcat-ra
Hi Dejan What is overwritten?Which environment variable do you refer to? It is CATALINA_OPTS. When CATALINA_OPTS is set from the outside, a right process check is not possible. It occurs at following time. 1.-Dname is not set(Outside setting). 2.When -Dname is different. 3.When setting of CATALINA_OPTS is different by cib and outside setting When I set CATALINA_OPTS in the tomcat-ra from the outside, there is the same definition to two places(cib and setenv.sh),and When I set -Dname definitely. It moves. However, is not it confusing? Regards, Tomo 2011/11/10 Dejan Muhamedagic de...@suse.de: On Fri, Nov 04, 2011 at 01:55:57PM +0900, nozawat wrote: Hi Dejan Are we sure that the pid file is _always_ going to exist and contain the PID? I believe that PID file exists, and I include pid. BTW, it is the next sentence to be important by this change. What's wrong with setting the tomcat_name parameter when it's really needed (i.e. it is different from the default tomcat)? For example, it may not move when CATALINA_OPTS is catalina.sh and is overwritten. It is to move without a problem even if an environment variable is set from the outside that I need. I'm sorry, but I don't understand much of this. Could you please rephrase. may not move, what may (not) move? What is overwritten? Which environment variable do you refer to? Cheers, Dejan Regards, Tomo 2011/11/4 Dejan Muhamedagic de...@suse.de: Hi, On Tue, Nov 01, 2011 at 09:31:10AM +0900, nozawat wrote: Hi Dejan Sorry,I got a wrong attached file. I send a right file. Are we sure that the pid file is _always_ going to exist and contain the PID? What's wrong with setting the tomcat_name parameter when it's really needed (i.e. it is different from the default tomcat)? If you don't produce good arguments, this change looks superfluous to me. Cheers, Dejan Regards, Tomo 2011/11/1 Dejan Muhamedagic de...@suse.de: Hi, On Thu, Oct 27, 2011 at 11:36:10AM +0900, nozawat wrote: Hi I changed the method of the process check in tomcat-ra. SEARCH_STR does not function when I set tomcat parameter in catalina.sh. This is the same one like the other to remove the pid file. Wrong patch attached? Thanks, Dejan Regards, Tomo ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
Re: [Linux-ha-dev] change of process check in tomcat-ra
Hi Dejan Are we sure that the pid file is _always_ going to exist and contain the PID? I believe that PID file exists, and I include pid. BTW, it is the next sentence to be important by this change. What's wrong with setting the tomcat_name parameter when it's really needed (i.e. it is different from the default tomcat)? For example, it may not move when CATALINA_OPTS is catalina.sh and is overwritten. It is to move without a problem even if an environment variable is set from the outside that I need. Regards, Tomo 2011/11/4 Dejan Muhamedagic de...@suse.de: Hi, On Tue, Nov 01, 2011 at 09:31:10AM +0900, nozawat wrote: Hi Dejan Sorry,I got a wrong attached file. I send a right file. Are we sure that the pid file is _always_ going to exist and contain the PID? What's wrong with setting the tomcat_name parameter when it's really needed (i.e. it is different from the default tomcat)? If you don't produce good arguments, this change looks superfluous to me. Cheers, Dejan Regards, Tomo 2011/11/1 Dejan Muhamedagic de...@suse.de: Hi, On Thu, Oct 27, 2011 at 11:36:10AM +0900, nozawat wrote: Hi I changed the method of the process check in tomcat-ra. SEARCH_STR does not function when I set tomcat parameter in catalina.sh. This is the same one like the other to remove the pid file. Wrong patch attached? Thanks, Dejan Regards, Tomo ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
Re: [Linux-ha-dev] change of process check in tomcat-ra
Hi Dejan Sorry,I got a wrong attached file. I send a right file. Regards, Tomo 2011/11/1 Dejan Muhamedagic de...@suse.de: Hi, On Thu, Oct 27, 2011 at 11:36:10AM +0900, nozawat wrote: Hi I changed the method of the process check in tomcat-ra. SEARCH_STR does not function when I set tomcat parameter in catalina.sh. This is the same one like the other to remove the pid file. Wrong patch attached? Thanks, Dejan Regards, Tomo ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ tomcat.patch Description: Binary data ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
[Linux-ha-dev] change of process check in tomcat-ra
Hi I changed the method of the process check in tomcat-ra. SEARCH_STR does not function when I set tomcat parameter in catalina.sh. Regards, Tomo tomcat.patch Description: Binary data ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
[Linux-ha-dev] Patch for the tomcat old version
Hi This patch is a patch for the malfunction that occurred at the time of tomat6.0.29 use. Because Tomcat does not start this when PID file is left, I delete the PID file. Handling of the PID file is like the transition period now in catalina.sh. Therefore I delete it passably. By the way, I seem to work even if PID file remains behind in latest Tomcat6.0.32. Regards, Tomo tomcat.patch Description: Binary data ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
[Linux-ha-dev] Correction of the library dependence in the build on OpenSUSE-11
Hi Because a library name of gnutls-devel is changed in OpenSUSE11, I send the spec-file which revised dependence. Regards, Tomo pacemaker.spec.in.patch Description: Binary data ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
[Linux-ha-dev] [PATCH]Description addition of the GNU license
Hi I forgot to describe GPL2 license in resource-agents of syslog-ng and rsyslog. I send the patch which I added GPL2 license to. Regards, Tomo rsyslog.patch Description: Binary data syslog-ng.patch Description: Binary data ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
Re: [Linux-ha-dev] [PATCH]Correction of a monitor and the log output of slapd
Hi Dejan. Thank you for applied. Please send one patch per issue in future. I will be careful in future. Regards, Tomo 2011/10/18 Dejan Muhamedagic de...@suse.de Hi, On Mon, Oct 17, 2011 at 10:35:22AM +0900, nozawat wrote: Hi Please comment. It is necessary to let you reflect this correction. Regards, Tomo 2011/10/7 nozawat noza...@gmail.com Hi I revised the following processing in slpad. 1)Confirmation of having started definitely. 2)Restraint of the log output in the monitor. Applied as two changesets. Please send one patch per issue in future. Many thanks for the contribution. Cheers, Dejan Regards, Tomo ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
Re: [Linux-ha-dev] [PATCH]Correction of a monitor and the log output of slapd
Hi Please comment. It is necessary to let you reflect this correction. Regards, Tomo 2011/10/7 nozawat noza...@gmail.com Hi I revised the following processing in slpad. 1)Confirmation of having started definitely. 2)Restraint of the log output in the monitor. Regards, Tomo ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
Re: [Linux-ha-dev] [PATCH]Patch to build cluster-glue in Fedora15
Hi Dejan Thank you for applied. The build succeeded. Regards, Tomo 2011/10/13 Dejan Muhamedagic de...@suse.de Hi, On Wed, Oct 12, 2011 at 04:27:54PM +0900, nozawat wrote: Hi I found the same phenomenon in past ML. How did this turn out? http://www.gossamer-threads.com/lists/linuxha/dev/73474 It turned out to be forgotten :( I applied the patch which was proposed in one of the messages. If you try the latest glue repository, it should build OK. Cheers, Dejan Regards, Tomo 2011/10/12 nozawat noza...@gmail.com Hi Dejan I send the contents of the build error. The content of the error is as follows. 1)error: variable 'internal_type' set but not used [-Werror=unused-but-set-variable]. 2)error: to be safe all intermediate pointers in cast from 'char **' to 'const char **' must be 'const' qualified [-Werror=cast-qual] 1) is log from a build start. 2) is log only for error points. Regards, Tomo 2011/10/12 nozawat noza...@gmail.com Hi Dejan Can you please show the output of configure. Perhaps we should fix it in code. OK,I make the patch for the code and send it. Regards, Tomo 2011/10/12 Dejan Muhamedagic de...@suse.de Hi, On Tue, Oct 11, 2011 at 08:52:06PM +0900, nozawat wrote: Hi I added the option which just handled warning for gcc-4.6 in Fedora. Can you please show the output of configure. Perhaps we should fix it in code. Thanks, Dejan Regards, Tomo ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
Re: [Linux-ha-dev] [PATCH] [glue] Fix compilation with GCC 4.6
Hi BTW, does this get rid of the compiler warning as well? The warning did not change. I build in gcc4.6.1 of Fedora15. --- apcsmart.c: In function 'apcsmart_hostlist': apcsmart.c:725:34: error: cast discards '__attribute__((const))' qualifier from pointer target type [-Werror=cast-qual] cc1: all warnings being treated as errors -- Regards, Tomo 2011/10/13 Lars Ellenberg lars.ellenb...@linbit.com On Wed, Oct 12, 2011 at 09:03:47PM +0200, Dejan Muhamedagic wrote: On Mon, Jul 04, 2011 at 09:42:55PM +0100, Pádraig Brady wrote: On 01/07/11 11:23, Dejan Muhamedagic wrote: Hi, On Fri, Jul 01, 2011 at 01:37:32AM +0100, Pádraig Brady wrote: On 30/06/11 20:33, Lars Ellenberg wrote: On Wed, Jun 29, 2011 at 12:55:08PM +0100, Pádraig Brady wrote: On 29/06/11 11:56, Lars Ellenberg wrote: On Tue, Jun 28, 2011 at 01:44:23AM +0100, Pádraig Brady wrote: The attached patch fixes compilation -Werrors with GCC 4.6 cheers, Pádraig. Fix compilation with GCC 4.6 avoid -Werror=unused-but-set-variable issues remove -Wcast-qual which caused issues with copyHostList() Care to explain or show those issues? All uses of copyHostList error like: apcsmart.c: In function 'apcsmart_hostlist': apcsmart.c:722:34: error: to be safe all intermediate pointers in cast from 'char **' to 'const char **' must be 'const' qualified [-Werror=cast-qual] From the gcc 4.5 documentation: -Wcast-qual Warn whenever a pointer is cast so as to remove a type qualifier from the target type. For example, warn if a const char * is cast to an ordinary char *. Also warn when making a cast which introduces a type qualifier in an unsafe way. For example, casting char ** to const char ** is unsafe, as in this ex- ample: /* p is char ** value. */ const char **q = (const char **) p; /* Assignment of readonly string to const char * is OK. *q = string; /* Now char** pointer points to read-only memory. */ **p = ’b’; So apparently it needs to be include/stonith/stonith_plugin.h: struct StonithImports_s { ... - char **(*CopyHostList)(const char ** hlstring); + char **(*CopyHostList)(const char * const * hlstring); And the callers have to be adjusted accordingly? Could you check if that works? Sure, that would work but would involve a lot of changes I think. I was unsure how changing this interface might affect users outside this project, but if that's OK I'll go ahead and change that (tomorrow when I'm more awake). It should be OK. It is a change which may break compilation, then if somebody's using the libraries they should fix their code accordingly. I had another look, and I think this introduces too much churn. Sometimes new GCC warnings are a little intrusive for general use and I think -Wcast-qual is in this category for the moment. It could be that we're just really unlucky with cast-qual and how some stonith internals were done. The specific pattern at issue here is: char ** array_of_strings; One should be able to cast to the appropriate level of constness to: sort (const char**); copy (const char* const*); free (char **); So please consider my last patch instead. I did just now, very sorry for such a delay. Applied as two patches, one to disable cast-qual and another to drop unused vars. Many thanks for the patches. BTW, does this get rid of the compiler warning as well? - return OurImports-CopyHostList((const char **)ad-hostlist); + return OurImports-CopyHostList((const char **)(const char * const *)ad-hostlist); If it does, maybe introducing a #define CONST_CHAR_PP_CAST(x) ((const char **)(const char * const *)(x)) #define COPY_HOSTLIST_CAST(x) CONST_CHAR_PP_CAST(x) would enable us to keep -Wcast-qual for now? Makes it easier as well, if we later chose to change the interface to take const char * const *. -- : Lars Ellenberg : LINBIT | Your Way to High Availability : DRBD/HA support and consulting http://www.linbit.com ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
[Linux-ha-dev] [PATCH]Patch to build cluster-glue in Fedora15
Hi I added the option which just handled warning for gcc-4.6 in Fedora. Regards, Tomo configure.ac.patch Description: Binary data ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
Re: [Linux-ha-dev] [PATCH]Patch to build cluster-glue in Fedora15
Hi Dejan Can you please show the output of configure. Perhaps we should fix it in code. OK,I make the patch for the code and send it. Regards, Tomo 2011/10/12 Dejan Muhamedagic de...@suse.de Hi, On Tue, Oct 11, 2011 at 08:52:06PM +0900, nozawat wrote: Hi I added the option which just handled warning for gcc-4.6 in Fedora. Can you please show the output of configure. Perhaps we should fix it in code. Thanks, Dejan Regards, Tomo ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
[Linux-ha-dev] [PATCH]Correction of a monitor and the log output of slapd
Hi I revised the following processing in slpad. 1)Confirmation of having started definitely. 2)Restraint of the log output in the monitor. Regards, Tomo slapd.patch Description: Binary data ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
Re: [Linux-ha-dev] about a resource agents of rsyslog
Hi Dejan Thank you for the comments. Should be unique too. I did it uniquely. It is typical to use 2/3 of the stop op timeout meta parameter (see some other resource agents) as default. Or similar. I consider this parameter an overkill. I deleted the parameter. However, I am at a loss a little because there are the following bugs now. http://developerbugs.linux-foundation.org/show_bug.cgi?id=2560 or http://www.gossamer-threads.com/lists/linuxha/users/70262?search_string=tomcat;#70262 Don't have much experience with rsyslog, but aren't these timeout suggestions a bit too long? rsyslog may surely have a long timer level because movement is early. However, I thought, and the time-out at the time of the stop took the output of the log over the network slightly longer. local ocf_status=$? I made modifications. Usual to use test(1) '[' rather than bash [[. But not as important if you want to keep it since the agent is already /bin/bash. I made modifications. Essentially unreachable (already handled in monitor_rsyslog). I deleted it. You can drop this variable completely, ocf_log/debug should log the RA instance name. I made modifications. Regards, Tomo 2011/9/22 Dejan Muhamedagic de...@suse.de Hi Tomo, On Wed, Aug 17, 2011 at 10:44:26AM +0900, nozawat wrote: Hi Dejan I made a resource agent of rsyslog for the cause in syslog-ng. Many thanks for the contribution and sorry for the delay. Please find the review below. I think it looks quite good. BTW, any chance to create an ocft test file. That should be easy with rsyslog. Cheers, Dejan #!/bin/bash # # Description: Manages a rsyslog instance, provided by NTT OSSC as an # OCF High-Availability resource under Heartbeat/LinuxHA control # # Copyright (c) 2011 NIPPON TELEGRAPH AND TELEPHONE CORPORATION # ## # OCF parameters: # OCF_RESKEY_rsyslog_binary : Path to rsyslog binary. # Default is /sbin/rsyslogd # OCF_RESKEY_configfile : Configuration file # OCF_RESKEY_start_opts : Startup options # OCF_RESKEY_kill_term_timeout: Number of seconds to await to confirm a # normal stop method # # Only OCF_RESKEY_configfile must be specified. Each of the rests # has its default value or refers OCF_RESKEY_configfile to make # its value when no explicit value is given. # # Further infomation for setup: # There are sample configurations at the end of this file. # ### : ${OCF_FUNCTIONS_DIR=${OCF_ROOT}/lib/heartbeat} . ${OCF_FUNCTIONS_DIR}/ocf-shellfuncs usage() { cat -! usage: $0 action action: start : start a new rsyslog instance stop: stop the running rsyslog instance status : return the status of rsyslog, run or down monitor : return TRUE if the rsyslog appears to be working. meta-data : show meta data message validate-all: validate the instance parameters ! return $OCF_ERR_UNIMPLEMENTED } metadata_rsyslog() { cat END ?xml version=1.0? !DOCTYPE resource-agent SYSTEM ra-api-1.dtd resource-agent name=rsyslog version1.0/version longdesc lang=en This script manages a rsyslog instance as an HA resource. /longdesc shortdesc lang=enrsyslog resource agent/shortdesc parameters parameter name=configfile unique=0 required=1 Should be unique too. longdesc lang=en This parameter specifies a configuration file for a rsyslog instance managed by this RA. /longdesc shortdescConfiguration file/shortdesc content type=string default=/ /parameter parameter name=rsyslog_binary unique=0 longdesc lang=en This parameter specifies rsyslog's executable file. /longdesc shortdescrsyslog executable/shortdesc content type=string default=/sbin/rsyslogd/ /parameter parameter name=start_opts unique=0 longdesc lang=en This parameter specifies startup options for a rsyslog instance managed by this RA. When no value is given, no startup options is used. Don't use option '-F'. It causes a stuck of a start action. /longdesc shortdescStart options/shortdesc content type=string default=/ /parameter parameter name=kill_term_timeout unique=0 longdesc lang=en On a stop action, a normal stop method(pkill -TERM) is firstly used. And then the confirmation of its completion is waited for the specified seconds by this parameter. The default value is 10. /longdesc shortdescNumber of seconds to await to confirm a normal stop method/shortdesc content type=integer default=10/ /parameter It is typical to use 2/3 of the stop op timeout meta parameter (see some other resource agents) as default. Or similar. I consider this parameter
[Linux-ha-dev] jboss RA: The detailed log output of the start check
Hi I attach the patch which revised the following contents. 1.Output detailed log by a service check. However, the error at the time of the start is restrained. 2.Deletion of the unnecessary comment Regards, Tomo jboss.patch Description: Binary data ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
Re: [Linux-ha-dev] about a resource agents of rsyslog
Hi Dejan I made a resource agent of rsyslog for the cause in syslog-ng. Regards, Tomo 2011/8/3 Dejan Muhamedagic de...@suse.de Hi, On Mon, Jul 25, 2011 at 05:13:46PM +0900, nozawat wrote: Hi, I want to add compatibility of rsyslog to resource agents of syslog-ng. Raoul suggests it in the past. http://www.gossamer-threads.com/lists/linuxha/dev/54425 However, it seems to work in rsyslog by changing a parameter. Therefore I want advice about a modification. 1.It does not revise me to work by the change of the parameter. 2.I add resource agent of rsyslog.But the logic is same as syslog-ng. I think that this is the only option because the current RA is named after the specific syslog implementation. If there are parts usable by both agents, that code can be put into a separate file. Thanks, Dejan 3.The logic of syslog-ng revises comment and a variable without changing it. Thanks in advance for any advice. Redards, Tomo ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ rsyslog Description: Binary data ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
Re: [Linux-ha-dev] About dependence for VMware Perl Toolkit
Hi Dejan Thanks to reply. I invalidated dependence by commenting out a part of the following files. Revised file:/usr/lib/rpm/macros - %__perl_provides/usr/lib/rpm/perl.prov %__perl_requires/usr/lib/rpm/perl.req - Regards, Tomo 2011/4/28 Dejan Muhamedagic de...@suse.de Hi, On Thu, Apr 28, 2011 at 11:18:58AM +0900, nozawat wrote: Hi, Dependence is made now when make rpm does cluster-glue on RHEL5 and RHEL6. It is caused by stonith plugin of vcenter. As far as I could see: - rpmbuild uses find-requires to build dynamically a list of required software, which in turn invokes perl.req to parse perl scripts for use and require - there is no way to either disable dynamic inclusion of perl modules or instruct the machinery to skip a particular perl module - it is possible to completely disable automatic generation of dependencies: http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch18s02s02.html - the dynamic perl module discovery is commented out on SUSE platforms The only way forward seems to be to make this dynamic dependencies discovery more flexible or to turn it completely off. Thanks, Dejan I want to invalidate dependence from vcenter to enable rpm installation even if there is not VMware Toolkit. Because dependence was made dynamically, I did not know a modified point. ・Overview of VMware Perl Toolkit http://www.vmware.com/support/developer/viperltoolkit/doc/perl_toolkit_guide.html#techsupportanded Regards, Tomo ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
[Linux-ha-dev] About dependence for VMware Perl Toolkit
Hi, Dependence is made now when make rpm does cluster-glue on RHEL5 and RHEL6. It is caused by stonith plugin of vcenter. I want to invalidate dependence from vcenter to enable rpm installation even if there is not VMware Toolkit. Because dependence was made dynamically, I did not know a modified point. ・Overview of VMware Perl Toolkit http://www.vmware.com/support/developer/viperltoolkit/doc/perl_toolkit_guide.html#techsupportanded Regards, Tomo ___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
Re: [Linux-HA] HA version 3 and GUI ??
Hi Pacemaker-1.0 moves in the following versions. I think that I do not move in the latest edition. http://hg.clusterlabs.org/pacemaker/pygui/rev/18332eae086e Tomo 2011/3/9 Jakob Curdes j...@info-systems.de Hi, you have to decide: heartbeat OR corosync. It makes no sense to install both cluster stacks. I will use corosync -as recommended in your book which I have on my table here :-) ; I just followed the clusterlabs install directives for CentOS: And finally, install Pacemaker: yum install -y pacemaker corosync heartbeat This ends up in the packages pacemaker-1.0.10-1.4.el5.x86_64 (from clusterlabs repo) heartbeat-3.0.3-2.3.el5.x86_64 () corosync-1.2.7-1.1.el5.x86_64 () The epel repository yields only version 2 packages. Maybe the heartbeat rpm contains something that is always needed? Not sure why they would recommend to install it otherwise. But I cannot find the mgmtd, or how else do I start a server that the GUI can connect to? (I cannot even find the GUI, perhaps the packages were built without it?) I have no problem compiling this, even providing an rpm when done, but I have no clue why make complains abount missing files in the mgmtd directory. Am I using the wrong source perhaps? I used the source from http://hg.clusterlabs.org/pacemaker/pygui/archive/tip.tar.bz2 as indicated on the clusterlabs website. Any hints welcome, Jakob Curdes ___ Linux-HA mailing list Linux-HA@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems ___ Linux-HA mailing list Linux-HA@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
Re: [Linux-HA] Question about limits around resources .
Hi, FYI,I dont simply that from my experience. 2 and 4 node clusters running 1.0.x should easily handle 200 resources or so. Clusters running = 1.1.4 should be able to go even higher. 10resource Regards, Tomo 2010/12/9 Andrew Beekhof and...@beekhof.net On Thu, Dec 9, 2010 at 9:06 AM, Alain.Moulle alain.mou...@bull.net wrote: Hi, I wonder if there are some limits with Pacemaker in terms of : nb of resources (primitives, groups, clones etc.) in the whole HA Cluster with 2 or 4 nodes ? nb of resources (primitives, groups, clones etc.) per node in a HA Cluster ? The limit is a factor of N * R, where N = number of nodes and R = number of resources. 2 and 4 node clusters running 1.0.x should easily handle 200 resources or so. Clusters running = 1.1.4 should be able to go even higher. ___ Linux-HA mailing list Linux-HA@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems ___ Linux-HA mailing list Linux-HA@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems