[DRBD-user] Refusing to be primary (outdated)

Luis F. V. Gomes lf at ele.puc-rio.br
Wed Sep 26 00:21:25 CEST 2007

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


At 17:12 2007-09-25, mlist wrote:

>Luis F. V. Gomes wrote:
>>Hi all
>>
>>I think this may have happened to one of yours but I could not find 
>>any hints to solve this problem automatically in the archives:
>>Due to a blackout, node 1 shuts down first and becomes outdated 
>>(DRBD 8); node 2 acquires its resources and becomes primary for a 
>>few minutes until it shuts down too.
>>After power comes back, node 2 does not boot due to a hardware 
>>transient problem (the disk is intact). Node 1 boots but refuses to 
>>be primary because it is outdated and my clustered services (http 
>>and email servers) are a joke.
>>
>>Is there any configuration workaround for this situation?
>>
>>I just want the SMTP and POP services to wake up in node 1 
>>(probably using an alternative temporary spool directory) and later 
>>manually resynchronize the data (maildir and queues) after fixing note 2.
>>
>>RedHat EL 5
>>Heartbeat 2.0.8.3
>>drbd.x86_64 8.0.3-1.el5.centos
>>dovecot.x86_64 1.0-1.2.rc15.el5
>>exim.x86_64 4.63-3.el5
>>
>>
>>Thanks
>>Luís
>
>Are you getting errors when trying to start exim/dovecot 
>manually?  If so, are the configuration files on the drbd device 
>(because of HA requirements)?  And if so, create the configuration 
>files elsewhere and make sure exim/dovecot are looking for those 
>configuration files in that location.
>
>Hope that's what you're looking for.
>
>Matt


Matt
Yes, the configuration files are on the drbd device and I know I must 
place different configuration files somewhere else for this 
situation. The problem (I think) is because since heartbeat cannot 
mount the outdated partition, the commands in the 
/etc/ha.d/haresources are not executed. This means the network 
interface will not get the "fake" cluster IP address. Also I don't 
want to start exim/dovecot manually. I want them to start in a 
different configuration to preserve the drbd partition until the 
other node (not outdated) goes up.
Maybe it's a Heartbeat issue, not a DRBD issue...





More information about the drbd-user mailing list