The Problem with my constraints can be seen quite clear in crm_mon in
this case:
Node: node02 (89cd12ec-240b-472e-acac-514125719494): online
Node: node01 (64a97ed3-da5a-481d-b7d8-fe6cf26544f9): online
Resource Group: nagios
httpd (lsb:httpd): Started node02
nagios-vip (ocf::heartbeat:IPaddr2): Started node02
nagios-core (lsb:nagios): Started node02
mysql (ocf::heartbeat:mysql): Started node02
drbd_fs (ocf::heartbeat:Filesystem): Stopped
Master/Slave Set: ms_drbd
drbd:0 (ocf::heartbeat:drbd): Started node02
drbd:1 (ocf::heartbeat:drbd): Master node01
node01 is set to master for DRBD but the resource group is run on
node02, thus it can not mount the filesystem. Somehow it seems like I
have an auto autofailback. Since I did not set any constraints for
prefered node the cluster still wants to have the resource group run
only on node02 as soon as it is online for some reason.
I'm not quite sure how I can tell him to leave the group where it is
(the score system is quite confusing to me).
If I shutdown node02 now the resource group will come up on node01 but
as soon as node02 goes online again the resource group fails back to
node02 but without the drbd setting node02 to master.
On Mon, 2008-12-08 at 09:37 +0100, Tobias Appel wrote:
> Hi,
>
> I still have trouble setting up DRBD v8. I'm not sure if it is related
> to the OCF bug found by Marc Cousin. I think it has something to do with
> my constraints not working properly.
>
> I have one resource group which should start my services in the
> following order: set IP adress, mount DRBD Filesystem, start webservices
> and so on (the order in my CIB is currently mixed up and I can't seem to
> change it via the GUI but I will work on that later, right now the
> Filesystem does NOT need to be mounted for any of the other services but
> later on it will need to be).
>
> Then I have created my Master / Slave resource for DRBD which I could
> not add to the group. Afaik a M/S resource can not be part of a group.
>
> Now I need a constraint that the resource group runs on the same node
> which is the DRBD master. I tried it with the setup found in Dr.
> Schwartzkopffs book but I could not get it to work.
>
> Maybe it does not work because I'm using the resource to mount the
> filesystem inside the resource group? Do I need to have a single
> resource for the filesystem and then add a 2nd order constraints to
> start the group after the filesystem?
>
> Right now it does not even mount the filesystem anymore - without any
> constraints I at least got it working once (was a 50:50 chance,
> depending which node is currently the master).
>
> I have attached my current CIB.
>
> Thanks in advance for your help,
>
> Tobias
>
>
> _______________________________________________
> 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