[OpenAFS] CellServDB file update...

Derrick J Brashear shadow@dementia.org
Tue, 16 May 2006 09:35:34 -0400 (EDT)


On Tue, 16 May 2006, Rodney M Dyer wrote:

> If "internally" the addhost/removehost commands do nothing more than "edit" 
> the files themselves, like a text editor, then they are "currently" only 
> practice policy.  It sounds to me instead that they actually do more than 
> edit the files, because you actually have locking issues if the file server 
> process is trying to read the CellServDB files at the same time you would 
> manually copy over them.  The addhost/removehost commands probably stop the 
> file server process from reading the files, update them, then allow them to 
> be read again.

Nope. Wrong sort of lock problem. They just edit the files.

>     1.  The file server process actually reads the CellServDB file very 
> often.
>     2.  Never copy over the CellServDB file because of #1.
>     3.  Use "bos addhost/removehost" commands to change the CellServDB 
> files.
>     4.  We should never have to "bos restart" a server to get it to see a 
> new cell server if we use bos addhost...right?

Well, if you have old buggy servers, you will...

Derrick