[OpenAFS] More Quick Start Woes: afsd: Can't mount AFS on /afs(22)

Phillip Moore w.phillip.moore@gmail.com
Wed, 29 Sep 2010 08:29:53 -0400


--0016e64ddeba5b7bfe0491651ec9
Content-Type: text/plain; charset=ISO-8859-1

The Quick Start Guide has clearly atrophied (not just whining -- I *will*
patch it... :-)

Thanks to the help so far, I've gotten as far as rebooting and trying to
mount /afs, but no further.   I discovered the CellServDB.dist and
CellServDB.local files (neat trick) which are not documented in the QSG,
sorted those files out, but still I'm getting:

afsd: Can't mount AFS on /afs(22)

I ran afsd with -verbose, and the output seems to indicate that everything's
fine up to mounting root.afs (see below). As suggested by the QSG, I removed
-dynroot from /etc/sysconfig/openafs, and I have created my root.afs volume,
but that is the ONLY volume I have.

I am starting to get the impression that I need to pre-create some more
volume infrastructure, perhaps.   Do I need anything other than root.afs to
get started?   The QSG doesn't have you create anything other than root.afs
until AFTER you have started the client for the first time.

I believe my client config files are correct:

[root@fhcore ~]# cat /usr/vice/etc/ThisCell
d.fh.nyc.us.boot.efs[root@fhcore ~]#
[root@fhcore ~]# cat /usr/vice/etc/CellServDB
>d.fh.nyc.us.boot.efs #Cell name
192.168.1.121    #fhcore

My root.afs volume, while boring, is online:

[root@fhcore ~]# vos examine root.afs
vsu_ClientInit: Could not get afs tokens, running unauthenticated.
root.afs                          536870912 RW          2 K  On-line
    fhcore.boot.efs /vicepa
    RWrite  536870912 ROnly  536870913 Backup          0
    MaxQuota       5000 K
    Creation    Tue Sep 28 16:33:36 2010
    Copy        Tue Sep 28 16:33:36 2010
    Backup      Never
    Last Update Tue Sep 28 16:33:36 2010
    0 accesses in the past day (i.e., vnode references)

    RWrite: 536870912     ROnly: 536870913
    number of sites -> 2
       server fhcore.boot.efs partition /vicepa RW Site
       server fhcore.boot.efs partition /vicepa RO Site

What am I missing?

---verbose afsd startup---
[root@fhcore etc]# /etc/rc.d/init.d/openafs-client start
Updating CellServDB:
Starting openafs-client: afsd: enabling dynamically allocated vcaches
afsd: My home cell is 'd.fh.nyc.us.boot.efs'
afsd: cacheFiles autotuned to 3125
afsd: dCacheSize autotuned to 2000
afsd: cacheStatEntries autotuned to 3000
SScall(183, 28, 17)=0 afsd: Forking rx listener daemon.
SScall(183, 28, 48)=0 afsd: Forking rx callback listener.
SScall(183, 28, 0)=0 afsd: Forking rxevent daemon.
SScall(183, 28, 19)=0 SScall(183, 28, 36)=0 afsd: Calling AFSOP_CACHEINIT:
3000 stat cache entries, 3125 optimum cache files, 100000 blocks in the
cache, flags = 0x0, dcache entries 2000
SScall(183, 28, 6)=0 afsd: Sweeping workstation's AFS cache directory.
afsd: 3125 out of 3125 data cache files found in sweep 1.
SScall(183, 28, 7)=0 SScall(183, 28, 34)=0 afsd: Enabling fakestat support
in kernel.
SScall(183, 28, 33)=0 SScall(183, 28, 29)=0 SScall(183, 28, 35)=0 afsd:
Forking AFS daemon.
SScall(183, 28, 1)=0 afsd: Forking Check Server Daemon.
SScall(183, 28, 4)=0 afsd: Forking 2 background daemons.
<<2-3 pages of SScall() noise ommited -- assuming the details aren't
useful>>
afsd: Forking trunc-cache daemon.
SScall(183, 28, 3)=0 afsd: Mounting the AFS root on '/afs', flags: 0.
afsd: Can't mount AFS on /afs(22)

--0016e64ddeba5b7bfe0491651ec9
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

The Quick Start Guide has clearly atrophied (not just whining -- I *will* p=
atch it... :-)<div><br></div><div>Thanks to the help so far, I&#39;ve gotte=
n as far as rebooting and trying to mount /afs, but no further. =A0 I disco=
vered the CellServDB.dist and CellServDB.local files (neat trick) which are=
 not documented in the QSG, sorted those files out, but still I&#39;m getti=
ng:</div>
<div><br></div><div><div>afsd: Can&#39;t mount AFS on /afs(22)</div></div><=
div><br></div><div>I ran afsd with -verbose, and the output seems to indica=
te that everything&#39;s fine up to mounting root.afs (see below). As sugge=
sted by the QSG, I removed -dynroot from /etc/sysconfig/openafs, and I have=
 created my root.afs volume, but that is the ONLY volume I have.</div>
