[ClusterLabs] Corosync maximum nodes

2017-01-27 Thread Гюльнара Невежина
Hello!
I'm very sorry to disturb you with such question but I can't find
information if there is maximum nodes' limit in corosync? I've found a bug
report https://bugzilla.redhat.com/show_bug.cgi?id=905296#c5 with "Corosync
has hardcoded maximum number of nodes to 64" but it was posted 4 years
ago..
If anybody knows how many nodes I can add to future HA cluster?

Any tips or links would be much appreciated.
Thank you!
___
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] simple active/active router using pacemaker+corosync

2017-01-27 Thread Dejan Muhamedagic
Hi,

On Fri, Jan 27, 2017 at 10:52:25AM +0100, Arturo Borrero Gonzalez wrote:
> On 26 January 2017 at 22:31, Valentin Vidic  wrote:
> > On Thu, Jan 26, 2017 at 09:31:23PM +0100, Valentin Vidic wrote:
> >> Guess you could create a Dummy resource and make INIFINITY colloction
> >> constraints for the IPs so they follow Dummy as it moves between the
> >> nodes :)
> >
> > In fact using resource sets this becomes one rule:
> >
> >   colocation ip6-leader6 inf: ( ip6a ip6b ip6c ip6d ) leader6
> >
> > But I also had to set:
> >
> >   property node-action-limit=30
> >
> > or the number of running resource operations was limited to
> > 2 x number of CPUs.
> >
> 
> Great thanks, I couldn't find this in the docs. Any chance this get
> included somewhere?

You can find documentation for such attributes in the pengine's
meta-data or, sometimes, crmd's. For instance:

crm ra info pengine
crm ra info crmd

Thanks,

Dejan

___
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] simple active/active router using pacemaker+corosync

2017-01-27 Thread Arturo Borrero Gonzalez
On 26 January 2017 at 22:31, Valentin Vidic  wrote:
> On Thu, Jan 26, 2017 at 09:31:23PM +0100, Valentin Vidic wrote:
>> Guess you could create a Dummy resource and make INIFINITY colloction
>> constraints for the IPs so they follow Dummy as it moves between the
>> nodes :)
>
> In fact using resource sets this becomes one rule:
>
>   colocation ip6-leader6 inf: ( ip6a ip6b ip6c ip6d ) leader6
>
> But I also had to set:
>
>   property node-action-limit=30
>
> or the number of running resource operations was limited to
> 2 x number of CPUs.
>

Great thanks, I couldn't find this in the docs. Any chance this get
included somewhere?

___
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] Can fence_vbox ssh-options be configured to use Windows DOS shell?

2017-01-27 Thread Marek Grac
Hi,

command prompt is start of the line after you login to a machine via ssh.
On my machine it is:

login@hostname:~$

because command prompt depends on shell, settings, ...we are starting ssh
to run shell with predefined command prompt: [EXPECT]$. What does not work
on your system

m,

On Thu, Jan 26, 2017 at 6:09 PM,  wrote:

> Marek Grac  wrote on 01/26/2017 09:19:41 AM:
>
> > From: Marek Grac 
> > To: Cluster Labs - All topics related to open-source clustering
> > welcomed 
> > Date: 01/26/2017 09:20 AM
> > Subject: Re: [ClusterLabs] Can fence_vbox ssh-options be configured
> > to use Windows DOS shell?
> >
> > Hi,
> >
> > On Thu, Jan 26, 2017 at 5:06 PM,  wrote:
> > I have Windows 10 running Virtualbox with 2 VMs running Fedora 25.
> > I have followed 'Pacemaker 1.1 Clusters from Scratch' 9th edition up
> > through chapter 7.  It works.  I am now trying to fence VMs.  I use
> > Cygwin ssh daemon and of course bash is default for the options.
> >
> > I have used command below from one of the nodes and get the following
> return.
> >
> > fence_vbox -vv --ip=172.23.93.249 --username=durwin --identity-
> > file=/root/.ssh/id_rsa.pub --password= --plug="node1" --action=off
> >
> > add --verbose please.
> >
> > but it looks, you will have to change --ssh-options so it does not
> > execute /bin/bash; it should be be enough to set it to "". You will
> > also have to set --command-prompt to an appropriate value then.
> >
> > m,
> >
>
> Thank you.  Verbose is set '-vv'.
>
> I added --ssh-options="" to the command, see below.  I do not know how to
> find out what value command-prompt needs.  What do I look for?
>
> fc25> fence_vbox --verbose --ip=172.23.93.249 --username=durwin
> --identity-file=/root/.ssh/id_rsa.pub --password= --plug="node1"
> --action=off --ssh-options=""
> Delay 0 second(s) before logging in to the fence device
> Running command: /usr/bin/ssh  durwin@172.23.93.249 -i
> /root/.ssh/id_rsa.pub -p 22
> Timeout exceeded.
> 
> command: /usr/bin/ssh
> args: ['/usr/bin/ssh', 'durwin@172.23.93.249', '-i',
> '/root/.ssh/id_rsa.pub', '-p', '22']
> buffer (last 100 chars): "durwin@172.23.93.249's password: "
> before (last 100 chars): "durwin@172.23.93.249's password: "
> after: 
> match: None
> match_index: None
> exitstatus: None
> flag_eof: False
> pid: 17014
> child_fd: 6
> closed: False
> timeout: 30
> delimiter: 
> logfile: None
> logfile_read: None
> logfile_send: None
> maxread: 2000
> ignorecase: False
> searchwindowsize: None
> delaybeforesend: 0.05
> delayafterclose: 0.1
> delayafterterminate: 0.1
> searcher: searcher_re:
> 0: re.compile("Enter passphrase for key '/root/.ssh/id_rsa.pub':")
> 1: re.compile("Are you sure you want to continue connecting (yes/no)?")
> 2: re.compile("\[EXPECT\]#\ ")
> Unable to connect/login to fencing device
>
>
> > Delay 0 second(s) before logging in to the fence device
> > Running command: /usr/bin/ssh  durwin@172.23.93.249 -i /root/.ssh/
> > id_rsa.pub -p 22 -t '/bin/bash -c "PS1=\\[EXPECT\\]#\  /bin/bash --
> > noprofile --norc"'
> > Received: Enter passphrase for key '/root/.ssh/id_rsa.pub':
> > Sent:
> >
> > Received:
> > [EXPECT]#
> > Sent: VBoxManage list runningvms
> >
> > Connection timed out
> >
> > I tried the following commands from a DOS shell on the Windows host
> > and commands successfully executed (from Cygwin terminal it fails).
> >
> > VBoxManage controlvm node1 acpipowerbutton
> > VBoxManage startvm node1 --type=gui
> >
> > I am aware that some Windows executables do not communicate with
> > Cygwin terminals.  Is there a way to pass ssh options so that
> > VBoxManage is executed from DOS shell?
> >
> > Thank you,
> >
> > Durwin
> >
> >
> > 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
>
> > ___
> > 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