[ClusterLabs] Antw: ambiguity with ocf:pacemaker:HealthSmart
Ulrich Windl
Ulrich.Windl at rz.uni-regensburg.de
Fri Apr 17 06:12:57 UTC 2015
>>> Peter Thurner <p.thurner at blunix.org> schrieb am 16.04.2015 um 17:18 in
Nachricht <552FD2DA.3050502 at blunix.org>:
> Hi Cluster-Lovers,
>
> 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 https://github.com/ClusterLabs/resource-agents.
>
> I'm trying to create the HealthSMART resource via:
>
> crm configure primitive Health_Smart_sda ocf:pacemaker:HealthSMART \
> meta \
> target-role="Started" \
> params \
> temp_upper_limit="60" temp_lower_limit="30" temp_warning="5"
> drives="/dev/sda" state="/var/run/HealthSMARTsda.state"
>
> crm configure primitive Health_Smart_sdb ocf:pacemaker:HealthSMART \
> meta \
> target-role="Started" \
> params \
> temp_upper_limit="60" temp_lower_limit="30" temp_warning="5"
> drives="/dev/sdb" state="/var/run/HealthSMARTsdb.state"
>
>
> I'm using two resources because using drives="/dev/sda /dev/sdb" gives
> me this error:
>
> /usr/lib/ocf/resource.d/pacemaker/HealthSMART: 173: [: /dev/sda: unexpected
> operator
>
>
> When I try to commit the two primitives I get the following error:
>
> 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"
This sound to me like a "brain-free programmer" (TM) has written the parameter specification. Try to hack the XML part of the RA and remove the unique requirement where it's abolute nonsense (all the cases you saw).
>
>
> My Idea was to create clones of each ressource then, to use for each of
> the two nodes in my cluster, like:
>
> crm configure clone CLO_Health_Smart_sda Health_Smart_sda \
> meta \
> clone-max="2" clone-node-max="1"
>
> crm configure clone Clo_Health_Smart_sdb Health_Smart_sdb \
> meta \
> clone-max="2" clone-node-max="1"
>
>
> Whats the best practice way to monitor /dev/sda and /dev/sdb via
> ocf:pacemaker:HealthSMART?
Other question: Are you sure /dev/sda is consistent after reboot?
>
>
>
> PS: hope I didnt post twice, just subscirbed and saw that I had to
> confirm it before posting.
>
> _______________________________________________
> Users mailing list: Users at clusterlabs.org
> http://clusterlabs.org/mailman/listinfo/users
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
More information about the Users
mailing list