Thanks a bunch Michael,
I want to share my current config ... which is working just perfectly like I
wanted it to .. with everyone....maybe it helps someone. :)
(note my uuids changed since my last post, and cli-prefer-clustergroup was
created automatically when I created the group)
node $id="3e440e81-fdeb-4cb5-b41d-f91b982ead58" ewadata1 \
attributes standby="off"
node $id="c5a24794-65a1-4b8a-9b1c-7d56a43accce" ewadata2
primitive IP ocf:heartbeat:IPaddr \
params ip="10.65.68.245"
primitive drbd0 ocf:heartbeat:drbd \
params drbd_resource="r0" \
op monitor interval="9s" role="Master" timeout="20s" \
op monitor interval="10s" role="Slave" timeout="20s"
primitive fs-drbd0 ocf:heartbeat:Filesystem \
params fstype="ext4" directory="/data" device="/dev/drbd0"
group clustergroup fs-drbd0 IP
ms ms-drbd0 drbd0 \
meta clone-max="2" notify="true" globally-unique="false"
location cli-prefer-clustergroup clustergroup \
rule $id="cli-prefer-rule-clustergroup" inf: #uname eq ewadata1
colocation fs_with_drbd inf: clustergroup:Started ms-drbd0:Master
order ms-drbd0_before_fs-drbd0 inf: ms-drbd0:promote clustergroup:start
property $id="cib-bootstrap-options" \
dc-version="1.0.5-3840e6b5a305ccb803d29b468556739e75532d56" \
cluster-infrastructure="Heartbeat" \
stonith-enabled="false" \
no-quorum-policy="ignore" \
last-lrm-refresh="1267129800"
When I put ewadata1 to standby mode everything jumps to ewadata2 and when I
turn ewadata1 back on everything stays on ewadata2....when I migrate my
group resource back to ewadata1 everything switches just fine.
One last question is there a way to make that switch back to ewadata1
automatic? (even though it's not really useful).
Michael is there a new relase of your O'reilly Book coming?
On Thu, Feb 25, 2010 at 12:01 PM, Michael Schwartzkopff
<[email protected]>wrote:
> Am Donnerstag, 25. Februar 2010 11:54:57 schrieb Frank Lazzarini:
> > Hi there, I have a config setup in Ubuntu 9.10 with Pacemaker 1.0.5 here
> > it is
> >
> > node $id="76df8738-d836-4a95-afe3-732bc5cc7b66" ewadata2 \
> > attributes standby="off"
> > node $id="fd56770d-eef2-47e5-97aa-813ae1e71d7f" ewadata1 \
> > attributes standby="off"
> >
> > primitive IP ocf:heartbeat:IPaddr \
> > params ip="10.65.68.245" \
> > meta is-managed="true" target-role="Started"
> > primitive drbd_r0 ocf:heartbeat:drbd \
> > params drbd_resource="r0" \
> > op monitor interval="9s" role="Master" timeout="20s" \
> > op monitor interval="10s" role="Slave" timeout="20s"
> > primitive fs-drbd_r0 ocf:heartbeat:Filesystem \
> > params fstype="ext4" directory="/data" device="/dev/drbd0" \
> > op monitor interval="5s"
> >
> > ms ms-drbd_r0 drbd_r0 \
> > meta clone-max="2" notify="true" globally-unique="false"
> >
> > location fs-drbd fs-drbd_r0 \
> > rule $id="fs-drbd-rule" inf: #uname eq ewadata1
> > location l_prefer_IP IP \
> > rule $id="l_prefer_IP-rule" inf: #uname eq ewadata1
> > location ms-drbd-master ms-drbd_r0 \
> > rule $id="ms-drbd-master-rule" $role="master" inf: #uname eq
> ewadata1
>
> Do you have any special reason why do you want to have the service run on
> that
> machine? Are both machines not identically? I'd throw these rules out.
>
> > order IP_before_ms-drbd inf: IP ms-drbd_r0:start
> > order ms-drbd_before_fs-drbd inf: ms-drbd_r0:promote fs-drbd:start
>
> order ms-drbd_before_fs inf: ms-drbd_r0:promote fs-drbd:start
>
> Also make a colocation
> colocation fs_with_drbd inf: fs-drbd: Started ms-drbd-r0:Master
>
> Make a group out of the fs-drbd and the IP.
>
> Greetings,
> --
> Dr. Michael Schwartzkopff
> MultiNET Services GmbH
> Addresse: Bretonischer Ring 7; 85630 Grasbrunn; Germany
> Tel: +49 - 89 - 45 69 11 0
> Fax: +49 - 89 - 45 69 11 21
> mob: +49 - 174 - 343 28 75
>
> mail: [email protected]
> web: www.multinet.de
>
> Sitz der Gesellschaft: 85630 Grasbrunn
> Registergericht: Amtsgericht München HRB 114375
> Geschäftsführer: Günter Jurgeneit, Hubert Martens
>
> ---
>
> PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B
> Skype: misch42
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems