Re: [Pacemaker] some questions about STONITH

2013-11-19 Thread Andrey Groshev
19.11.2013, 23:17, "Lars Marowsky-Bree" : > On 2013-11-19T23:06:04, Andrey Groshev wrote: > >>>  First, like digimer wrote, clearly stonith-by-ssh is useless for >>>  production since you can't fence nodes that are having problems. But for >>>  testing, it's worth a try. >>  Maybe I do not quite

Re: [Pacemaker] stonith ra class missing

2013-11-19 Thread Andrew Beekhof
On 19 Nov 2013, at 4:19 pm, Michael Schwartzkopff wrote: > > > > > Andrew Beekhof schrieb: >> >> On 19 Nov 2013, at 1:23 am, Michael Schwartzkopff wrote: >> >>> Hi, >>> >>> I installed pacemaker on a RHEL 6.4 machine. Now crm tells me that >> there is no >>> stonith ra class, onyl lsb,

Re: [Pacemaker] some questions about STONITH

2013-11-19 Thread Masopust, Christian
Hi Lars, at this point I'd like to jump in as I'm completely new to fencing :) My question is: which node exactly does the fencing? Thanks a lot, christian > -Ursprüngliche Nachricht- > Von: Lars Marowsky-Bree [mailto:l...@suse.com] > Gesendet: Dienstag, 19. November 2013 20:10 > An

Re: [Pacemaker] some questions about STONITH

2013-11-19 Thread Lars Marowsky-Bree
On 2013-11-19T23:06:04, Andrey Groshev wrote: > > First, like digimer wrote, clearly stonith-by-ssh is useless for > > production since you can't fence nodes that are having problems. But for > > testing, it's worth a try. > Maybe I do not quite understand correctly the term "fence" A "fence" re

Re: [Pacemaker] some questions about STONITH

2013-11-19 Thread Digimer
On 19/11/13 14:06, Andrey Groshev wrote: > > > 19.11.2013, 22:30, "Lars Marowsky-Bree" : >> On 2013-11-19T22:10:29, Andrey Groshev wrote: >> >> First, like digimer wrote, clearly stonith-by-ssh is useless for >> production since you can't fence nodes that are having problems. But for >> testing,

Re: [Pacemaker] some questions about STONITH

2013-11-19 Thread Andrey Groshev
19.11.2013, 22:30, "Lars Marowsky-Bree" : > On 2013-11-19T22:10:29, Andrey Groshev wrote: > > First, like digimer wrote, clearly stonith-by-ssh is useless for > production since you can't fence nodes that are having problems. But for > testing, it's worth a try. Maybe I do not quite understand

Re: [Pacemaker] some questions about STONITH

2013-11-19 Thread Lars Marowsky-Bree
On 2013-11-19T22:10:29, Andrey Groshev wrote: First, like digimer wrote, clearly stonith-by-ssh is useless for production since you can't fence nodes that are having problems. But for testing, it's worth a try. Note that cluster-glue actually does include an external/ssh script. You're reinventi

Re: [Pacemaker] some questions about STONITH

2013-11-19 Thread Digimer
SSH-based fencing isn't. A fence method can not assume that the target is in any way functional. A quick way to see why is to crash a node with 'echo c > /proc/sysrq-trigger'. digimer On 19/11/13 13:10, Andrey Groshev wrote: > Hi everyone again. > > I started training with STONITH. > I wrote a l

[Pacemaker] some questions about STONITH

2013-11-19 Thread Andrey Groshev
Hi everyone again. I started training with STONITH. I wrote a little STONITH external script. Its basic moments: * send the command "reboot" with SSH authentication using a key. * The script takes a single argument - the path to the private key. * Any node can send reboot any node (even yourself).

Re: [Pacemaker] exit code crm_attibute

2013-11-19 Thread Andrey Groshev
Hellow Andrew! I'm sorry, forgot about this thread, and now again came across the same problem. # crm_attribute --type nodes --node-uname fackename.node.org --attr-name notexistattibute --query > /dev/null; echo $? Could not map name=fackename.node.org to a UUID 0 Version PCMK 1.1.11 23.09.2013

Re: [Pacemaker] SBD fencing with stonith disabled

2013-11-19 Thread Lars Marowsky-Bree
On 2013-11-19T12:02:07, "Angel L. Mateo" wrote: > >Yes, you should also be able to use that. > But is it recommended for a two node cluster? I remember me reading in > some > place that in such scenario is better a sbd stonith because it provides > mechanism (but I could be wrong) True, e

Re: [Pacemaker] SBD fencing with stonith disabled

2013-11-19 Thread Angel L. Mateo
El 19/11/13 11:34, Lars Marowsky-Bree escribió: On 2013-11-19T11:25:36, "Angel L. Mateo" wrote: property $id="cib-bootstrap-options" \ dc-version="1.1.6-9971ebba4494012a93c03b40a2c58ec0eb60f50c" \ Wow, that's quite old. It's pacemaker provided by ubuntu 12.04. Yeah, well.

Re: [Pacemaker] SBD fencing with stonith disabled

2013-11-19 Thread Lars Marowsky-Bree
On 2013-11-19T11:25:36, "Angel L. Mateo" wrote: > >>property $id="cib-bootstrap-options" \ > >> dc-version="1.1.6-9971ebba4494012a93c03b40a2c58ec0eb60f50c" \ > >Wow, that's quite old. > It's pacemaker provided by ubuntu 12.04. Yeah, well. Still old. Probably something to complain t

Re: [Pacemaker] SBD fencing with stonith disabled

2013-11-19 Thread Angel L. Mateo
El 19/11/13 09:44, Lars Marowsky-Bree escribió: On 2013-11-19T09:27:10, "Angel L. Mateo" wrote: property $id="cib-bootstrap-options" \ dc-version="1.1.6-9971ebba4494012a93c03b40a2c58ec0eb60f50c" \ Wow, that's quite old. It's pacemaker provided by ubuntu 12.04. Nov 16 12:

Re: [Pacemaker] configuration files of cluster

2013-11-19 Thread Dvorak Andreas
Thank you for the answers, I do not have crm configure save in my installation. I will choose the pcs config output. Regards, Andreas -Ursprüngliche Nachricht- Von: Florian Crouzat [mailto:gen...@floriancrouzat.net] Gesendet: Montag, 18. November 2013 16:14 An: The Pacemaker cluster res

Re: [Pacemaker] SBD fencing with stonith disabled

2013-11-19 Thread Lars Marowsky-Bree
On 2013-11-19T09:27:10, "Angel L. Mateo" wrote: > property $id="cib-bootstrap-options" \ > dc-version="1.1.6-9971ebba4494012a93c03b40a2c58ec0eb60f50c" \ Wow, that's quite old. > Nov 16 12:20:47 myotis51 sbd: [1377]: WARN: Latency: No liveness for 4 s > exceeds threshold of 3 s ( > healt

[Pacemaker] SBD fencing with stonith disabled

2013-11-19 Thread Angel L. Mateo
Hello, I have a two node cluster based on cman+pacemaker running on ubuntu 12.04. Last weekend my active node was shutdown, even while I was stonith disabled. In my config I have: ... primitive stonith_sbd stonith:external/sbd \ params sbd_device="/dev/disk/by-id/wwn-0x6000