[ClusterLabs] DC leaving the cluster: some odd messages

2017-02-23 Thread Ulrich Windl
Hi!

I cleanly stopped OpenAIS on a sLES11 SP4 node. On another node I saw some 
strange messages:

Feb 24 08:38:58 h01 corosync[2822]:  [pcmk  ] info: update_member: Node h10 now 
has process list: 0002 (2)
Feb 24 08:38:58 h01 corosync[2822]:  [pcmk  ] info: send_member_notification: 
Sending membership update 3360 to 5 children
Feb 24 08:38:58 h01 crmd[2832]:   notice: peer_update_callback: Our peer on the 
DC (h10) is dead
Feb 24 08:38:58 h01 stonith-ng[2828]:   notice: crm_update_peer_state: 
st_peer_update_callback: Node h10[739512330] - state is now lost (was member)
Feb 24 08:38:58 h01 cib[2827]:   notice: crm_update_peer_state: 
cib_peer_update_callback: Node h10[739512330] - state is now lost (was member)
Feb 24 08:38:58 h01 cib[2827]:   notice: crm_update_peer_state: 
plugin_handle_membership: Node h10[739512330] - state is now member (was lost)
Feb 24 08:38:58 h01 crmd[2832]:  warning: reap_dead_nodes: Our DC node (h10) 
left the cluster
Feb 24 08:38:58 h01 stonith-ng[2828]:   notice: crm_update_peer_state: 
plugin_handle_membership: Node h10[739512330] - state is now member (was lost)

So it looks like an down-up-down-up transition of node h10. Maybe this message 
contributes to the confusion:
Feb 24 08:38:58 h01 cib[2827]:  warning: cib_server_process_diff: Something 
went wrong in compatibility mode, requesting full refresh

Feb 24 08:38:58 h01 corosync[2822]:  [pcmk  ] info: ais_mark_unseen_peer_dead: 
Node h10 was not seen in the previous transition
Feb 24 08:38:58 h01 corosync[2822]:  [pcmk  ] info: update_member: Node 
739512330/h10 is now: lost

Feb 24 08:38:58 h01 crmd[2832]:   notice: crm_update_peer_state: 
plugin_handle_membership: Node h10[739512330] - state is now lost (was member)
Feb 24 08:38:58 h01 crmd[2832]:  warning: match_down_event: No match for 
shutdown action on h10
Feb 24 08:38:58 h01 crmd[2832]:   notice: peer_update_callback: 
Stonith/shutdown of h10 not matched
Feb 24 08:38:58 h01 crmd[2832]:   notice: crm_update_quorum: Updating quorum 
status to true (call=162)

What worries me a bit is "No match for shutdown action on h10": Shouldn't it be 
obvious from the CIB that h10 was intended to leave?

Regards,
Ulrich





___
Users mailing list: Users@clusterlabs.org
http://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


[ClusterLabs] Insert delay between the statup of VirtualDomain

2017-02-23 Thread Oscar Segarra
Hi,

In my environment I have 5 guestes that have to be started up in a
specified order starting for the MySQL database server.

I have set the order constraints and VirtualDomains start in the right
order but, the problem I have, is that the second host starts up faster
than the database server and therefore applications running on the second
host raise errors due to database connectivity problems.

I'd like to introduce a delay between the startup of the VirtualDomain of
the database server and the startup of the second guest.

¿Is it any way to get this?

Thanks a lot.
___
Users mailing list: Users@clusterlabs.org
http://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


Re: [ClusterLabs] How to configure my ocf_heartbeat_iscsi resource(s) such that I have both paths to the LUN?

2017-02-23 Thread Scott Greenlese

Refreshing this post in case anyone might have missed it...   still trying
to figure out some way to have multiple iscsi paths managed
by a single ocf_heartbeat_iscsi resource.  Any ideas?

Thanks!

Scott Greenlese ... KVM on System Z - Solutions Test, IBM Poughkeepsie,
N.Y.
  INTERNET:  swgre...@us.ibm.com




From:   Scott Greenlese/Poughkeepsie/IBM@IBMUS
To: users@clusterlabs.org
Cc: Si Bo Niu , Michael
Tebolt/Poughkeepsie/IBM@IBMUS
Date:   02/15/2017 12:18 PM
Subject:[ClusterLabs] How to configure my ocf_heartbeat_iscsi resource
(s) such that I have both paths to the LUN?



Hi folks,

I'm running some test scenarios with an ocf_heartbeat_iscsi pacemaker
resource,
using the following XIV multipath'ed configuration:

I created a single XIV iscsi host definition containing all the pacemaker
host (cluster node) 'Initiator's:

