Hello,
trying pacemaker 1.0.8-5.el5 from clusterlabs rpm repo on a rh el 5.5
cluster and following cluster from scratch doc.

After configuring a web resource I have this with a location contraint
automatically (?) set up:
[r...@ha1 conf]# crm configure show
node ha1
node ha2
primitive ClusterIP ocf:heartbeat:IPaddr2 \
params ip="192.168.101.53" cidr_netmask="32" \
op monitor interval="30s"
primitive SitoWeb ocf:heartbeat:apache \
params configfile="/etc/httpd/conf/httpd.conf" \
op monitor interval="1min" \
op start interval="0" timeout="40" \
op stop interval="0" timeout="60"
location cli-prefer-SitoWeb SitoWeb \
rule $id="cli-prefer-rule-SitoWeb" inf: #uname eq ha1
colocation website-with-ip inf: SitoWeb ClusterIP
order apache-after-ip inf: ClusterIP SitoWeb
property $id="cib-bootstrap-options" \
dc-version="1.0.8-9881a7350d6182bae9e8e557cf20a3cc5dac3ee7" \
cluster-infrastructure="openais" \
expected-quorum-votes="2" \
stonith-enabled="false" \
no-quorum-policy="ignore"
rsc_defaults $id="rsc-options" \
resource-stickiness="100"

It seems from ny outputs that the location constraint:

location cli-prefer-SitoWeb SitoWeb \
rule $id="cli-prefer-rule-SitoWeb" inf: #uname eq ha1

came up after the command:
crm configure order apache-after-ip mandatory: ClusterIP SitoWeb

Now I run this:
crm configure location prefer-ha1 SitoWeb 50: ha1

(BTW: there is a typo in the manual, if not already reported, at page 44
crm configure location prefer-pcmk-1 WebSite rule 50: pcmk-1
there is the incorrect "rule" word
The code section is right instead...)

and I have both the 2 location directives joined (in the sense of logical
and or logical or?):
location cli-prefer-SitoWeb SitoWeb \
rule $id="cli-prefer-rule-SitoWeb" inf: #uname eq ha1
location prefer-ha1 SitoWeb 50: ha1

what is the firs one saying? Can I safely remove it with a comamnd such

crm configure delete cli-prefer-SitoWeb
?
Thanks,
Gianluca
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to