[Pacemaker] how to setup grouped cloned resources

Robbert Muller spam.me at grols.ch
Tue Jul 28 10:11:31 UTC 2009


Hello,

And to answer my own question: just clone the group.

The problem was that due some testing there was some pollution in the
state of the cluster, after setting it up an freshly installed cluster
it works perfectly.

regards

Robbert Müller


Robbert Muller wrote:
> Hello,
> 
> I'm tring to setup an clone resource setup
> 
> Want i want:
> 2 active nodes, both running an nfs mount(filesystem resource) and a
> apache(config on the nfs mount, wwwdata also on that nfs mount)
> 
> for 1 server the setup was easy:
> 
> primitive application-fs0 ocf:heartbeat:Filesystem \
> 	params fstype="nfs" directory="/opt/" \
> 	device="nfsmaster:/srv/data/" \
> 	options="hard,intr,noatime,rw,nolock,tcp,timeo=50"
> 
> primitive application-webserver ocf:heartbeat:apache \
> 	params configfile="/etc/apache2/apache2.conf" \
> 	envfiles="/etc/apache2/envvars" \
> 	op monitor interval="30s" timeout="30s" \
> 
> group application-group application-fs0 application-webserver
> 
> location application-group-placement application-group \
> 	rule $id="application-group-placement-rule" inf: \
> 	#uname eq web1 or #uname eq web2
> 
> 
> But now i want to clone this group so it will run on both servers.
> 
> i tried some configurations like cloning the group, and cloning the
> resources, in various configurations but non of them seem to work.
> 
> Could somebody point me in the right direction ?
> 
> regards
> 
> Robbert Müller
> 
> 
> 
> 
> _______________________________________________
> Pacemaker mailing list
> Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker





More information about the Pacemaker mailing list