[ClusterLabs] Antw: Re: ocf scripts shell and local variables

2016-08-30 Thread Ulrich Windl
>>> Dimitri Maziuk schrieb am 30.08.2016 um 19:32 in Nachricht <9d54cfe0-eac6-2555-02e6-65008ba36...@bmrb.wisc.edu>: > On 08/30/2016 11:15 AM, Dejan Muhamedagic wrote: > >> I suppose that it is explained in enough detail here: >> >> https://en.wikipedia.org/wiki/Shebang_(Unix) > > I expect you

[ClusterLabs] data loss of network would cause Pacemaker exit abnormally

2016-08-30 Thread chenhj
Hi, This is a continuation of the email below(I did not subscrib this maillist) http://clusterlabs.org/pipermail/users/2016-August/003838.html >>From the above, I suspect that the node with the network loss was the >DC, and from its point of view, it was the other node that went away. Yes.

Re: [ClusterLabs] "VirtualDomain is active on 2 nodes" due to transient network failure

2016-08-30 Thread Andreas Kurz
Hi, On Tue, Aug 30, 2016 at 10:03 PM, Scott Greenlese wrote: > Added an appropriate subject line (was blank). Thanks... > > > Scott Greenlese ... IBM z/BX Solutions Test, Poughkeepsie, N.Y. > INTERNET: swgre...@us.ibm.com > PHONE: 8/293-7301 (845-433-7301) M/S: POK 42HA/P966 > > - Forwarded

[ClusterLabs] "VirtualDomain is active on 2 nodes" due to transient network failure

2016-08-30 Thread Scott Greenlese
Added an appropriate subject line (was blank). Thanks... Scott Greenlese ... IBM z/BX Solutions Test, Poughkeepsie, N.Y. INTERNET: swgre...@us.ibm.com PHONE: 8/293-7301 (845-433-7301)M/S: POK 42HA/P966 - Forwarded by Scott Greenlese/Poughkeepsie/IBM on 08/30/2016 03:59 PM

Re: [ClusterLabs] ocf scripts shell and local variables

2016-08-30 Thread Dimitri Maziuk
On 08/30/2016 12:32 PM, Dimitri Maziuk wrote: ... > Similarly, I have not read the code so I don't know who invokes IPArrd2 ... Sorry, braino. By "similarly" I meant if pacemakerd does execl( "/bin/sh", "/bin/sh", ... ), I don't believe shebang means anything. Of course ICB growing senile in my ol

Re: [ClusterLabs] ocf scripts shell and local variables

2016-08-30 Thread Dimitri Maziuk
On 08/30/2016 11:15 AM, Dejan Muhamedagic wrote: > I suppose that it is explained in enough detail here: > > https://en.wikipedia.org/wiki/Shebang_(Unix) I expect you're being deliberately obtuse. It does not explain which program loader interprets line 1 of findif.sh: "#!/bin/sh" when it is in

Re: [ClusterLabs] ocf scripts shell and local variables

2016-08-30 Thread Lars Ellenberg
On Tue, Aug 30, 2016 at 06:15:49PM +0200, Dejan Muhamedagic wrote: > On Tue, Aug 30, 2016 at 10:08:00AM -0500, Dmitri Maziuk wrote: > > On 2016-08-30 03:44, Dejan Muhamedagic wrote: > > > > >The kernel reads the shebang line and it is what defines the > > >interpreter which is to be invoked to run

Re: [ClusterLabs] ocf scripts shell and local variables

2016-08-30 Thread Dejan Muhamedagic
On Tue, Aug 30, 2016 at 10:08:00AM -0500, Dmitri Maziuk wrote: > On 2016-08-30 03:44, Dejan Muhamedagic wrote: > > >The kernel reads the shebang line and it is what defines the > >interpreter which is to be invoked to run the script. > > Yes, and does the kernel read when the script is source'd o

[ClusterLabs] Service pacemaker start kills my cluster and other NFS HA issues

2016-08-30 Thread Pablo Pines Leon
Hello, I have set up a DRBD-Corosync-Pacemaker cluster following the instructions from https://wiki.ubuntu.com/ClusterStack/Natty adapting them to CentOS 7 (e.g: using systemd). After testing it in Virtual Machines it seemed to be working fine, so it is now implemented in physical machines, and

Re: [ClusterLabs] ocf scripts shell and local variables

2016-08-30 Thread Dmitri Maziuk
On 2016-08-30 03:44, Dejan Muhamedagic wrote: The kernel reads the shebang line and it is what defines the interpreter which is to be invoked to run the script. Yes, and does the kernel read when the script is source'd or executed via any of the mechanisms that have the executable specified i

