Re: [ClusterLabs] IPaddr2 failed to start

2016-06-22 Thread wd
if [ X`uname -s` != "XLinux" ]; then ocf_log err "IPaddr2 only supported Linux." exit $OCF_ERR_INSTALLED fi Do you run on a linux? what is 'uname -s' command returned? On Wed, Jun 22, 2016 at 6:07 PM, Юрченко Станислав wrote: > Hello! > I have configured cluster pacemake

Re: [ClusterLabs] Three node cluster constraint

2016-05-31 Thread wd
You are right, my resource-stickiness settings are lost. after set it again, it's working now. On Tue, May 31, 2016 at 3:14 PM, Klaus Wenninger wrote: > On 05/31/2016 06:43 AM, wd wrote: > > I've do more searching, and found "crm_simulate -sL" tool, it says: &g

Re: [ClusterLabs] How to use totem.interface.dynamic for corosync ?

2016-05-31 Thread wd
On Tue, May 31, 2016 at 3:08 PM, Jan Friesse wrote: > I'll try corosync 2.x >> So I need to edit configuration files on all node then call >> corosync-cfgtool -R or on one node is ok? >> > > You have to edit file on all nodes. Then call corosync-cfgtool -R on one > of the nodes. I see, thanks

Re: [ClusterLabs] Three node cluster constraint

2016-05-30 Thread wd
vip-slave with Slave pgsql-master 100' not effect node3 which is also a slave node. On Tue, May 31, 2016 at 12:32 PM, wd wrote: > sorry, I've sent to the wrong mailist, fwd to users@clusterlabs.org > > -- Forwarded message -- > From: wd > Date: Tue, M

[ClusterLabs] Fwd: Three node cluster constraint

2016-05-30 Thread wd
sorry, I've sent to the wrong mailist, fwd to users@clusterlabs.org -- Forwarded message -- From: wd Date: Tue, May 31, 2016 at 12:04 PM Subject: Three node cluster constraint To: pacema...@oss.clusterlabs.org Hi, I've setup a three node PostgreSQL cluster, with 2

Re: [ClusterLabs] How to use totem.interface.dynamic for corosync ?

2016-05-30 Thread wd
I'll try corosync 2.x So I need to edit configuration files on all node then call corosync-cfgtool -R or on one node is ok? On Fri, May 27, 2016 at 6:28 PM, Jan Friesse wrote: > hi, >> >> I use corosync with udpu ( since multi broadcast not work here), and want >> the ability to add node dynami

[ClusterLabs] How to use totem.interface.dynamic for corosync ?

2016-05-26 Thread wd
hi, I use corosync with udpu ( since multi broadcast not work here), and want the ability to add node dynamic. I found this post http://www.spinics.net/lists/corosync/msg00141.html , and tried it, but nothing happened.How can I use this feature? ___ Use

Re: [ClusterLabs] How to add a constraint to move a resource to other node when a resource stop

2016-05-13 Thread wd
I found the solution, add colocation constraint like this: pcs constraint colocation add vip-slave with Slave pgsql-master 100 pcs constraint colocation add vip-slave with Master pgsql-master 50 On Fri, May 13, 2016 at 6:08 PM, wd wrote: > hi, > > I'm running a master/slave 2 n

[ClusterLabs] How to add a constraint to move a resource to other node when a resource stop

2016-05-13 Thread wd
hi, I'm running a master/slave 2 node PostgreSQL cluster, and 2 virtual ip resource, one is for master, one is for slave. I have add colocation constraint for both virtual ip and master/slave resource, to ensure virtual ip for master is run at master, and virtual ip for slave is run at slave. And