[ClusterLabs] clvmd in rgmanager with self_fence="true"

2016-08-02 Thread Digimer
Hi all,

  Do to recent issues[1], I want to configure cman/rgmanager to
suicide/self-fence if clvmd fails for some reason. The RHBZ suggested
adding 'self_fence="true"' to the service, but this is not supported by
the 'script' RA.

  I decided to try and use the lvm RA, but despite there being
references to clvmd, it seems to insist on an active/passive setup. When
I start LVM service on the second node, it complains that the LV is
already activated on another node.

  I've been googling trying to find an example implementation of
active/active LVM in rgmanager but have come up frustratingly blank. If
anyone can give me a clue, I would be very grateful. :)

digimer

1. https://bugzilla.redhat.com/show_bug.cgi?id=1349755

-- 
Digimer
Papers and Projects: https://alteeve.ca/w/
What if the cure for cancer is trapped in the mind of a person without
access to education?

___
Users mailing list: Users@clusterlabs.org
http://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] [Announce] clufter v0.59.4 released

2016-08-02 Thread Jan Pokorný
I am happy to announce that clufter, a tool/library for transforming
and analyzing cluster configuration formats, got its version 0.59.4
tagged and released (incl. signature using my 60BCBB4F5CD7F9EF key):


or alternative (original) location:



The test suite is the same as for 0.59.1 as nothing changed there:

or alternatively:


Changelog highlights for v0.59.4 (also available as a tag message):

- bug fix release straightening recent changes up
- feature extensions:
  . when *2pcscmd commands colorize the output, upcoming booth-related
pcs commands are considered as well
- bug fixes:
  . {ccs,pcs}2pcscmd* would previously exceed a recursion limit due
to not catching the bottom of the recursion properly
  . with *2pcscmd* commands, --dump=cmd-annotate switch would
previously cause troubles as newly introduced Nothing format
lacked "hash" property (which is used to construct reasonably
unique file name to store the intermediate result at individual
phases of the filter-piping process)

* * *

The public repository (notably master and next branches) is currently at

(rather than ).

Official, signed releases can be found at
 or, alternatively, at

(also beware, automatic git archives preserve a "dev structure").

Natively packaged in Fedora (python-clufter, clufter-cli).

Issues & suggestions can be reported at either of (regardless if Fedora)
,
.


Happy clustering/high-availing :)

-- 
Jan (Poki)


pgp_wEcXjLBPk.pgp
Description: PGP signature
___
Users mailing list: Users@clusterlabs.org
http://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] STONITH Fencing for Amazon EC2

2016-08-02 Thread Digimer
On 02/08/16 10:02 AM, Jason A Ramsey wrote:
> I’ve found [oldish] references on the internet to a fencing module for Amazon 
> EC2, but it doesn’t seem to be included in any the fencing yum packages for 
> CentOS. Is this module not part of the canonical distribution? Is there 
> something else I should be looking for?

I *think* it fell behind (fence_ec2, iirc). It might need to be picked
up, updated/tested and then it can be re-added to the official list.

I'm not 100% on this though, so if someone contradicts me, ignore me.

-- 
Digimer
Papers and Projects: https://alteeve.ca/w/
What if the cure for cancer is trapped in the mind of a person without
access to education?

___
Users mailing list: Users@clusterlabs.org
http://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] Bloody Newbie needs help for OCFS2 on pacemaker+corosync+pcs

2016-08-02 Thread Ken Gaillot
On 08/02/2016 08:16 AM, t...@it-hluchnik.de wrote:
> Hello Kyle + all,
> 
> No luck at all. Cant get o2cb up at all. Please find details below.
> Thanks in advance for any help.
> 
> First I tried to translate your crm syntax to pcs syntax:
> 
> primitive p_o2cb lsb:o2cb \ op monitor interval="10" timeout="30"
> \ op start interval="0" timeout="120" \ op stop interval="0"
> timeout="120"
> 
> ||| vvv
> 
> # pcs resource create ResO2CB lsb:o2cb \ op monitor interval="10"
> timeout="30" \ op start interval="0" timeout="120" \ op stop
> interval="0" timeout="120"
> 
> Error: Unable to create resource 'lsb:o2cb', it is not installed on
> this system (use --force to override)
> 
> 
> I checked my installation and found this:
> 
> # rpm -ql pacemaker | grep o2cb 
> /usr/share/man/man7/ocf_pacemaker_o2cb.7.gz
> 
> According this, I would expect
> /usr/lib/ocf/resource.d/pacemaker/o2cb but there is no such
> script.

