[Pacemaker] Resource options for group.

Kees chkoehoorn at live.nl
Tue Mar 9 10:38:20 EST 2010


Hi,

I'm a bit confused about recource options for a group. Does a resource 
group need options like 'target-role' and 'is-managed?
According to the 'Pacemake_explained' normal (simple) resources have got 
a default 'target-role=started', so i asume i do not have to configure 
those for the resource that make up the group. The same goes for 
'is-managed'.
But how do I tell when my resource group is started complely? Do I have 
to look at the individual resources with crm_mon -1, like this:

test1:~# crm_mon -1
============
Last updated: Tue Mar  9 16:16:27 2010
Stack: openais
Current DC: webserver - partition with quorum
Version: 1.0.7-54d7869bfe3691eb723b1d47810e5585d8246b58
3 Nodes configured, 3 expected votes
3 Resources configured.
============

Online: [ webserver test2 test1 ]

  Master/Slave Set: ms_drbd_websites
      Masters: [ test1 ]
      Slaves: [ test2 ]
  Resource Group: websites
      fs_websites        (ocf::heartbeat:Filesystem):    Started test1
      ip_storage (ocf::heartbeat:IPaddr2):       Started test1
  nfsserver      (ocf::heartbeat:nfsserver):     Started test1

Failed actions:
     drbd_websites:0_monitor_0 (node=webserver, call=36, rc=5, 
status=complete): not installed
     nfsserver_monitor_0 (node=webserver, call=37, rc=5, 
status=complete): not installed

I my config  I've got some target-role's here and there, should i remove 
them?
An other question about the faild actions. I know both resources 
(drbd_websites/nfsserver) are not installed on the webserver, do i have 
to do something with a location contraint to tell the cluster
they are on test1 and test2? I thought I already did that with the 
"location ms_drbd_websites_placement ms_drbd_websites" for the drbd?

node test1 \
         attributes standby="off"
node test2 \
         attributes standby="off"
node webserver \
         attributes standby="off"
primitive drbd_websites ocf:linbit:drbd \
         params drbdconf="/etc/drbd.conf" drbd_resource="r0" \
         op monitor interval="15s" role="Master" timeout="30s" \
         op monitor interval="30s" role="Slave" timeout="30s" \
         meta target-role="Started" is-managed="true"
primitive fs_websites ocf:heartbeat:Filesystem \
         params device="/dev/drbd/by-res/r0" directory="/websites/" 
fstype="ext3" \
         meta target-role="Started"
primitive ip_storage ocf:heartbeat:IPaddr2 \
         params ip="172.16.0.4" nic="eth0:0" \
         meta target-role="Started"
primitive nfsserver ocf:heartbeat:nfsserver \
         params nfs_init_script="/etc/init.d/nfs-kernel-server" 
nfs_notify_cmd="/sbin/sm-notify" nfs_shared_infodir="/websites/nfs" 
nfs_ip="172.16.0.4" \
         meta target-role="Started"
group websites fs_websites nfsserver ip_storage \
         meta target-role="stopped"
ms ms_drbd_websites drbd_websites \
         meta master-max="1" master-node-max="1" clone-max="2" 
clone-node-max="1" notify="true" globally-unique="false" 
target-role="Started"
location cli-prefer-nfsserver nfsserver \
         rule $id="cli-prefer-rule-nfsserver" inf: #uname eq test1
location cli-prefer-websites websites \
         rule $id="cli-prefer-rule-websites" inf: #uname eq test1
location ms_drbd_websites_master_on_test1 ms_drbd_websites \
         rule $id="ms_drbd_websites_master_on_test1-rule" $role="master" 
100: #uname eq test1
location ms_drbd_websites_placement ms_drbd_websites \
         rule $id="ms_drbd_websites_placement-rule" -inf: #uname ne 
test1 and #uname ne test2
colocation websites_on_drbd inf: websites ms_drbd_websites:Master
order websites_after_drbd inf: ms_drbd_websites:promote websites:start
property $id="cib-bootstrap-options" \
         dc-version="1.0.7-54d7869bfe3691eb723b1d47810e5585d8246b58" \
         cluster-infrastructure="openais" \
         symmetric-cluster="true" \
         stonith-enabled="false" \
         no-quorum-policy="ignore" \
         default-action-timeout="70" \
         pe-error-series-max="100" \
         pe-input-series-max="100" \
         pe-warn-series-max="100" \
         last-lrm-refresh="1268136221" \
         expected-quorum-votes="3"







More information about the Pacemaker mailing list