XIV 7812475>>host_list_ports host=pacemaker_iscsi
Host Type Port Name
pacemaker_iscsi iSCSI iqn.2005-03.org.open-iscsi:6539c3daf095
pacemaker_iscsi iSCSI iqn.2005-03.org.open-iscsi:11d639c0976c
pacemaker_iscsi iSCSI iqn.1994-05.com.redhat:74ca24d6476
pacemaker_iscsi iSCSI iqn.1994-05.com.redhat:ea17bebd09a
pacemaker_iscsi iSCSI iqn.1994-05.com.redhat:b852a67852c

Here is the XIV Target IP:port / IQN info:

10.20.92.108:3260
Target: iqn.2005-10.com.xivstorage:012475

10.20.92.109:3260
Target: iqn.2005-10.com.xivstorage:012475

I mapped a single 17Gb Lun to the XIV host: 20017380030BB110F


>From ocf_heartbeat_iscsi man page, it didn't seem obvious to me how I might
specify multiple
IP Portals (i.e. both the .108 and .109 IPs) to a single
ocf_heartbeat_iscsi resource. So,
I went ahead and configured my resource using just the .108 IP path, as
follows:

Using the above XIV definitions, I created a single iscsi pacemaker
resource using only one of the two IP
paths to the XIV LUN:

[root@zs95kj VD]# pcs resource show iscsi_r4

Resource: iscsi_r4 (class=ocf provider=heartbeat type=iscsi)
Attributes: portal=10.20.92.108:3260
target=iqn.2005-10.com.xivstorage:012475
Operations: start interval=0s timeout=120 (iscsi_r4-start-interval-0s)
stop interval=0s timeout=120 (iscsi_r4-stop-interval-0s)
monitor interval=120 timeout=30 (iscsi_r4-monitor-interval-120)

I'm looking for suggestions as to how I should configure my iscsi resource
(s) such that I have both paths (.108 and .109)
to the LUN available to my application? Do I need to create a second iscsi
resource for the .109 path, and colocate
them so that they move about the cluster together?