OEL is, shall we say, very similar to RHEL. RHEL doesn't support
OCFS2, so it does not include that RA. It is ironic that OEL doesn't
change that. In any case, you can get the RA from the upstream source:
https://github.com/ClusterLabs/pacemaker/tree/master/extra/resources

> But I succeeded in:
> 
> # pcs resource create --force ResO2CB ocf:pacemaker:o2cb \ op
> monitor interval="10" timeout="30" \ op start interval="0"
> timeout="120" \ op stop interval="0" timeout="120"
> 
> # pcs resource show ... ResO2CB(ocf::pacemaker:o2cb):
> Stopped ...
> 
> Trying to debug-start:
> 
> # pcs resource debug-start ResO2CB Error performing operation:
> Input/output error
> 
> 
> 
> # rpm -qi pacemaker Name: pacemaker Version : 1.1.13 
> Release : 10.el7 Architecture: x86_64 Install Date: Sa 23 Jul
> 2016 15:23:51 CEST Group   : System Environment/Daemons Size
> : 1400509 License : GPLv2+ and LGPLv2+ Signature   :
> RSA/SHA256, Sa 21 Nov 2015 19:24:37 CET, Key ID 72f97b74ec551f03 
> Source RPM  : pacemaker-1.1.13-10.el7.src.rpm Build Date  : Sa 21
> Nov 2015 18:10:40 CET ...
> 
> It seems that o2cb script is missing in that RPM. Or did I miss to
> install any package?
> 
> Best Regards
> 
> Thomas Hluchnik
> 
> 
> 
> 
> 
> Am Tuesday 02 August 2016 12:39:27 schrieb Kyle O'Donnell:
>> er forgot
>> 
>> primitive p_o2cb lsb:o2cb \ op monitor interval="10" timeout="30"
>> \ op start interval="0" timeout="120" \ op stop interval="0"
>> timeout="120"
>> 
>> - Original Message - From: "Kyle O'Donnell"
>>  To: "users"  Sent:
>> Tuesday, August 2, 2016 6:38:11 AM Subject: Re: [ClusterLabs]
>> Bloody Newbie needs help for OCFS2 onpacemaker+corosync+pcs
>> 
>> primitive mysan ocf:heartbeat:Filesystem \ params
>> device="/dev/myocsdevice" directory="/mymount" fstype="ocfs2"
>> options="rw,noatime" \ op monitor timeout="40" interval="20"
>> depth="0" clone cl_ocfs2mgmt p_o2cb \ meta interleave="true" 
>> clone cl_mysan mysan \ meta target-role="Started" order
>> o_myresource_fs inf: cl_mysan myresource
>> 
>> 
>> - Original Message - From: t...@it-hluchnik.de To: "users"
>>  Sent: Tuesday, August 2, 2016 6:31:44 AM 
>> Subject: [ClusterLabs] Bloody Newbie needs help for OCFS2 on
>> pacemaker+corosync+pcs
>> 
>> Hello everybody, I am new to pacemaker (and to this list), trying
>> to understand pacemaker. For this I created three virtual hosts
>> in my VirtualBox plus four shared disks, attached with each of
>> the three nodes.
>> 
>> I installed Oracle Enterprise Linux 7.1, did a "yum update" and
>> got OEL7.2. Then I created four OCFS2 devices, working fine on
>> all of my three nodes. They are started by systemd, using
>> o2cb.service and ocfs2.service and running fine.
>> 
>> Now I have started with learning pacemaker by "Clusters from
>> Scratch" and meanwhile I have a virtual IP and a Webserver, this
>> works fine so far.
>> 
>> Next I want to control my OCFS2 devices by pacemaker, not by
>> systemd. I searched the net and found some howtos, but they rely
>> on crmsh instead of pcs. Most headaches come from DRBD which I
>> don't understand at all. Why the hell does it seem that I need
>> DRBD for running OCFS2?
>> 
>> Is there anybody who can explain me how to get that running
>> (after disabling o2cb.service & ocfs2.service):
>> 
>> - create a resource which manages and controls o2cb stack -
>> create another resource which manages OCFS2 mountpoints - create
>> constraints for the Web Server (all Apache config / content shall
>> be copied to one of the OCFS2 filesystems)
>> 
>> The Web Server shall be dependent from availability of a mounted
>> OCFS2 device. If it stops working, the Web Server must switch to
>> a node where that mount point is OK.
>> 
>> Thanks in advance for any help
>> 
>> Thomas Hluchnik

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

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

