[OpenAFS] drbd or nbd with openafs?
Brent A Nelson
brent@phys.ufl.edu
Mon, 23 Jun 2003 15:56:36 -0400 (EDT)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
---478146983-1665396602-1056398196=:17434
Content-Type: TEXT/PLAIN; charset=US-ASCII
Dang, forgot the attachment...
On Mon, 23 Jun 2003, Brent A Nelson wrote:
> 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
>
>
---478146983-1665396602-1056398196=:17434
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=fileserver
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.44.0306231556360.17434@bani.phys.ufl.edu>
Content-Description:
Content-Disposition: attachment; filename=fileserver
IyEvYmluL3NoDQojDQojICAgICAgIEhpZ2gtQXZhaWxhYmlsaXR5IFByZS1T
dGFydHVwL1NodXRkb3duIFNjcmlwdA0KIw0KIyBhcGFjaGUgKGFrYSBJQk1o
dHRwZCkNCiMNCiMgRGVzY3JpcHRpb246ICBSdW5zIG9uIFN0YXJ0dXAgb3Ig
c2h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