[OpenAFS] Re: Am I doing anything wrong?

Marcus Watts mdw@umich.edu
Fri, 02 Feb 2007 02:43:06 -0500


"Srikanth Bhaskar" <srikanth.bhaskar@gmail.com> replied:
> 
> On 2/2/07, Srikanth Bhaskar <srikanth.bhaskar@gmail.com> wrote:
> >
> > [root@bri6506-5-fc3-1 bin]# cd /usr/bin/
> > [root@bri6506-5-fc3-1 bin]# ./bos setcellname bri6506-5-fc3-1.ca.com
> > afs1.ca.co
> > m -noauth
> > [root@bri6506-5-fc3-1 bin]# ./bos listhosts bri6506-5-fc3-1.ca.com -noauth
> > Cell name is afs1.ca.com
> >     Host 1 is bri6506-5-fc3-1.ca.com
> > [root@bri6506-5-fc3-1 bin]# ./bos listhosts bri6506-5-fc3-1.ca.com -noauth
> > Cell name is afs1.ca.com
> >     Host 1 is bri6506-5-fc3-1.ca.com
> > [root@bri6506-5-fc3-1 bin]# ./bos create bri6506-5-fc3-1.ca.com kaserver
> > simple
> >  /usr/afs/bin/kaserver -cell afs1.ca.com -noauth
> > bos: could not find entry (can't find cell 'afs1.ca.com' in cell database)
> > [root@bri6506-5-fc3-1 bin]# ps -ef | grep bosserver
> > root      5099     1  0 11:46 ?        00:00:00 /usr/afs/bin/bosserver
> > -noauth
> > root      5111  4910  0 12:00 pts/1    00:00:00 grep bosserver
> > [root@bri6506-5-fc3-1 bin]#
> >

Client side utilities generally look at
	FHS			transarc
	/etc/openafs		/usr/vice/etc
while server side binaries look at:
	/etc/openafs/server	/usr/afs/etc
Since "bos listhosts" worked, you must have the server side
files right.  Since "bos create" failed, you probably have missing
or incomplete client side files.  Since judging by the prompts
you're actually running this on the server, an easy fix is:
ln -s /usr/afs/etc /usr/vice/etc
which will ensure your client & server binaries see the same configuration.

You could also leave off "-cell afs1.ca.com" - if you're using
"-noauth" (or "-localauth") with bos, the cell name is not
necessary and can be allowed to default to whatever.
This is why your "bos listhosts" commands immediately preceeding
work.

				-Marcus Watts