It works now fine. I do not use drbd anymore but drbddisk.

So this is my configuration:

resources:
* service
* ip
* drbddisk
* filesystem

(drbd is launched by the OS. This is better since I change halt -f to
killall heartbeat in drbd.conf)


constraints:
* prefer host 1 for ip
* ip before service
* fs befere service
* drbddisk before fs
* ip on same host as service
* service on same host as fs
* fs on same host as drbddisk


.. now... it works :-)

so easy when you get the triks :-)


thanks, 

best regards,

Arnaud Ligot.


On Sun, 2007-10-21 at 23:31 +0200, Arnaud Ligot wrote:
> Hello,
> 
> I have just joined the mailing list. I have some problems with
> heartbeat. Like the problem described into this thread:
> http://marc.info/?l=linux-ha&m=119186344011877&w=2
> ([Linux-HA] Couldn't mount filesystem /dev/drbd0 on /shared)
> 
> Like on this thread, I'm using drbd8 and heartbeat V2. I'm using debian
> etch, drbd comes from backports-etch and heartbeat from opensuse.
> 
> I managed to make heartbeat works (with a simple ip address, an apache
> server,....). I also managed to make drbd works. I can mount, unmount,
> change primary, remount,... But I cannot manage drbd from heartbeat.
> I follow a lot of documentation and like Alejandro Rios both node start
> drbd successfully but none of them get primary status. I tried to add
> the constraints defined in howtoV2 with a rsc_order constraint with
> action="start" and to_action="promote" with no effect. It has the same
> result wether I add this constraints or not. 
> Due to the fact that none of the two node get primary status, none of
> them could mount /dev/drbd0. 
> 
> now, If I start drbd using heartbeat and then typed into a console the
> command which promote the current node to primary status, I can mount
> the filesystem through heartbeat... and it works. So it lacks only one
> command line for making things working.
> 
> Could you help me by pointing me some documentation or by sending
> cib.xml which describe a working cluster.
> 
> Best regards,
> 
> Arnaud Ligot.
> 
> PS: I just started with heartbeat/drbd so if my question seems to be too
> stupid please point me to a complete documentation.
> 
> _______________________________________________
> 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

Reply via email to