[OpenAFS] @sys questions
Jeffrey Hutzelman
jhutz@cmu.edu
Wed, 05 Apr 2006 21:21:34 -0400
On Wednesday, April 05, 2006 05:14:42 PM -0700 Miles Davis
<miles@CS.Stanford.EDU> wrote:
>
> 1. When using multiple @sys names, is there a way to reference a
> specific sysname in the list? e.g, given
>
> $ fs sysname
> Current sysname list is 'i386_linux26' 'foo'
>
> can I create a link to @sys or something that point to foo without using
> i386_linux26?
No. The entries in the sysname list are always tried in order. The idea
is that you list more-specific names before less-specific ones, and
more-desirable names before less-desirable ones. So you can set the
sysname list to something like
i686_linux26 i586_linux26 i386_linux26 i386_linux24 any_linux common
And get the most-appropriate binary for your system. If your system is not
an i686, leave off the first name, and so on.
> 2. Is there some standard way to set the sysname on startup, without
> running 'fs sysname -newsys', like an argument to afsd or a config file
> somewhere?
No; you have to use 'fs sysname' to set the sysname after afsd has started.
The usual approach is to do this in the same script that loads the kernel
module and starts afsd. On some platforms, the provided startup scripts
have a variable you can set to control what they set the sysname to.
-- Jeffrey T. Hutzelman (N3NHS) <jhutz+@cmu.edu>
Sr. Research Systems Programmer
School of Computer Science - Research Computing Facility
Carnegie Mellon University - Pittsburgh, PA