[OpenAFS] drbd or nbd with openafs?

Brent A Nelson brent@phys.ufl.edu
Mon, 23 Jun 2003 15:55:27 -0400 (EDT)


I don't have anything written up for it, and it hasn't really been tested 
with active users, but I do believe I have a working OpenAFS server setup 
with drbd (enbd would work fine, too).

There were a few tricks involved in setting it up.

1) I made sure that only my failover IP was being registered with the
volume database using the NetInfo file (just put in the failover IP
address in /usr/afs/local/NetInfo).

2) The big trick was forcing my takeover node to use the the failover IP
address (which is an IP alias) as the source address on outgoing packets
from that interface.  See the attached heartbeat script (goes in
/etc/ha.d/resource.d).  The method I used is probably Linux-specific...

3) Finally, I had to make sure the machines were using the same ID (I used
a hexeditor on the /usr/afs/local/sysid file, but maybe someone else has a
better method).

Both machines are database servers, with only the active file server 
running "fs" at any given time.  They both have "fs" defined but not set 
to run automatically and bos is set to never restart the services 
(otherwise it would do the wrong thing).

I think that was it, but I may have missed something.  I might be able to 
help if you get stuck.

Thanks,

Brent Nelson
Director of Computing
Dept. of Physics
University of Florida