[ClusterLabs] Antw: Re: Bloody Newbie needs help for OCFS2 on pacemaker+corosync+pcs

2016-08-02 Thread Ulrich Windl
>>>  schrieb am 02.08.2016 um 15:16 in Nachricht
<201608021517.06638@it-hluchnik.de>:
> Hello Kyle + all,
> 
> No luck at all. Cant get o2cb up at all. Please find details below. Thanks 
> in advance for any help.
> 
> First I tried to translate your crm syntax to pcs syntax:
> 
> primitive p_o2cb lsb:o2cb \
> op monitor interval="10" timeout="30" \
> op start interval="0" timeout="120" \
> op stop interval="0" timeout="120"
> 
>   |||
>   vvv
> 
> # pcs resource create ResO2CB lsb:o2cb \
> op monitor interval="10" timeout="30" \
> op start interval="0" timeout="120" \
> op stop interval="0" timeout="120"
> 
> Error: Unable to create resource 'lsb:o2cb', it is not installed on this 
> system (use --force to override)

While looking how we did it, I found something interesting: For groups the RA 
is displayed by crm_mon, but for clones it isn't (prm_O2CB isn't shown 
anywhere):
Like this:
[...]
 Clone Set: cln_O2CB [prm_O2CB]
 Started: [ h02 h06 ]
 Resource Group: grp_rksapT11
 prm_T11_ip_1  (ocf::heartbeat:IPaddr2):   Started h06
 prm_isredir_t11_dp02   (ocf::xola:isredir):Stopped
 prm_isredir_t11_dp03   (ocf::xola:isredir):Stopped
[...]


What we use here is this (crmsh syntax):
primitive prm_O2CB ocf:ocfs2:o2cb \
op start interval=0 timeout=90 \
op stop interval=0 timeout=120 \
op monitor interval=60 timeout=60 \
meta priority=9880
[...]

Regards,
Ulrich



___
Users mailing list: Users@clusterlabs.org
http://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] external/libvirt source code

2016-08-02 Thread Andrei Borzenkov
On Tue, Aug 2, 2016 at 4:58 PM, Maciej Kopczyński  wrote:
> Hello,
>
> Sorry if it is a trivial question, but I am facing a wall here. I am trying
> to configure fencing on cluster running Hyper-V. I need to modify source
> code for external/libvirt plugin, but I have no idea which package provides
> it, cannot Google any files, do you have any idea?

http://hg.linux-ha.org/glue

___
Users mailing list: Users@clusterlabs.org
http://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] STONITH Fencing for Amazon EC2

2016-08-02 Thread Jason A Ramsey
I’ve found [oldish] references on the internet to a fencing module for Amazon 
EC2, but it doesn’t seem to be included in any the fencing yum packages for 
CentOS. Is this module not part of the canonical distribution? Is there 
something else I should be looking for?

--
 
[ jR ]
  @: ja...@eramsey.org
 
  there is no path to greatness; greatness is the path

___
Users mailing list: Users@clusterlabs.org
http://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] external/libvirt source code

2016-08-02 Thread Maciej Kopczyński
Hello,

Sorry if it is a trivial question, but I am facing a wall here. I am trying
to configure fencing on cluster running Hyper-V. I need to modify source
code for external/libvirt plugin, but I have no idea which package provides
it, cannot Google any files, do you have any idea?

Thanks in advance,
Maciek
___
Users mailing list: Users@clusterlabs.org
http://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] Bloody Newbie needs help for OCFS2 on pacemaker+corosync+pcs

2016-08-02 Thread emmanuel segura
This link can help you
http://clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Pacemaker_Explained/s-resource-supported.html

2016-08-02 15:37 GMT+02:00  :
> What do you mean? What is the "resource agent for using o2cb"? Please explain 
> this a bit closer, I am just becoming familiar with all that stuff.
>
> Thanks for any help,
>
> Thomas Hluchnik
>
>
> Am Tuesday 02 August 2016 15:28:17 schrieb emmanuel segura:
>> why you don't use the resource agent for using o2cb? This script for
>> begin used with ocfs legacy mode.
>>
>> 2016-08-02 12:39 GMT+02:00 Kyle O'Donnell :
>> > er forgot
>> >
>> > primitive p_o2cb lsb:o2cb \
>> > op monitor interval="10" timeout="30" \
>> > op start interval="0" timeout="120" \
>> > op stop interval="0" timeout="120"
>> >
>> > - Original Message -
>> > From: "Kyle O'Donnell" 
>> > To: "users" 
>> > Sent: Tuesday, August 2, 2016 6:38:11 AM
>> > Subject: Re: [ClusterLabs] Bloody Newbie needs help for OCFS2 on
>> > pacemaker+corosync+pcs
>> >
>> > primitive mysan ocf:heartbeat:Filesystem \
>> > params device="/dev/myocsdevice" directory="/mymount" 
>> > fstype="ocfs2" options="rw,noatime" \
>> > op monitor timeout="40" interval="20" depth="0"
>> > clone cl_ocfs2mgmt p_o2cb \
>> > meta interleave="true"
>> > clone cl_mysan mysan \
>> > meta target-role="Started"
>> > order o_myresource_fs inf: cl_mysan myresource
>> >
>> >
>> > - Original Message -
>> > From: t...@it-hluchnik.de
>> > To: "users" 
>> > Sent: Tuesday, August 2, 2016 6:31:44 AM
>> > Subject: [ClusterLabs] Bloody Newbie needs help for OCFS2 on
>> > pacemaker+corosync+pcs
>> >
>> > Hello everybody,
>> > I am new to pacemaker (and to this list), trying to understand pacemaker. 
>> > For this I created three virtual hosts in my VirtualBox plus four shared 
>> > disks, attached with each of the three nodes.
>> >
>> > I installed Oracle Enterprise Linux 7.1, did a "yum update" and got OEL7.2.
>> > Then I created four OCFS2 devices, working fine on all of my three nodes. 
>> > They are started by systemd, using o2cb.service and ocfs2.service and 
>> > running fine.
>> >
>> > Now I have started with learning pacemaker by "Clusters from Scratch" and 
>> > meanwhile I have a virtual IP and a Webserver, this works fine so far.
>> >
>> > Next I want to control my OCFS2 devices by pacemaker, not by systemd. I 
>> > searched the net and found some howtos, but they rely on crmsh instead of 
>> > pcs. Most headaches come from DRBD which I don't understand at all. Why 
>> > the hell does it seem that I need DRBD for running OCFS2?
>> >
>> > Is there anybody who can explain me how to get that running (after 
>> > disabling o2cb.service & ocfs2.service):
>> >
>> > - create a resource which manages and controls o2cb stack
>> > - create another resource which manages OCFS2 mountpoints
>> > - create constraints for the Web Server (all Apache config / content shall 
>> > be copied to one of the OCFS2 filesystems)
>> >
>> > The Web Server shall be dependent from availability of a mounted OCFS2 
>> > device. If it stops working, the Web Server must switch to a node where 
>> > that mount point is OK.
>> >
>> > Thanks in advance for any help
>> >
>> > Thomas Hluchnik
>> >
>> > ___
>> > Users mailing list: Users@clusterlabs.org
>> > http://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://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://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://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] Bloody Newbie needs help for OCFS2 on pacemaker+corosync+pcs

2016-08-02 Thread thl
What do you mean? What is the "resource agent for using o2cb"? Please explain 
this a bit closer, I am just becoming familiar with all that stuff.

Thanks for any help,

Thomas Hluchnik


