[OpenAFS] Heartbeat + DRBD + OpenAFS, any suggestions?

Kyle Moffett kmoffett@tjhsst.edu
Sat, 19 Mar 2005 23:22:44 -0500


We're currently deploying a highly-available pair of servers for users 
in one
of our labs.  The servers use Heartbeat to automatically fail services 
over from
one server to the other when one dies.  All of the Kerberos and 
OpenLDAP services
are properly configured and working to automatically promote one server 
from a
read-only slave to a read-write master if the other goes down.  We also 
have a
working tested system to hard-reboot the other box when it crashes or 
goes down
improperly, so it does not make changes while "down".  We have two DRBD 
volumes
(RAID 1 between 2 computers) configured between the two computers.  By 
default
one volume is mounted on the first server "king" on /vicepa, and volume 
2 is
mounted on "emperor" on /vicepb.  If either server goes down, the 
volume will
be automatically mounted on the other server.  I believe OpenAFS can 
handle
adding and removing the volumes from each server dynamically like that, 
even in
the event of a server crash, but I am unsure if I need to prod the 
voldb to get
it to acknowledge the movement from one server to the other.  The 
volumes will
_never_ be mounted on both servers at once, drbd and heartbeat make 
sure of that.

So, what should I have heartbeat run when it remounts a volume from one 
server
to the other?  Also, I can tell when a server goes down hard or softly. 
  Should
I mark the volumes dirty somehow, or does OpenAFS do that for me?

Cheers,
Kyle Moffett

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCM/CS/IT/U d- s++: a18 C++++>$ UB/L/X/*++++(+)>$ P+++(++++)>$
L++++(+++) E W++(+) N+++(++) o? K? w--- O? M++ V? PS+() PE+(-) Y+
PGP+++ t+(+++) 5 X R? tv-(--) b++++(++) DI+ D+ G e->++++$ h!*()>++$ r  
!y?(-)
------END GEEK CODE BLOCK------