<div><br></div><div>I am starting to get the impression that I need to pre-=
create some more volume infrastructure, perhaps. =A0 Do I need anything oth=
er than root.afs to get started? =A0 The QSG doesn&#39;t have you create an=
ything other than root.afs until AFTER you have started the client for the =
first time.</div>
<div><br></div><div>I believe my client config files are correct:</div><div=
><br></div><div><div>[root@fhcore ~]# cat /usr/vice/etc/ThisCell=A0</div><d=
iv>d.fh.nyc.us.boot.efs[root@fhcore ~]#=A0</div><div>[root@fhcore ~]# cat /=
usr/vice/etc/CellServDB</div>
<div>&gt;d.fh.nyc.us.boot.efs<span class=3D"Apple-tab-span" style=3D"white-=
space:pre">	</span>#Cell name</div><div>192.168.1.121 =A0 =A0#fhcore</div><=
/div><div><br></div><div>My root.afs volume, while boring, is online:</div>=
<div>
<br></div><div><div>[root@fhcore ~]# vos examine root.afs</div><div>vsu_Cli=
entInit: Could not get afs tokens, running unauthenticated.</div><div>root.=
afs =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0536870912 RW =A0 =A0=
 =A0 =A0 =A02 K =A0On-line</div><div>
=A0=A0 =A0fhcore.boot.efs /vicepa=A0</div><div>=A0=A0 =A0RWrite =A053687091=
2 ROnly =A0536870913 Backup =A0 =A0 =A0 =A0 =A00=A0</div><div>=A0=A0 =A0Max=
Quota =A0 =A0 =A0 5000 K=A0</div><div>=A0=A0 =A0Creation =A0 =A0Tue Sep 28 =
16:33:36 2010</div><div>=A0=A0 =A0Copy =A0 =A0 =A0 =A0Tue Sep 28 16:33:36 2=
010</div>
<div>=A0=A0 =A0Backup =A0 =A0 =A0Never</div><div>=A0=A0 =A0Last Update Tue =
Sep 28 16:33:36 2010</div><div>=A0=A0 =A00 accesses in the past day (i.e., =
vnode references)</div><div><br></div><div>=A0=A0 =A0RWrite: 536870912 =A0 =
=A0 ROnly: 536870913=A0</div><div>
=A0=A0 =A0number of sites -&gt; 2</div><div>=A0=A0 =A0 =A0 server fhcore.bo=
ot.efs partition /vicepa RW Site=A0</div><div>=A0=A0 =A0 =A0 server fhcore.=
boot.efs partition /vicepa RO Site=A0</div></div><div><br></div><div>What a=
m I missing?</div><div>
<br></div><div>---verbose afsd startup---</div><div><div>[root@fhcore etc]#=
 /etc/rc.d/init.d/openafs-client start</div><div>Updating CellServDB:=A0</d=
iv><div>Starting openafs-client: afsd: enabling dynamically allocated vcach=
es</div>
<div>afsd: My home cell is &#39;d.fh.nyc.us.boot.efs&#39;</div><div>afsd: c=
acheFiles autotuned to 3125</div><div>afsd: dCacheSize autotuned to 2000</d=
iv><div>afsd: cacheStatEntries autotuned to 3000</div><div>SScall(183, 28, =
17)=3D0 afsd: Forking rx listener daemon.</div>
<div>SScall(183, 28, 48)=3D0 afsd: Forking rx callback listener.</div><div>=
SScall(183, 28, 0)=3D0 afsd: Forking rxevent daemon.</div><div>SScall(183, =
28, 19)=3D0 SScall(183, 28, 36)=3D0 afsd: Calling AFSOP_CACHEINIT: 3000 sta=
t cache entries, 3125 optimum cache files, 100000 blocks in the cache, flag=
s =3D 0x0, dcache entries 2000</div>
<div>SScall(183, 28, 6)=3D0 afsd: Sweeping workstation&#39;s AFS cache dire=
ctory.</div><div>afsd: 3125 out of 3125 data cache files found in sweep 1.<=
/div><div>SScall(183, 28, 7)=3D0 SScall(183, 28, 34)=3D0 afsd: Enabling fak=
estat support in kernel.</div>
<div>SScall(183, 28, 33)=3D0 SScall(183, 28, 29)=3D0 SScall(183, 28, 35)=3D=
0 afsd: Forking AFS daemon.</div><div>SScall(183, 28, 1)=3D0 afsd: Forking =
Check Server Daemon.</div><div>SScall(183, 28, 4)=3D0 afsd: Forking 2 backg=
round daemons.</div>
</div><div>&lt;&lt;2-3 pages of SScall() noise ommited -- assuming the deta=
ils aren&#39;t useful&gt;&gt;</div><div><div>afsd: Forking trunc-cache daem=
on.</div><div>SScall(183, 28, 3)=3D0 afsd: Mounting the AFS root on &#39;/a=
fs&#39;, flags: 0.</div>
<div>afsd: Can&#39;t mount AFS on /afs(22)</div></div><div><br></div>

--0016e64ddeba5b7bfe0491651ec9--