As an aside, I have run into situations where the second IP (.109) comes
online to where my iscsi_r4 resource is running (how or why,
I'm not sure), which introduces problems because iscsi_r4 only manages
the .108 connection.

Thanks in advance...

Scott Greenlese ... KVM on System Z - Solutions Test, IBM Poughkeepsie,
N.Y.
INTERNET: swgre...@us.ibm.com

___
Users mailing list: Users@clusterlabs.org
http://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


___
Users mailing list: Users@clusterlabs.org
http://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


Re: [ClusterLabs] Fence agent for VirtualBox

2017-02-23 Thread durwin
Klaus Wenninger  wrote on 02/23/2017 01:12:19 AM:

> From: Klaus Wenninger 
> To: Cluster Labs - All topics related to open-source clustering 
> welcomed 
> Date: 02/23/2017 01:13 AM
> Subject: Re: [ClusterLabs] Fence agent for VirtualBox
> 
> On 02/23/2017 07:48 AM, Marek Grac wrote:
> > Hi,
> >
> > we have added support for a host with Windows but it is not trivial to
> > setup because of various contexts/privileges. 
> >
> > Install openssh on Windows (tutorial can be found on 
> > http://linuxbsdos.com/2015/07/30/how-to-install-openssh-on-windows-10/
)
> >
> > There is a major issue with current setup in Windows.  You have to
> > start virtual machines from openssh connection if you wish to manage
> > them from openssh connection.
> >
> 
> Have read about similar issues with openssh on Windows for other 
use-cases
> and that other ssh-implementations for Windows seem to do better / more
> userfriendly.

Any idea how Cygwin sshd would work?  I use Cygwin for everything and
already have sshd running.

Thank you,

Durwin

> 
> No personal experience from my side but maybe others on the list ...
> 
> Don't get me wrong - not speaking against free software - but on top of
> a non-free OS
> it makes less difference I guess.
> 
> > So, you have to connect from Windows to very same Windows using ssh
> > and then run 
> >
> > “/Program Files/Oracle/VirtualBox/VBoxManage.exe” start NAME_OF_VM
> >
> > Be prepared that you will not see that your machine VM is running in
> > VirtualBox
> > management UI.
> >
> > Afterwards it is enough to add parameter --host-os windows (or
> > host_os=windows when stdin/pcs is used).
> >
> > m,
> >
> > On Wed, Feb 22, 2017 at 11:49 AM, Marek Grac  > > wrote:
> >
> > Hi,
> >
> > I have updated fence agent for Virtual Box (upstream git). The
> > main benefit is new option --host-os (host_os on stdin) that
> > supports linux|macos. So if your host is linux/macos all you need
> > to set is this option (and ssh access to a machine). I would love
> > to add a support also for windows but I'm not able to run
> > vboxmanage.exe over the openssh. It works perfectly from command
> > prompt under same user, so there are some privileges issues, if
> > you know how to fix this please let me know.
> >
> > m,
> >
> >
> >
> >
> > ___
> > Users mailing list: Users@clusterlabs.org
> > http://lists.clusterlabs.org/mailman/listinfo/users
> >
> > Project Home: http://www.clusterlabs.org
> > Getting started: 
http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> > Bugs: http://bugs.clusterlabs.org
> 
> 
> 
> ___
> Users mailing list: Users@clusterlabs.org
> http://lists.clusterlabs.org/mailman/listinfo/users
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org



This email message and any attachments are for the sole use of the 
intended recipient(s) and may contain proprietary and/or confidential 
information which may be privileged or otherwise protected from 
disclosure. Any unauthorized review, use, disclosure or distribution is 
prohibited. If you are not the intended recipient(s), please contact the 
sender by reply email and destroy the original message and any copies of 
the message as well as any attachments to the original message.
___
Users mailing list: Users@clusterlabs.org
http://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


Re: [ClusterLabs] Adding a node to the cluster deployed with "Unicast configuration"

2017-02-23 Thread Alejandro Comisario
Amazing, i will try to do that on ubuntu also and get back to you !
thanks for the help !

On Wed, Feb 22, 2017 at 5:08 PM, Ken Gaillot  wrote:
> On 02/22/2017 09:55 AM, Jan Friesse wrote:
>> Alejandro Comisario napsal(a):
>>> Hi everyone, i have a problem when scaling a corosync/pacemaker
>>> cluster deployed using unicast.
>>>
>>> eg on corosync.conf.
>>>
>>> nodelist {
>>> node {
>>> ring0_addr: 10.10.0.10
>>> nodeid: 1
>>> }
>>> node {
>>> ring0_addr: 10.10.0.11
>>> nodeid: 2
>>> }
>>> }
>>>
>>> Tried to add the new node with the new config (meaning, adding the new
>>> node) nad leaving the other two with the same config and started
>>> services on the third node, but doesnt seem to work until i update the
>>> config on the server #1 and #2 and restart corosync/pacemaker which
>>> does the obvious of bringing every resource down.
>>>
>>> There should be a way to "hot add" a new node to the cluster, but i
>>> dont seem to find one.
>>> what is the best way to add a node without bothering the rest ? or
>>> better said, what is the right way to do it ?
>>
>> Adding node is possible with following process:
>> - Add node to config file on both existing nodes
>> - Exec corosync-cfgtool -R (it's enough to exec only on one of nodes)
>> - Make sure 3rd (new) node has same config as two existing nodes
>> - Start corosync/pcmk on new node
>>
>> This is (more or less) how pcs works. No stopping of corosync is needed.
>>
>> Regards,
>>   Honza
>
> Ah, noted ... I need to update some upstream docs :-)
>
>>>
>>> PS: i can't implement multicast on my network.
>>>
>
> ___
> Users mailing list: Users@clusterlabs.org
> http://lists.clusterlabs.org/mailman/listinfo/users
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org



-- 
Alejandro Comisario
CTO | NUBELIU
E-mail: alejandro@nubeliu.comCell: +54 9 11 3770 1857
_
www.nubeliu.com

___
Users mailing list: Users@clusterlabs.org
http://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


Re: [ClusterLabs] Oralsnr/Oracle resources agents

2017-02-23 Thread emmanuel segura
I think no, in /usr/lib/ocf/resource.d/heartbeat/oralsnr

start function, oralsnr_start = "output=`echo lsnrctl start $listener
| runasdba`"
stop function, oralsnr_stop = "output=`echo lsnrctl stop $listener | runasdba`"

Where listener variable is the resource agent parameter given by
pacemaker : #   OCF_RESKEY_listener (optional; defaults to LISTENER)

Why don't use one listener per instance?

2017-02-23 16:37 GMT+01:00 Jihed M'selmi :
> I was reading the oralsnr script, I found that to stop a listener the agent
> uses the lsnrctl to stop the instances.
>
> My questions,  how to configure this agent for an oracle listener attached
> the multiple instance ?
>
> My 2nd quest, is it possible to enhance the ora-common.sh and
> resource.d/oracle to take in account the flag y/n in the oratab in order to
> start the database or no ?
>
> Cheers,
>
> --
>
>
> Jihed MSELMI
> RHCE, RHCSA, VCP4
> 10 Villa Stendhal, 75020 Paris France
> Mobile: +33 (0) 753768653
>
> ___
> Users mailing list: Users@clusterlabs.org
> http://lists.clusterlabs.org/mailman/listinfo/users
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
>



-- 
  .~.
  /V\
 //  \\
/(   )\
^`~'^

___
Users mailing list: Users@clusterlabs.org
http://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


[ClusterLabs] Oralsnr/Oracle resources agents

2017-02-23 Thread Jihed M'selmi
I was reading the oralsnr script, I found that to stop a listener the agent
uses the lsnrctl to stop the instances.

My questions,  how to configure this agent for an oracle listener attached
the multiple instance ?

My 2nd quest, is it possible to enhance the ora-common.sh and
resource.d/oracle to take in account the flag y/n in the oratab in order to
start the database or no ?

Cheers,

-- 


Jihed MSELMI
RHCE, RHCSA, VCP4
10 Villa Stendhal, 75020 Paris France
Mobile: +33 (0) 753768653
___
Users mailing list: Users@clusterlabs.org
http://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


Re: [ClusterLabs] Fence agent for VirtualBox

2017-02-23 Thread Kristoffer Grönlund
Marek Grac  writes:

> Hi,
>
> we have added support for a host with Windows but it is not trivial to
> setup because of various contexts/privileges.
>
> Install openssh on Windows (tutorial can be found on
> http://linuxbsdos.com/2015/07/30/how-to-install-openssh-on-windows-10/)
>
> There is a major issue with current setup in Windows.  You have to start
> virtual machines from openssh connection if you wish to manage them from
> openssh connection.
>
> So, you have to connect from Windows to very same Windows using ssh and
> then run
>
> “/Program Files/Oracle/VirtualBox/VBoxManage.exe” start NAME_OF_VM
>
> Be prepared that you will not see that your machine VM is running in
> VirtualBox
> management UI.
>
> Afterwards it is enough to add parameter --host-os windows (or
> host_os=windows when stdin/pcs is used).
>

Cool, nice work!

Cheers,
Kristoffer

> m,
>
> On Wed, Feb 22, 2017 at 11:49 AM, Marek Grac  wrote:
>
>> Hi,
>>
>> I have updated fence agent for Virtual Box (upstream git). The main
>> benefit is new option --host-os (host_os on stdin) that supports
>> linux|macos. So if your host is linux/macos all you need to set is this
>> option (and ssh access to a machine). I would love to add a support also
>> for windows but I'm not able to run vboxmanage.exe over the openssh. It
>> works perfectly from command prompt under same user, so there are some
>> privileges issues, if you know how to fix this please let me know.
>>
>> m,
>>
> ___
> Users mailing list: Users@clusterlabs.org
> http://lists.clusterlabs.org/mailman/listinfo/users
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org

-- 
// Kristoffer Grönlund
// kgronl...@suse.com

___
Users mailing list: Users@clusterlabs.org
http://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


Re: [ClusterLabs] Fence agent for VirtualBox

2017-02-23 Thread Klaus Wenninger
On 02/23/2017 07:48 AM, Marek Grac wrote:
> Hi,
>
> we have added support for a host with Windows but it is not trivial to
> setup because of various contexts/privileges. 
>
> Install openssh on Windows (tutorial can be found on 
> http://linuxbsdos.com/2015/07/30/how-to-install-openssh-on-windows-10/)
>
> There is a major issue with current setup in Windows.  You have to
> start virtual machines from openssh connection if you wish to manage
> them from openssh connection.
>

Have read about similar issues with openssh on Windows for other use-cases
and that other ssh-implementations for Windows seem to do better / more
userfriendly.

No personal experience from my side but maybe others on the list ...

Don't get me wrong - not speaking against free software - but on top of
a non-free OS
it makes less difference I guess.

> So, you have to connect from Windows to very same Windows using ssh
> and then run 
>
> “/Program Files/Oracle/VirtualBox/VBoxManage.exe” start NAME_OF_VM
>
> Be prepared that you will not see that your machine VM is running in
> VirtualBox
> management UI.
>
> Afterwards it is enough to add parameter --host-os windows (or
> host_os=windows when stdin/pcs is used).
>
> m,
>
> On Wed, Feb 22, 2017 at 11:49 AM, Marek Grac  > wrote:
>
> Hi,
>
> I have updated fence agent for Virtual Box (upstream git). The
> main benefit is new option --host-os (host_os on stdin) that
> supports linux|macos. So if your host is linux/macos all you need
> to set is this option (and ssh access to a machine). I would love
> to add a support also for windows but I'm not able to run
> vboxmanage.exe over the openssh. It works perfectly from command
> prompt under same user, so there are some privileges issues, if
> you know how to fix this please let me know.
>
> m,
>
>
>
>
> ___
> Users mailing list: Users@clusterlabs.org
> http://lists.clusterlabs.org/mailman/listinfo/users
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org



___
Users mailing list: Users@clusterlabs.org
http://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org