On Wed, 2010-09-15 at 00:09 +0200, Lars Ellenberg wrote:
> 
> Use that clusters-from-scratch guide you talked about earlier,
> I'm referring to
> http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> 
> Skip the drbd stuff.

I did - except it's the part that holds the max_nodes configuration. I
was looking for where to put that. And I think I managed to solve it.

> But don't skip the cloning of relevant primitives ;-)
> 
> Fast forward to "Reconfigure Pacemaker for Active/Active",
> 
> There ClusterIP will be cloned,
> (you won't need that for GFS2, but may need that for apache without
> explicit loadbalancer)

Understood. Apache is to me just a primitive tool to prove a point. My
ultimate goal is session based systems like databases such as mysql and
maybe even a session based web-application over multiple nodes.

> On Page 69, first line,
> 
>         The WebFS will be cloned!
>         (That's the step you are desperately missing)

I also had to add a ms (whcih created the clone) to set "master-max". 
Ending up with the following - and seemingly working - configuration:

# crm configure show
node cl1 \
        attributes standby="off"
node cl2
node cl3
primitive ClusterIP ocf:heartbeat:IPaddr2 \
        params ip="192.168.199.210" cidr_netmask="32"
clusterip_hash="sourceip" \
        op monitor interval="30s"
primitive WebFS ocf:heartbeat:Filesystem \
        params device="/dev/vdb1" directory="/var/www/html"
fstype="gfs2"
primitive WebSite ocf:heartbeat:apache \
        params configfile="/etc/httpd/conf/httpd.conf" \
        op monitor interval="60s"
primitive dlm ocf:pacemaker:controld \
        op monitor interval="120s"
primitive gfs-control ocf:pacemaker:controld \
        params daemon="gfs_controld.pcmk" args="-g 0" \
        op monitor interval="120s"
ms WebFSClone WebFS \
        meta master-max="2"
clone WebIP ClusterIP \
        meta globally-unique="true" clone-max="3" clone-node-max="3"
clone WebSiteClone WebSite
clone dlm-clone dlm \
        meta interleave="true"
clone gfs-clone gfs-control \
        meta interleave="true"
colocation WebSite-with-WebFS inf: WebSiteClone WebFSClone
colocation gfs-with-dlm inf: gfs-clone dlm-clone
colocation website-with-ip inf: WebSiteClone WebIP
order WebSite-after-WebFS inf: WebFSClone WebSiteClone
order apache-after-ip inf: WebIP WebSiteClone
order start-gfs-after-dlm inf: dlm-clone gfs-clone
property $id="cib-bootstrap-options" \
        dc-version="1.1.1-972b9a5f68606f632893fceed658efa085062f55" \
        cluster-infrastructure="openais" \
        expected-quorum-votes="3" \
        stonith-enabled="false" \
        no_quorum-policy="ignore" \
        no-quorum-policy="ignore" \
        last-lrm-refresh="1284524815"

I also added a 3rd node just to see how that was done. That wasn't too
hard.

> And WebSite will be cloned (you may want to clone something else
> instead, if you are not doing apache)

Well, I need master-max specified and the challenge was to find out
where that was done.

> So basically all you are missing for the GFS2 to be mounted on all
> nodes is
>   configure clone WebFSClone WebFS

Well, I had to do a few more things but yes, that was the primary driver
of what I did.

Thanks for feedback!

-- 
Best Regards
  Peter Larsen

Wise words of the day:
Dijkstra probably hates me.
        -- Linus Torvalds, in kernel/sched.c

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to