[Pacemaker] how to setup grouped cloned resources
Robbert Muller
spam.me at grols.ch
Tue Jul 28 08:23:57 UTC 2009
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
More information about the Pacemaker
mailing list