Am Tuesday 02 August 2016 15:28:17 schrieb emmanuel segura:
> why you don't use the resource agent for using o2cb? This script for
> begin used with ocfs legacy mode.
> 
> 2016-08-02 12:39 GMT+02:00 Kyle O'Donnell :
> > er forgot
> >
> > primitive p_o2cb lsb:o2cb \
> > op monitor interval="10" timeout="30" \
> > op start interval="0" timeout="120" \
> > op stop interval="0" timeout="120"
> >
> > - Original Message -
> > From: "Kyle O'Donnell" 
> > To: "users" 
> > Sent: Tuesday, August 2, 2016 6:38:11 AM
> > Subject: Re: [ClusterLabs] Bloody Newbie needs help for OCFS2 on
> > pacemaker+corosync+pcs
> >
> > primitive mysan ocf:heartbeat:Filesystem \
> > params device="/dev/myocsdevice" directory="/mymount" 
> > fstype="ocfs2" options="rw,noatime" \
> > op monitor timeout="40" interval="20" depth="0"
> > clone cl_ocfs2mgmt p_o2cb \
> > meta interleave="true"
> > clone cl_mysan mysan \
> > meta target-role="Started"
> > order o_myresource_fs inf: cl_mysan myresource
> >
> >
> > - Original Message -
> > From: t...@it-hluchnik.de
> > To: "users" 
> > Sent: Tuesday, August 2, 2016 6:31:44 AM
> > Subject: [ClusterLabs] Bloody Newbie needs help for OCFS2 on
> > pacemaker+corosync+pcs
> >
> > Hello everybody,
> > I am new to pacemaker (and to this list), trying to understand pacemaker. 
> > For this I created three virtual hosts in my VirtualBox plus four shared 
> > disks, attached with each of the three nodes.
> >
> > I installed Oracle Enterprise Linux 7.1, did a "yum update" and got OEL7.2.
> > Then I created four OCFS2 devices, working fine on all of my three nodes. 
> > They are started by systemd, using o2cb.service and ocfs2.service and 
> > running fine.
> >
> > Now I have started with learning pacemaker by "Clusters from Scratch" and 
> > meanwhile I have a virtual IP and a Webserver, this works fine so far.
> >
> > Next I want to control my OCFS2 devices by pacemaker, not by systemd. I 
> > searched the net and found some howtos, but they rely on crmsh instead of 
> > pcs. Most headaches come from DRBD which I don't understand at all. Why the 
> > hell does it seem that I need DRBD for running OCFS2?
> >
> > Is there anybody who can explain me how to get that running (after 
> > disabling o2cb.service & ocfs2.service):
> >
> > - create a resource which manages and controls o2cb stack
> > - create another resource which manages OCFS2 mountpoints
> > - create constraints for the Web Server (all Apache config / content shall 
> > be copied to one of the OCFS2 filesystems)
> >
> > The Web Server shall be dependent from availability of a mounted OCFS2 
> > device. If it stops working, the Web Server must switch to a node where 
> > that mount point is OK.
> >
> > Thanks in advance for any help
> >
> > Thomas Hluchnik
> >
> > ___
> > Users mailing list: Users@clusterlabs.org
> > http://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://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
> 
> 
> 




signature.asc
Description: This is a digitally signed message part.
___
Users mailing list: Users@clusterlabs.org
http://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] Bloody Newbie needs help for OCFS2 on pacemaker+corosync+pcs

2016-08-02 Thread emmanuel segura
why you don't use the resource agent for using o2cb? This script for
begin used with ocfs legacy mode.

