[DRBD-user] heartbeat+nfs-server

Bernd Broermann bernd at broermann.com
Fri Jun 4 01:18:57 CEST 2004

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


Hallo ,

I want correctly set up a HA-DRBD cluster , which serve data via nfs.

I am using
drbd 0.6.12-1
heartbeat  1.0.4-1.woody.um.1
nfs-kernel-server      1.0-2woody1
on a 2.4.24 kernel based debian woody .

All is working so far.
When I gracefully stop Node1(master) with /etc/init.d/heartbeat stop , 
Node2 ( slave ) is taking over, becomes primary and the nfs share is 
still available.
Even when Node1 comes back, all is  working.

When I poweroff Node1, Node2 is taking over as I want as well.
But when Node1 comes back , heartbeat starts SyncAll from Node2 to Node1 
and stops NFS without waiting for for finishing the sync. Node1 starts 
nfs while secondary.

One have to wait all the SyncAll time until can access the cluster.

In my  /etc/ha.d/haresources there is on both nodes.
node1  192.168.96.65 datadisk::drbd0 nfs-kernel-server

How can I tell heartbeat to wait with shutting down the nfs-server on 
Node2 ( Wait to start the nfs server on Node1 ) ?
Do you have what options to put in the /etc/exports ?


Thank you
bernd



More information about the drbd-user mailing list