[OpenAFS] OpenAFS install on Solaris 10

Douglas E. Engert deengert@anl.gov
Thu, 30 Apr 2009 15:31:26 -0500


Mukarram Syed wrote:
> Hi folks,
>=20
> I am trying to implement OpenAFS on Solaris 10 at our dept at Stanford.=
 =20
> Officially OpenAFS is not supported at Stanford, but our apps team=20
> requires it and I chose to put it on Solaris 10, which I have never don=
e=20
> before.
>=20
> I have configured the /usr/vice/etc directory with the following=85
>=20
> =20
>=20
> /usr/vice/etc # ls -arlt
>=20
> total 1516
>=20
> -rw-r--r--   1 root     root          29 Aug 31  1992 ThisCell
>=20
> -rw-r--r--   1 root     root          40 Apr 24  2003 CellAlias
>=20
> -rw-r--r--   1 root     root        4417 Apr 28  2003 afs.rc
>=20
> -rwxr-xr-x   1 root     root      752252 Jul 25  2003 afsd
>=20
> -rw-r--r--   1 root     root         344 Aug 20  2003 Instructions
>=20
> drwx--x--x   2 134      250          512 Apr  2 14:37 modload
>=20
> drwxr-xr-x   2 root     root         512 Apr 29 20:41 C
>=20
> -rw-r--r--   1 root     root          28 Apr 29 20:53 cacheinfo
>=20
> drwxr-xr-x   4 root     root         512 Apr 29 20:54 ..
>=20
> -rw-------   1 root     root           0 Apr 29 20:54 AFSLog
>=20
> drwxr-xr-x   4 root     root         512 Apr 29 20:54 .
>=20
> -rw-r--r--   1 root     root         208 Apr 29 21:59 CellServDB
>=20
> =20

What version of OpenAFS are you trying to run? afsd is from 2003?
You should try 1.4.10.

With older versions of AFS the cache had to be ufs too.


>=20
> Added  =93afs       65=94 to /etc/name_to_sysnum.
>=20
> =20
>=20
> The ThisCell, CellAlias, CellServDB are specific to Stanford University=
.
>=20
> Copied the modload files over to :
>=20
> =20
>=20
> cp -p modload/libafs64.nonfs.o /kernel/fs/sparcv9/afs
>=20
> chown root:sys /kernel/fs/sparcv9/afs
>=20
> chmod 755 /kernel/fs/sparcv9/afs
>=20
> =20
>=20
> Created the following directories and cache file:
>=20
> =20
>=20
> mkdir /usr/vice/cache
>=20
> mkdir /afs
>=20
> =20
>=20
> echo "/afs:/usr/vice/cache:300000" > /usr/vice/etc/cacheinfo
>=20
> =20
>=20
> Now when I start AFS, I get this hang:
>=20
> =20
>=20
> # /etc/init.d/afs start
>=20
> Entry for afs already exists in /etc/name_to_sysnum
>=20
> Loading NFS server kernel extensions
>=20
> Loading AFS kernel extensions
>=20
> Starting afsd
>=20
> =20
>=20
> When I ps =96ef |grep afs I get this.. and these processes never go awa=
y=20
> and I can=92t control+C out of it.
>=20
> =20
>=20
>     root   678     1   0 22:09:55 ?           0:00 /usr/vice/etc/afsd=20
> -stat 2000 -dcache 800 -daemons 3 -volumes 70 -afsdb
>=20
>     root   744     1   0 22:13:44 ?           0:00 /usr/vice/etc/afsd=20
> -stat 2000 -dcache 800 -daemons 3 -volumes 70 -afsdb
>=20
>     root  3732  3726   0 12:28:55 pts/4       0:00 /usr/vice/etc/afsd=20
> -stat 2000 -dcache 800 -daemons 3 -volumes 70 -afsdb
>=20
>     root   682   678   0 22:09:55 ?           0:00 /usr/vice/etc/afsd=20
> -stat 2000 -dcache 800 -daemons 3 -volumes 70 -afsdb
>=20
>     root   681   678   0 22:09:55 ?           0:00 /usr/vice/etc/afsd=20
> -stat 2000 -dcache 800 -daemons 3 -volumes 70 -afsdb
>=20
>     root  3726  3709   0 12:28:55 pts/4       0:00 /bin/sh=20
> /etc/init.d/afs start
>=20
>     root   680   678   0 22:09:55 ?           0:00 /usr/vice/etc/afsd=20
> -stat 2000 -dcache 800 -daemons 3 -volumes 70 -afsdb
>=20
>     root   747   744   0 22:13:44 ?           0:00 /usr/vice/etc/afsd=20
> -stat 2000 -dcache 800 -daemons 3 -volumes 70 -afsdb
>=20
>     root   748   744   0 22:13:44 ?           0:00 /usr/vice/etc/afsd=20
> -stat 2000 -dcache 800 -daemons 3 -volumes 70 -afsdb
>=20
>     root  3736  3732   0 12:28:55 pts/4       0:00 /usr/vice/etc/afsd=20
> -stat 2000 -dcache 800 -daemons 3 -volumes 70 -afsdb
>=20
>     root  3735  3732   0 12:28:55 pts/4       0:00 /usr/vice/etc/afsd=20
> -stat 2000 -dcache 800 -daemons 3 -volumes 70 -afsdb
>=20
> =20

Looks like AFS had started around 22:00, and you tried to start it again
around 12:28?

You may have to reboot.

>=20
> Any suggestions might help.
>=20
> =20
>=20
> Thanks
>=20
> =20
>=20
> # mukarram.
>=20
> =20
>=20
> *Mukarram Syed***
>=20
> Unix Systems Administrator,
>=20
> Administrative Services, Stanford University
>=20
> 3145 Porter Drive,
>=20
> #215, Bear Creek Building
>=20
> Palo Alto, CA 94305
>=20
> Phone: 650-736-7647
>=20
> Cell: 408-480-8841
>=20
> Email: muksyed@stanford.edu <mailto:muksyed@stanford.edu>
>=20
> =20
>=20

--=20

  Douglas E. Engert  <DEEngert@anl.gov>
  Argonne National Laboratory
  9700 South Cass Avenue
  Argonne, Illinois  60439
  (630) 252-5444