[OpenAFS] Directory layout for new cells

Sam Hartman hartmans@mit.edu
15 Nov 2000 17:25:00 -0500


>>>>> "Derek" == Derek Atkins <warlord@MIT.EDU> writes:

    Derek> When you install your server package, how does it know
    Derek> whether it's installing a database server or fileserver?
    Derek> And how does it know whether it needs to generate a new
    Derek> cell?  This seems like somewhere that might be very
    Derek> challenging to do in a general way.

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.

    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.