On Tue, Sep 14, 2010 at 04:41:11PM -0400, Peter Larsen wrote: > Ok, I ventured into the linux-ha from using OCFS and a few other > commercial solutions a few years ago. I realized it's been a few years > since I last played with clustered file systems so I started from > scratch with "Clusters from Scratch". > > My platform is two VMs running Fedora 13. While the guide is written for > F12 most of the stuff mentioned didn't change, except drbd is included > with F13. In general, the guide is very informative, but there are quite > a few misleading/errors in there - in particular in the DRBD and gfs2 > sections. > > I have a shared disk setup between my two VMs. Since my history is > databases that's how most of my clusters have worked: shared disks > between multiple active nodes. The guide basically uses gfs2 on top of > drbd which confuses me (why would you EVER want to do that?). And while > it briefly mentions a shared disk setup, it doesn't say HOW. > > I've had a few pointers (thank you very much) on #linux-ha. But I'm > stuck in how to get cl2 (the second node) to mount and serve the gfs2 > shared partition (/dev/vdb1 in my example). Right now, things mount and > looks right on cl1 (the first node). But I don't see the mount point > mounted on cl2. > > Since my ultimate goal here is learning, I was wondering if anyone knew > of a guide that would talk to the active/active setup of GFS2?
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. 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) On Page 69, first line, The WebFS will be cloned! (That's the step you are desperately missing) And WebSite will be cloned (you may want to clone something else instead, if you are not doing apache) So basically all you are missing for the GFS2 to be mounted on all nodes is configure clone WebFSClone WebFS hth, > Here's my current configuration. It's basic/primitive I know. Any ideas > on how I can get the last few things up and working? > > crm(live)# configure show > node cl1 \ > attributes standby="off" > node cl2 > primitive ClusterIP ocf:heartbeat:IPaddr2 \ > params ip="192.168.199.210" cidr_netmask="32" \ > 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" > clone dlm-clone dlm \ > meta interleave="true" > clone gfs-clone gfs-control \ > meta interleave="true" > colocation WebSite-with-WebFS inf: WebSite WebFS > colocation gfs-with-dlm inf: gfs-clone dlm-clone > colocation website-with-ip inf: WebSite ClusterIP > order WebSite-after-WebFS inf: WebFS WebSite > order apache-after-ip inf: ClusterIP WebSite > 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="2" \ > stonith-enabled="false" \ > no_quorum-policy="ignore" \ > no-quorum-policy="ignore" \ > last-lrm-refresh="1284509691" -- : Lars Ellenberg : LINBIT | Your Way to High Availability : DRBD/HA support and consulting http://www.linbit.com DRBD® and LINBIT® are registered trademarks of LINBIT, Austria. _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