2016-08-02 12:39 GMT+02:00 Kyle O'Donnell :
> er forgot
>
> primitive p_o2cb lsb:o2cb \
> op monitor interval="10" timeout="30" \
> op start interval="0" timeout="120" \
> op stop interval="0" timeout="120"
>
> - Original Message -
> From: "Kyle O'Donnell" 
> To: "users" 
> Sent: Tuesday, August 2, 2016 6:38:11 AM
> Subject: Re: [ClusterLabs] Bloody Newbie needs help for OCFS2 on
> pacemaker+corosync+pcs
>
> primitive mysan ocf:heartbeat:Filesystem \
> params device="/dev/myocsdevice" directory="/mymount" fstype="ocfs2" 
> options="rw,noatime" \
> op monitor timeout="40" interval="20" depth="0"
> clone cl_ocfs2mgmt p_o2cb \
> meta interleave="true"
> clone cl_mysan mysan \
> meta target-role="Started"
> order o_myresource_fs inf: cl_mysan myresource
>
>
> - Original Message -
> From: t...@it-hluchnik.de
> To: "users" 
> Sent: Tuesday, August 2, 2016 6:31:44 AM
> Subject: [ClusterLabs] Bloody Newbie needs help for OCFS2 on
> pacemaker+corosync+pcs
>
> Hello everybody,
> I am new to pacemaker (and to this list), trying to understand pacemaker. For 
> this I created three virtual hosts in my VirtualBox plus four shared disks, 
> attached with each of the three nodes.
>
> I installed Oracle Enterprise Linux 7.1, did a "yum update" and got OEL7.2.
> Then I created four OCFS2 devices, working fine on all of my three nodes. 
> They are started by systemd, using o2cb.service and ocfs2.service and running 
> fine.
>
> Now I have started with learning pacemaker by "Clusters from Scratch" and 
> meanwhile I have a virtual IP and a Webserver, this works fine so far.
>
> Next I want to control my OCFS2 devices by pacemaker, not by systemd. I 
> searched the net and found some howtos, but they rely on crmsh instead of 
> pcs. Most headaches come from DRBD which I don't understand at all. Why the 
> hell does it seem that I need DRBD for running OCFS2?
>
> Is there anybody who can explain me how to get that running (after disabling 
> o2cb.service & ocfs2.service):
>
> - create a resource which manages and controls o2cb stack
> - create another resource which manages OCFS2 mountpoints
> - create constraints for the Web Server (all Apache config / content shall be 
> copied to one of the OCFS2 filesystems)
>
> The Web Server shall be dependent from availability of a mounted OCFS2 
> device. If it stops working, the Web Server must switch to a node where that 
> mount point is OK.
>
> Thanks in advance for any help
>
> Thomas Hluchnik
>
> ___
> Users mailing list: Users@clusterlabs.org
> http://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://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://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] Bloody Newbie needs help for OCFS2 on pacemaker+corosync+pcs

2016-08-02 Thread thl
Hello Kyle + all,

No luck at all. Cant get o2cb up at all. Please find details below. Thanks in 
advance for any help.

First I tried to translate your crm syntax to pcs syntax:

primitive p_o2cb lsb:o2cb \
op monitor interval="10" timeout="30" \
op start interval="0" timeout="120" \
op stop interval="0" timeout="120"

  |||
  vvv

# pcs resource create ResO2CB lsb:o2cb \
op monitor interval="10" timeout="30" \
op start interval="0" timeout="120" \
op stop interval="0" timeout="120"

Error: Unable to create resource 'lsb:o2cb', it is not installed on this system 
(use --force to override)


I checked my installation and found this:

# rpm -ql pacemaker | grep o2cb
/usr/share/man/man7/ocf_pacemaker_o2cb.7.gz

According this, I would expect /usr/lib/ocf/resource.d/pacemaker/o2cb but there 
is no such script.

But I succeeded in:

# pcs resource create --force ResO2CB ocf:pacemaker:o2cb \
op monitor interval="10" timeout="30" \
op start interval="0" timeout="120" \
op stop interval="0" timeout="120"

# pcs resource show
...
ResO2CB(ocf::pacemaker:o2cb):  Stopped
...

Trying to debug-start:

# pcs resource debug-start ResO2CB
Error performing operation: Input/output error



# rpm -qi pacemaker
Name: pacemaker
Version : 1.1.13
Release : 10.el7
Architecture: x86_64
Install Date: Sa 23 Jul 2016 15:23:51 CEST
Group   : System Environment/Daemons
Size: 1400509
License : GPLv2+ and LGPLv2+
Signature   : RSA/SHA256, Sa 21 Nov 2015 19:24:37 CET, Key ID 72f97b74ec551f03
Source RPM  : pacemaker-1.1.13-10.el7.src.rpm
Build Date  : Sa 21 Nov 2015 18:10:40 CET
...

It seems that o2cb script is missing in that RPM. Or did I miss to install any 
package?

Best Regards

Thomas Hluchnik





