Hello,

Most of you are probably back from holidays, so now may be good
time to give you some food for thought.

Some, though probably not many, have already tried the crm shell
and configuration utility. And some complained about unwieldy and
long commands. Specifying primitives and location constraints is
indeed somewhat clumsy. Here's proposal to at least partly
alleviate the pain. Many thanks to Dominik Klein for useful
suggestions and for driving the discussion privately.

Of course, there is room for more improvements. Please don't keep
your ideas to yourself.

1. Detach monitor operations from primitives

old (one statement):
        primitive drbd0 drbd params drbd_resource=drbd0 \
         op monitor role=Master interval=59s timeout=30s \
         op monitor role=Slave interval=60s timeout=30s
new (three statements):
        primitive drbd0 drbd params drbd_resource=drbd0
        monitor drbd0:Master 59s:30s
        monitor drbd0:Slave 60s:30s

2. Shorter specification of boolean variables

old:
        ms ms-drbd0 drbd0 \
         meta clone-max=2 notify=true globally-unique=false target-role=stopped 
new:
        ms ms-drbd0 drbd0 \
         meta clone-max=2 notify not globally-unique stopped 

3. New "prefer" statement/clause for location preference

old:
        location ms-drbd0-master-on-xen-1 ms-drbd0 rule role=master 100: #uname 
eq xen-1
new:
        prefer ms-drbd0:Master xen-1   # score 100 is implied

new1 (two statements):
        group g1 global-ip web-server
        prefer g1 node1
new2 (one statement):
        group g1 global-ip web-server prefer node1

4. Shorter specification of colocation constraints

old:
        colocation apache-group-on-ms-drbd0 inf: apache-group ms-drbd0:Master
        colocation apache-not-with-slave -inf: apache-group ms-drbd0:Slave
new:
        colocate apache-group ms-drbd0:Master   # inf is implied
        separate apache-group ms-drbd0:Slave    # -inf is implied

Cheers,

Dejan
_______________________________________________
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