Hi John,

On Fri, Sep 23, 2011 at 02:46:05PM -0500, John Keith Hohm wrote:
> Many thanks to Jeroen and Tomo for starting this.  I have taken their 
> versions, incorporated the recommendations from Dejan's review, made a 
> few improvements of my own, and committed to a fork on GitHub:
> 
> https://github.com/jhohm/resource-agents
> 
> I'm not sure of your workflow, can I just make a GitHub pull request?

There's no one specific workflow, but in case of new agents, I'd
rather just add a file myself. That is unless for some reason
you want to keep the history.

It's been a while since I looked at the RA, I'll take another
look tomorrow.

> I am using this version in production, with the data and cn=config on 
> LVM on DRBD on RHEL 6.1.

So, you use DRBD to replicate the data. Did you consider using
the slapd mirror mode? Would that also work with this RA?

Many thanks for contributing!

Cheers,

Dejan

> The relevant portions of my pacemaker 
> configuration:
> 
> primitive ldap-a-drbd ocf:linbit:drbd \
>       params drbd_resource="ldap-a" \
>       op monitor interval="15s" \
>       op start interval="0" timeout="240s" \
>       op stop interval="0" timeout="100s"
> 
> primitive ldap-a-fs-data ocf:heartbeat:Filesystem \
>       params device="/dev/dvg_ldapa/dlv_data" \
>               directory="/srv/ldap/a/data" fstype="ext4" \
>               options="data=writeback,barrier=0" \
>       op start interval="0" timeout="60s" \
>       op stop interval="0" timeout="60s"
> 
> primitive ldap-a-fs-log ocf:heartbeat:Filesystem \
>       params device="/dev/dvg_ldapa/dlv_log" \
>               directory="/srv/ldap/a/log" fstype="ext4" \
>               options="data=writeback,barrier=0" \
>       op start interval="0" timeout="60s" \
>       op stop interval="0" timeout="60s"
> 
> primitive ldap-a-ip ocf:heartbeat:IPaddr2 \
>       params ip="10.1.2.3" cidr_netmask="25" nic="vlan13" \
>       op monitor interval="5s"
> 
> primitive ldap-a-lvm ocf:heartbeat:LVM \
>       params volgrpname="dvg_ldapa" exclusive="true" \
>       op monitor interval="10s" timeout="30s" \
>       op start interval="0" timeout="30s" \
>       op stop interval="0" timeout="30s"
> 
> primitive ldap-a-slapd ocf:heartbeat:slapd \
>       params config="/srv/ldap/a/data/slapd.d" \
>               pidfile="/var/run/ldap-a/slapd.pid" \
>               services="ldap://ldap-a.example.com/"; \
>               user="ldap" group="ldap" \
>       op monitor interval="60s" timeout="20s" \
>       op start interval="0" timeout="20s" \
>       op stop interval="0" timeout="20s"
> 
> primitive ldap-a-snmpd ocf:heartbeat:anything \
>       params binfile="/usr/local/sbin/mini_snmpd" \
>               cmdline_options="-c secret -I 10.1.2.3 \
>                -d /srv/ldap/a/data,/srv/ldap/a/log" \
>               logfile="/var/log/ldap-a/snmpd.log" \
>               errlogfile="/var/log/ldap-a/snmpd.err"
> 
> group ldap-a ldap-a-lvm ldap-a-fs-data ldap-a-fs-log ldap-a-ip \
>       ldap-a-slapd ldap-a-snmpd
> 
> ms ldap-a-ms-drbd ldap-a-drbd \
>       meta master-max="1" master-node-max="1" \
>               clone-max="2" clone-node-max="1" notify="true"
> 
> colocation ldap-a-on-drbd inf: ldap-a ldap-a-ms-drbd:Master
> 
> order ldap-a-after-drbd inf: ldap-a-ms-drbd:promote ldap-a:start
> 
> -- 
> John Keith Hohm
> <[email protected]>
> _______________________________________________________
> Linux-HA-Dev: [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to