[Pacemaker] Clone config question

Mark Schenk M.M.A.Schenk at tudelft.nl
Tue May 19 04:24:54 EDT 2009


Hi,

  I am trying to run cloned resources on part of my cluster, however I 
must be mistaken on how to use the location-directive. This is the 
relevant part of my config:

node $id="8ce10d28-174c-4fc3-bac4-b2bf21ef6a38" apa1
node $id="09c41339-21db-4250-83b9-bac11a6c25de" apa2
node $id="ea3da999-829d-4042-a5d5-9ee0ad27f989" mysql1
node $id="23f84b10-ad8c-43a9-ab23-344d06254948" mysql2
node $id="47c29bf2-ac4a-4873-9b91-f05b8e41af2d" nfs1
node $id="e588fc86-92d8-4658-a394-3e031171bcd0" nfs2
primitive apachefs ocf:heartbeat:Filesystem \
        params device="192.168.202.47:/data/export" directory="/data" 
fstype="nfs"
primitive apacheserver ocf:heartbeat:Dummy
group apacheservice apachefs apacheserver
clone apache apacheservice \
        meta clone-max="2"
location apaapa1 apache 100: apa1
location apaapa2 apache 100: apa2
property $id="cib-bootstrap-options" \
        dc-version="1.0.3-b133b3f19797c00f9189f4b66b513963f9d25db9" \
        symmetric-cluster="false" \
        last-lrm-refresh="1242719884"


What I thought this would do was: start (cloned) resources apachefs and 
apacheserver only on nodes apa1 and apa2 (since symmetric-cluster=false 
and having the two location directives). What I can see happening is 
that the apachefs resource is tried on other nodes as well, most 
importantly also on nfs1 and nfs2, which causes these to crash :-(.  
Could someone point out how I can get this working the way I want?

Thanks,
  Mark

-- 
_____________________________________________________________________
Mark Schenk
Project Manager
Shared Service Centre ICT - 3xO
Technische Universiteit Delft
M.M.A.Schenk at tudelft.nl
Room 3B-41
Postbus 354
2600 AJ Delft
Landbergstraat 15
2628 CE DELFT             ___________________________________________
+31 (0)15 27 85448        | Reality is that which, when you
www.tudelft.nl            | stop believing in it, doesn't go away.
_____________________________________________________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clusterlabs.org/pipermail/pacemaker/attachments/20090519/9a5484b4/attachment.html>


More information about the Pacemaker mailing list