Skip to content

Commit

Permalink
Pacemaker configuration was improved so that all the resources stay i…
Browse files Browse the repository at this point in the history
…n the same node together
  • Loading branch information
adriangibanelbtactic committed Sep 22, 2013
1 parent ec34738 commit 697ee6f
Showing 1 changed file with 30 additions and 9 deletions.
39 changes: 30 additions & 9 deletions pacemaker-setup.tex
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,7 @@
op start interval="0" timeout="360s" \
op stop interval="0" timeout="360s"
# Prefered location: primary node
location prefer-primary-node \
ZimbraServer 50: primary
# Define DRBD ZimbraData
primitive ZimbraData ocf:linbit:drbd params \
drbd_resource=zimbradata op monitor \
Expand All @@ -169,17 +168,39 @@
op stop interval="0" timeout="60s"
group MyZimbra ZimbraFS ZimbraServer
# Everything in the same host
colocation everything-together \
inf: MyZimbra \
ZimbraDataClone:Master ClusterIP
colocation ClusterIP-with-ZimbraDataClone-Master \
inf: ZimbraDataClone:Master ClusterIP
colocation ZimbraDataClone-Master-with-ZimbraFS \
inf: ZimbraFS ZimbraDataClone:Master
colocation ZimbraFS-with-ZimbraServer \
inf: ZimbraServer ZimbraFS
# Everything ordered
order everything-ordered \
order ZimbraDataClone-promote-on-ClusterIP \
inf: \
ClusterIP \
ZimbraDataClone:promote MyZimbra
ClusterIP:start \
ZimbraDataClone:promote
order ZimbraFS-on-ZimbraDataClone-promote \
inf: \
ZimbraDataClone:promote ZimbraFS:start
order ZimbraServer-on-ZimbraFS \
inf: \
ZimbraFS:start ZimbraServer:start
# Prefer primary location
location ClusterIP-prefer-primary-node \
ClusterIP 50: primary
location ZimbraFS-prefer-primary-node \
ZimbraFS 50: primary
location ZimbraServer-prefer-primary-node \
ZimbraServer 50: primary
commit
\end{verbatim}

Expand Down

0 comments on commit 697ee6f

Please sign in to comment.