[OpenAFS] Directory layout for new cells

Derek Atkins warlord@MIT.EDU
15 Nov 2000 17:37:52 -0500


Sam Hartman <hartmans@MIT.EDU> writes:

> If they don't install openafs-dbserver they are probably not setting
> up a dbserver.  I don't think I'll do the server setup just from
> package install, but if I do, I'll ask the user using debconf.

Ahh, ok.  It was unclear whether you meant to do this at package
install time or 'later'.  It would be nice if we could come up with a
set of scripts such that you could hook in debconf later, but they
scripts themselves didn't depend on it :)

Also, I didn't even think about splitting out db-server from
file-server packages.  That might be a good idea, I'll have to think
about it.

>     Derek> I can certainly see creating a bunch of scripts that: 1)
>     Derek> configure a new new on this new primary db/fileserver 2)
>     Derek> configure a new db server and add it to the cell 3)
>     Derek> configure a new fileserver and add it to the cell
> 
> I'm looking at writing
> afs-newcell - set up primary db server and set up initial prdb
> (using ptutil or something not involving noauth)
> 
> afs-addserver  - add a file or db server and
> sync the equivelent of /usr/afs/etc (/etc/openafs/server in my case)
> among them
> 
> afs-rootvol - create root.cell and populate root.afs
> 
> I am not quite sure where to integrate root.afs creation, as you want
> to do that before starting an AFS client on the server.  Annoyingly
> you cannot get tokens before loading the kernel module.  I don't want
> to depend on a particular aklog/klog/whatever.  I may add root.afs
> creation to afs-newcell, asserting that at least initially the primary
> db server is also a fileserver.

I would think that afs-rootvol and afs-newcell would be one function,
as I can't see why you could do one without the other.  Are you
particularly going to depend on Kerberos, or are you going to support
KAServer?

I honestly don't think that creating simple interactive scripts would
be very challenging.  Doing something that could be integrated into
e.g. debconf might be more challenging (and isn't something that I
personally would be interested in ;)

To answer your original question, I like a minimal layout of:

/afs/cellname/{service,system/@sys,user}/

Obviously some sites are going to want different setups.  I don't
think there is even a BCP.

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord@MIT.EDU                        PGP key available