<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi Cluster-Lovers,<br>
<br>
I'm getting into corosync / pacemaker since a few days, currently
running a two-node Setup (Master and Failover). I'm running on
ubuntu 14.04 with corosync 2.3.3, pacemaker 1.1.10 and I'm using the
latest master branch of
<a class="moz-txt-link-freetext" href="https://github.com/ClusterLabs/resource-agents">https://github.com/ClusterLabs/resource-agents</a>.<br>
<br>
I'm trying to create the HealthSMART resource via:<br>
<br>
crm configure primitive Health_Smart_sda ocf:pacemaker:HealthSMART \<br>
meta \<br>
target-role="Started" \<br>
params \<br>
temp_upper_limit="60" temp_lower_limit="30" temp_warning="5"
drives="/dev/sda" state="/var/run/HealthSMARTsda.state"<br>
<br>
crm configure primitive Health_Smart_sdb ocf:pacemaker:HealthSMART \<br>
meta \<br>
target-role="Started" \<br>
params \<br>
temp_upper_limit="60" temp_lower_limit="30" temp_warning="5"
drives="/dev/sdb" state="/var/run/HealthSMARTsdb.state"<br>
<br>
<br>
I'm using two resources because using drives="/dev/sda /dev/sdb"
gives me this error:<br>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<pre style="color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; white-space: pre-wrap;">/usr/lib/ocf/resource.d/pacemaker/HealthSMART: 173: [: /dev/sda: unexpected
operator
</pre>
<br class="Apple-interchange-newline">
When I try to commit the two primitives I get the following error:<br>
<br>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<pre style="color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; white-space: pre-wrap;">WARNING: Resources Health_Smart_sda,Health_Smart_sdb violate uniqueness for
parameter "temp_warning": "5"
WARNING: Resources Health_Smart_sda,Health_Smart_sdb violate uniqueness for
parameter "temp_lower_limit": "30"
WARNING: Resources Health_Smart_sda,Health_Smart_sdb violate uniqueness for
parameter "temp_upper_limit": "60"</pre>
<br>
My Idea was to create clones of each ressource then, to use for each
of the two nodes in my cluster, like:<br>
<br>
crm configure clone CLO_Health_Smart_sda Health_Smart_sda \<br>
meta \<br>
clone-max="2" clone-node-max="1"<br>
<br>
crm configure clone Clo_Health_Smart_sdb Health_Smart_sdb \<br>
meta \<br>
clone-max="2" clone-node-max="1"<br>
<br>
<br>
Whats the best practice way to monitor /dev/sda and /dev/sdb via
ocf:pacemaker:HealthSMART?<br>
</body>
</html>