Am Tuesday 02 August 2016 12:39:27 schrieb Kyle O'Donnell:
> er forgot
> 
> primitive p_o2cb lsb:o2cb \
> op monitor interval="10" timeout="30" \
> op start interval="0" timeout="120" \
> op stop interval="0" timeout="120"
> 
> - Original Message -
> From: "Kyle O'Donnell" 
> To: "users" 
> Sent: Tuesday, August 2, 2016 6:38:11 AM
> Subject: Re: [ClusterLabs] Bloody Newbie needs help for OCFS2 on  
> pacemaker+corosync+pcs
> 
> primitive mysan ocf:heartbeat:Filesystem \
> params device="/dev/myocsdevice" directory="/mymount" fstype="ocfs2" 
> options="rw,noatime" \
> op monitor timeout="40" interval="20" depth="0"
> clone cl_ocfs2mgmt p_o2cb \
> meta interleave="true"
> clone cl_mysan mysan \
> meta target-role="Started"
> order o_myresource_fs inf: cl_mysan myresource
> 
> 
> - Original Message -
> From: t...@it-hluchnik.de
> To: "users" 
> Sent: Tuesday, August 2, 2016 6:31:44 AM
> Subject: [ClusterLabs] Bloody Newbie needs help for OCFS2 on  
> pacemaker+corosync+pcs
> 
> Hello everybody,
> I am new to pacemaker (and to this list), trying to understand pacemaker. For 
> this I created three virtual hosts in my VirtualBox plus four shared disks, 
> attached with each of the three nodes.
> 
> I installed Oracle Enterprise Linux 7.1, did a "yum update" and got OEL7.2.
> Then I created four OCFS2 devices, working fine on all of my three nodes. 
> They are started by systemd, using o2cb.service and ocfs2.service and running 
> fine.
> 
> Now I have started with learning pacemaker by "Clusters from Scratch" and 
> meanwhile I have a virtual IP and a Webserver, this works fine so far.
> 
> Next I want to control my OCFS2 devices by pacemaker, not by systemd. I 
> searched the net and found some howtos, but they rely on crmsh instead of 
> pcs. Most headaches come from DRBD which I don't understand at all. Why the 
> hell does it seem that I need DRBD for running OCFS2?
> 
> Is there anybody who can explain me how to get that running (after disabling 
> o2cb.service & ocfs2.service):
> 
> - create a resource which manages and controls o2cb stack
> - create another resource which manages OCFS2 mountpoints
> - create constraints for the Web Server (all Apache config / content shall be 
> copied to one of the OCFS2 filesystems)
> 
> The Web Server shall be dependent from availability of a mounted OCFS2 
> device. If it stops working, the Web Server must switch to a node where that 
> mount point is OK.
> 
> Thanks in advance for any help
> 
> Thomas Hluchnik
> 
> ___
> Users mailing list: Users@clusterlabs.org
> http://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://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
> 




signature.asc
D

Re: [ClusterLabs] Bloody Newbie needs help for OCFS2 on pacemaker+corosync+pcs

2016-08-02 Thread Kyle O'Donnell
er forgot

primitive p_o2cb lsb:o2cb \
op monitor interval="10" timeout="30" \
op start interval="0" timeout="120" \
op stop interval="0" timeout="120"

- Original Message -
From: "Kyle O'Donnell" 
To: "users" 
Sent: Tuesday, August 2, 2016 6:38:11 AM
Subject: Re: [ClusterLabs] Bloody Newbie needs help for OCFS2 on
pacemaker+corosync+pcs

primitive mysan ocf:heartbeat:Filesystem \
params device="/dev/myocsdevice" directory="/mymount" fstype="ocfs2" 
options="rw,noatime" \
op monitor timeout="40" interval="20" depth="0"
clone cl_ocfs2mgmt p_o2cb \
meta interleave="true"
clone cl_mysan mysan \
meta target-role="Started"
order o_myresource_fs inf: cl_mysan myresource


- Original Message -
From: t...@it-hluchnik.de
To: "users" 
Sent: Tuesday, August 2, 2016 6:31:44 AM
Subject: [ClusterLabs] Bloody Newbie needs help for OCFS2 on
pacemaker+corosync+pcs

Hello everybody,
I am new to pacemaker (and to this list), trying to understand pacemaker. For 
this I created three virtual hosts in my VirtualBox plus four shared disks, 
attached with each of the three nodes.

I installed Oracle Enterprise Linux 7.1, did a "yum update" and got OEL7.2.
Then I created four OCFS2 devices, working fine on all of my three nodes. They 
are started by systemd, using o2cb.service and ocfs2.service and running fine.

Now I have started with learning pacemaker by "Clusters from Scratch" and 
meanwhile I have a virtual IP and a Webserver, this works fine so far.

Next I want to control my OCFS2 devices by pacemaker, not by systemd. I 
searched the net and found some howtos, but they rely on crmsh instead of pcs. 
Most headaches come from DRBD which I don't understand at all. Why the hell 
does it seem that I need DRBD for running OCFS2?