Re: [ClusterLabs] ocf scripts shell and local variables

2016-08-30 Thread Gabriele Bulfon
illumos (and Solaris 11) delivers ksh93, that is fully Bourn compatible, but not with the bash extension of "local" variables, that is not Bourn shell. It is supported in ksh93 with the "typedef" operator, instead of "local". This is used inside the "ocf-*" scripts. Gabriele -

Re: [ClusterLabs] ocf scripts shell and local variables

2016-08-30 Thread Gabriele Bulfon
Not RA, but ocf-* do, because of the "local" operator usage. Sonicle S.r.l. : http://www.sonicle.com Music: http://www.gabrielebulfon.com Quantum Mechanics : http://www.cdbaby.com/cd/gabrielebulfon

Re: [ClusterLabs] ocf scripts shell and local variables

2016-08-30 Thread Dejan Muhamedagic
Hi, On Mon, Aug 29, 2016 at 05:08:35PM +0200, Gabriele Bulfon wrote: > Sure, infact I can change all shebang to point to /bin/bash and it's ok. > The question is about current shebang /bin/sh which may go into trouble (as > if one would point to a generic python but uses many specific features of

Re: [ClusterLabs] systemd RA start/stop delays

2016-08-30 Thread Dejan Muhamedagic
Hi, On Thu, Aug 18, 2016 at 09:00:24AM -0500, Ken Gaillot wrote: > On 08/17/2016 08:17 PM, TEG AMJG wrote: > > Hi > > > > I am having a problem with a simple Active/Passive cluster which > > consists in the next configuration > > > > Cluster Name: kamcluster > > Corosync Nodes: > > kam1vs3 kam2

Re: [ClusterLabs] ip clustering strange behaviour

2016-08-30 Thread Klaus Wenninger
Then it is probably the default for no-quorum-policy (=stop) On 08/30/2016 08:52 AM, Gabriele Bulfon wrote: > Sorry for reiterating, but my main question was: > > why does node 1 removes its own IP if I shut down node 2 abruptly? > I understand that it does not take the node 2 IP (because the > ss

Re: [ClusterLabs] ocf scripts shell and local variables

2016-08-30 Thread Dejan Muhamedagic
Hi, On Mon, Aug 29, 2016 at 10:13:18AM -0500, Dmitri Maziuk wrote: > On 2016-08-29 04:06, Gabriele Bulfon wrote: > >Thanks, though this does not work :) > > Uhm... right. Too many languages, sorry: perl's system() will call the login > shell, system system() uses /bin/sh, and exec()s will run wha

Re: [ClusterLabs] Antw: Re: ocf scripts shell and local variables

2016-08-30 Thread Dejan Muhamedagic
On Tue, Aug 30, 2016 at 08:09:34AM +0200, Ulrich Windl wrote: > >>> Dejan Muhamedagic schrieb am 29.08.2016 um 16:37 in > Nachricht <20160829143700.GA1538@tuttle.homenet>: > > Hi, > > > > On Mon, Aug 29, 2016 at 02:58:11PM +0200, Gabriele Bulfon wrote: > >> I think the main issue is the usage of

Re: [ClusterLabs] ocf scripts shell and local variables

2016-08-30 Thread Dejan Muhamedagic
Hi, On Tue, Aug 30, 2016 at 09:32:54AM +0200, Kristoffer Grönlund wrote: > Jehan-Guillaume de Rorthais writes: > > > On Mon, 29 Aug 2016 10:02:28 -0500 > > Ken Gaillot wrote: > > > >> On 08/29/2016 09:43 AM, Dejan Muhamedagic wrote: > > ... > >>> I doubt that we could do a moderately complex sh

Re: [ClusterLabs] Mysql slave did not start replication after failure, and read-only IP also remained active on the much outdated slave

2016-08-30 Thread Attila Megyeri
Hi Ken, > -Original Message- > From: Ken Gaillot [mailto:kgail...@redhat.com] > Sent: Thursday, August 25, 2016 6:03 PM > To: Attila Megyeri ; Cluster Labs - All topics > related to open-source clustering welcomed > Subject: Re: [ClusterLabs] Mysql slave did not start replication after

Re: [ClusterLabs] ocf scripts shell and local variables

2016-08-30 Thread Kristoffer Grönlund
Jehan-Guillaume de Rorthais writes: > On Mon, 29 Aug 2016 10:02:28 -0500 > Ken Gaillot wrote: > >> On 08/29/2016 09:43 AM, Dejan Muhamedagic wrote: > ... >>> I doubt that we could do a moderately complex shell scripts >>> without capability of limiting the variables' scope and retaining >>> sani