Re: [Pacemaker] Two node cluster and no hardware device for stonith.

2015-02-11 Thread Dejan Muhamedagic
On Wed, Feb 11, 2015 at 09:10:45AM +0300, Andrei Borzenkov wrote: > В Tue, 10 Feb 2015 15:58:57 +0100 > Dejan Muhamedagic пишет: > > > On Mon, Feb 09, 2015 at 04:41:19PM +0100, Lars Ellenberg wrote: > > > On Fri, Feb 06, 2015 at 04:15:44PM +0100, Dejan Muhamedagic wrote: > > > > Hi, > > > > > >

Re: [Pacemaker] Two node cluster and no hardware device for stonith.

2015-02-10 Thread Andrei Borzenkov
В Tue, 10 Feb 2015 15:58:57 +0100 Dejan Muhamedagic пишет: > On Mon, Feb 09, 2015 at 04:41:19PM +0100, Lars Ellenberg wrote: > > On Fri, Feb 06, 2015 at 04:15:44PM +0100, Dejan Muhamedagic wrote: > > > Hi, > > > > > > On Thu, Feb 05, 2015 at 09:18:50AM +0100, Digimer wrote: > > > > That is the p

Re: [Pacemaker] Two node cluster and no hardware device for stonith.

2015-02-10 Thread Dejan Muhamedagic
On Mon, Feb 09, 2015 at 04:41:19PM +0100, Lars Ellenberg wrote: > On Fri, Feb 06, 2015 at 04:15:44PM +0100, Dejan Muhamedagic wrote: > > Hi, > > > > On Thu, Feb 05, 2015 at 09:18:50AM +0100, Digimer wrote: > > > That is the problem that makes geo-clustering very hard to nearly > > > impossible. Yo

Re: [Pacemaker] Two node cluster and no hardware device for stonith.

2015-02-09 Thread Lars Ellenberg
On Fri, Feb 06, 2015 at 04:15:44PM +0100, Dejan Muhamedagic wrote: > Hi, > > On Thu, Feb 05, 2015 at 09:18:50AM +0100, Digimer wrote: > > That is the problem that makes geo-clustering very hard to nearly > > impossible. You can look at the Booth option for pacemaker, but that > > requires two (or

Re: [Pacemaker] Two node cluster and no hardware device for stonith.

2015-02-06 Thread Dejan Muhamedagic
Hi, On Thu, Feb 05, 2015 at 09:18:50AM +0100, Digimer wrote: > That is the problem that makes geo-clustering very hard to nearly > impossible. You can look at the Booth option for pacemaker, but that > requires two (or more) full clusters, plus an arbitrator 3rd A full cluster can consist of one

Re: [Pacemaker] Two node cluster and no hardware device for stonith.

2015-02-06 Thread Andrea
writes: > > If the pingnode became not visible on node2, I will see pingd attribute > > on > > node2 set to 0 and dummy resources stop on node2. > > If I cut off nentire network on node2, I will see pingd attribute on > > node2 > > set to 0 bud dummy resource never stop. > > During network fai

Re: [Pacemaker] Two node cluster and no hardware device for stonith.

2015-02-05 Thread lists
On 2015-02-05 17:08, Andrea wrote: Hi I test location constraint with ping resource to stop resource on disconnected node, but with stonith active, doesn't works I used dummy resource for test [ONE]pcs resource create mydummy ocf:pacemaker:Dummy op monitor interval=120s --clone Ping resource

Re: [Pacemaker] Two node cluster and no hardware device for stonith.

2015-02-05 Thread Andrea
> > On Wednesday, February 4, 2015, Andrea > > wrote: > > > > Digimer ...> writes: > > > > > > > > That fence failed until the network came back makes your fence method > > > less than ideal. Will it eventually fence with the network still > > failed? >

Re: [Pacemaker] Two node cluster and no hardware device for stonith.

2015-02-05 Thread Digimer
That is the problem that makes geo-clustering very hard to nearly impossible. You can look at the Booth option for pacemaker, but that requires two (or more) full clusters, plus an arbitrator 3rd location. Outside of this though, there really is no way to have geo/stretch clustering with automa

Re: [Pacemaker] Two node cluster and no hardware device for stonith.

2015-02-04 Thread Dmitry Koterov
Could you please give a hint: how to use fencing in case the nodes are all in different geo-distributed datacenters? How people do that? Because there could be a network disconnection between datacenters, and we have no chance to send a stonith signal somewhere. On Wednesday, February 4, 2015, And

Re: [Pacemaker] Two node cluster and no hardware device for stonith.

2015-02-04 Thread Andrea
Digimer writes: > > That fence failed until the network came back makes your fence method > less than ideal. Will it eventually fence with the network still failed? > > Most importantly though; Cluster resources blocked while the fence was > pending? If so, then your cluster is safe, and that

Re: [Pacemaker] Two node cluster and no hardware device for stonith.

2015-02-02 Thread Digimer
That fence failed until the network came back makes your fence method less than ideal. Will it eventually fence with the network still failed? Most importantly though; Cluster resources blocked while the fence was pending? If so, then your cluster is safe, and that is the most important part.

Re: [Pacemaker] Two node cluster and no hardware device for stonith.

2015-02-02 Thread Andrea
Hi, I tryed a network failure and it works. During failure, each node try to fence other node. When network come back, the node with network problem is fenced and reboot. Moreover, the cman kill(cman) on one node, tipically node1 kill(cman) on node2, so, I have 2 situations: 1) Network failure on