Is there anybody who can explain me how to get that running (after disabling 
o2cb.service & ocfs2.service):

- create a resource which manages and controls o2cb stack
- create another resource which manages OCFS2 mountpoints
- create constraints for the Web Server (all Apache config / content shall be 
copied to one of the OCFS2 filesystems)

The Web Server shall be dependent from availability of a mounted OCFS2 device. 
If it stops working, the Web Server must switch to a node where that mount 
point is OK.

Thanks in advance for any help

Thomas Hluchnik

___
Users mailing list: Users@clusterlabs.org
http://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://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] Bloody Newbie needs help for OCFS2 on pacemaker+corosync+pcs

2016-08-02 Thread Kyle O'Donnell
primitive mysan ocf:heartbeat:Filesystem \
params device="/dev/myocsdevice" directory="/mymount" fstype="ocfs2" 
options="rw,noatime" \
op monitor timeout="40" interval="20" depth="0"
clone cl_ocfs2mgmt p_o2cb \
meta interleave="true"
clone cl_mysan mysan \
meta target-role="Started"
order o_myresource_fs inf: cl_mysan myresource


- Original Message -
From: t...@it-hluchnik.de
To: "users" 
Sent: Tuesday, August 2, 2016 6:31:44 AM
Subject: [ClusterLabs] Bloody Newbie needs help for OCFS2 on
pacemaker+corosync+pcs

Hello everybody,
I am new to pacemaker (and to this list), trying to understand pacemaker. For 
this I created three virtual hosts in my VirtualBox plus four shared disks, 
attached with each of the three nodes.

I installed Oracle Enterprise Linux 7.1, did a "yum update" and got OEL7.2.
Then I created four OCFS2 devices, working fine on all of my three nodes. They 
are started by systemd, using o2cb.service and ocfs2.service and running fine.

Now I have started with learning pacemaker by "Clusters from Scratch" and 
meanwhile I have a virtual IP and a Webserver, this works fine so far.

Next I want to control my OCFS2 devices by pacemaker, not by systemd. I 
searched the net and found some howtos, but they rely on crmsh instead of pcs. 
Most headaches come from DRBD which I don't understand at all. Why the hell 
does it seem that I need DRBD for running OCFS2?

Is there anybody who can explain me how to get that running (after disabling 
o2cb.service & ocfs2.service):

- create a resource which manages and controls o2cb stack
- create another resource which manages OCFS2 mountpoints
- create constraints for the Web Server (all Apache config / content shall be 
copied to one of the OCFS2 filesystems)

The Web Server shall be dependent from availability of a mounted OCFS2 device. 
If it stops working, the Web Server must switch to a node where that mount 
point is OK.

Thanks in advance for any help

Thomas Hluchnik

___
Users mailing list: Users@clusterlabs.org
http://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://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] Bloody Newbie needs help for OCFS2 on pacemaker+corosync+pcs

2016-08-02 Thread thl
Hello everybody,
I am new to pacemaker (and to this list), trying to understand pacemaker. For 
this I created three virtual hosts in my VirtualBox plus four shared disks, 
attached with each of the three nodes.

I installed Oracle Enterprise Linux 7.1, did a "yum update" and got OEL7.2.
Then I created four OCFS2 devices, working fine on all of my three nodes. They 
are started by systemd, using o2cb.service and ocfs2.service and running fine.

Now I have started with learning pacemaker by "Clusters from Scratch" and 
meanwhile I have a virtual IP and a Webserver, this works fine so far.

Next I want to control my OCFS2 devices by pacemaker, not by systemd. I 
searched the net and found some howtos, but they rely on crmsh instead of pcs. 
Most headaches come from DRBD which I don't understand at all. Why the hell 
does it seem that I need DRBD for running OCFS2?

Is there anybody who can explain me how to get that running (after disabling 
o2cb.service & ocfs2.service):

- create a resource which manages and controls o2cb stack
- create another resource which manages OCFS2 mountpoints
- create constraints for the Web Server (all Apache config / content shall be 
copied to one of the OCFS2 filesystems)

The Web Server shall be dependent from availability of a mounted OCFS2 device. 
If it stops working, the Web Server must switch to a node where that mount 
point is OK.

Thanks in advance for any help

Thomas Hluchnik


signature.asc
Description: This is a digitally signed message part.
___
Users mailing list: Users@clusterlabs.org
http://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