Re: [Pacemaker] Two node cluster and no hardware device for stonith.

2015-01-30 Thread Andrea
Andrea writes: > > Sorry, I used wrong device id. > Now, with the correct device id, I see 2 key reserved > > [ONE] sg_persist -n --read-keys > --device=/dev/disk/by-id/scsi-36e843b60f3d0cc6d1a11d4ff0da95cd8 > PR generation=0x4, 2 registered reservation keys follow: > 0x4d5a0001 > 0x4

Re: [Pacemaker] Two node cluster and no hardware device for stonith.

2015-01-27 Thread Andrea
emmanuel segura writes: > > please show your configuration and your logs. > > 2015-01-27 14:24 GMT+01:00 Andrea : > > emmanuel segura ...> writes: > > > >> > >> > >> if you are using cman+pacemaker you need to enabled the stonith and > > configuring that in you crm config > >> > >> > >> 2015-0

Re: [Pacemaker] Two node cluster and no hardware device for stonith.

2015-01-27 Thread emmanuel segura
please show your configuration and your logs. 2015-01-27 14:24 GMT+01:00 Andrea : > emmanuel segura writes: > >> >> >> if you are using cman+pacemaker you need to enabled the stonith and > configuring that in you crm config >> >> >> 2015-01-27 14:05 GMT+01:00 Vinod Prabhu > : >> is stonith enable

Re: [Pacemaker] Two node cluster and no hardware device for stonith.

2015-01-27 Thread Andrea
emmanuel segura writes: > > > if you are using cman+pacemaker you need to enabled the stonith and configuring that in you crm config > > > 2015-01-27 14:05 GMT+01:00 Vinod Prabhu : > is stonith enabled in crm conf? > yes, stonith is enabled [ONE]pcs property Cluster Properties: cluster-in

Re: [Pacemaker] Two node cluster and no hardware device for stonith.

2015-01-27 Thread emmanuel segura
if you are using cman+pacemaker you need to enabled the stonith and configuring that in you crm config 2015-01-27 14:05 GMT+01:00 Vinod Prabhu : > is stonith enabled in crm conf? > > On Tue, Jan 27, 2015 at 6:21 PM, emmanuel segura > wrote: > >> When a node is dead the registration key is remove

Re: [Pacemaker] Two node cluster and no hardware device for stonith.

2015-01-27 Thread Vinod Prabhu
is stonith enabled in crm conf? On Tue, Jan 27, 2015 at 6:21 PM, emmanuel segura wrote: > When a node is dead the registration key is removed. > > 2015-01-27 13:29 GMT+01:00 Andrea : > > emmanuel segura writes: > > > >> > >> sorry, but i forgot to tell you, you need to know the fence_scsi > >>

Re: [Pacemaker] Two node cluster and no hardware device for stonith.

2015-01-27 Thread emmanuel segura
When a node is dead the registration key is removed. 2015-01-27 13:29 GMT+01:00 Andrea : > emmanuel segura writes: > >> >> sorry, but i forgot to tell you, you need to know the fence_scsi >> doesn't reboot the evicted node, so you can combine fence_vmware with >> fence_scsi as the second option.

Re: [Pacemaker] Two node cluster and no hardware device for stonith.

2015-01-27 Thread Andrea
emmanuel segura writes: > > sorry, but i forgot to tell you, you need to know the fence_scsi > doesn't reboot the evicted node, so you can combine fence_vmware with > fence_scsi as the second option. > for this, i'm trying to use a watchdog script https://access.redhat.com/solutions/65187 Bu

Re: [Pacemaker] Two node cluster and no hardware device for stonith.

2015-01-27 Thread emmanuel segura
sorry, but i forgot to tell you, you need to know the fence_scsi doesn't reboot the evicted node, so you can combine fence_vmware with fence_scsi as the second option. 2015-01-27 11:44 GMT+01:00 emmanuel segura : > In normal situation every node can in your file system, fence_scsi is > used when y

Re: [Pacemaker] Two node cluster and no hardware device for stonith.

2015-01-27 Thread emmanuel segura
In normal situation every node can in your file system, fence_scsi is used when your cluster is in split-braint, when your a node doesn't comunicate with the other node, i don't is good idea. 2015-01-27 11:35 GMT+01:00 Andrea : > Andrea writes: > >> >> Michael Schwartzkopff ...> writes: >> >> >

Re: [Pacemaker] Two node cluster and no hardware device for stonith.

2015-01-27 Thread Andrea
Andrea writes: > > Michael Schwartzkopff ...> writes: > > > > > Am Donnerstag, 22. Januar 2015, 10:03:38 schrieb E. Kuemmerle: > > > On 21.01.2015 11:18 Digimer wrote: > > > > On 21/01/15 08:13 AM, Andrea wrote: > > > >> > Hi All, > > > >> > > > > >> > I have a question about stonith > > > >

Re: [Pacemaker] Two node cluster and no hardware device for stonith.

2015-01-22 Thread Andrea
Michael Schwartzkopff writes: > > Am Donnerstag, 22. Januar 2015, 10:03:38 schrieb E. Kuemmerle: > > On 21.01.2015 11:18 Digimer wrote: > > > On 21/01/15 08:13 AM, Andrea wrote: > > >> > Hi All, > > >> > > > >> > I have a question about stonith > > >> > In my scenarion , I have to create 2 node

Re: [Pacemaker] Two node cluster and no hardware device for stonith.

2015-01-22 Thread Michael Schwartzkopff
Am Donnerstag, 22. Januar 2015, 10:03:38 schrieb E. Kuemmerle: > On 21.01.2015 11:18 Digimer wrote: > > On 21/01/15 08:13 AM, Andrea wrote: > >> > Hi All, > >> > > >> > I have a question about stonith > >> > In my scenarion , I have to create 2 node cluster, but I don't have any > >> > hardware de

Re: [Pacemaker] Two node cluster and no hardware device for stonith.

2015-01-22 Thread E. Kuemmerle
On 21.01.2015 11:18 Digimer wrote: > On 21/01/15 08:13 AM, Andrea wrote: >> > Hi All, >> > >> > I have a question about stonith >> > In my scenarion , I have to create 2 node cluster, but I don't have any >> > hardware device for stonith. No APC no IPMI ecc, no one of the list >> > returned >> > b

Re: [Pacemaker] Two node cluster and no hardware device for stonith.

2015-01-21 Thread Digimer
On 21/01/15 08:13 AM, Andrea wrote: Hi All, I have a question about stonith In my scenarion , I have to create 2 node cluster, but I don't have any hardware device for stonith. No APC no IPMI ecc, no one of the list returned by "pcs stonith list" So, there is an option to do something? This is m