[OpenAFS] Does 1.5.57 work on debian etch(linux 2.6.18.6)?

原幸人 yukihito.hara623@gmail.com
Tue, 3 Mar 2009 20:18:47 +0900


--0003255762ca498fa40464351948
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Hi, all.

I'm interested in AFS and trying to use it on Debian etch environment.
But now I'm in trouble.
Can anyone take some good idea for me?


trouble situation.
Look from me, server procedure is working good.
I'll show result of tested commands below.

[command]
${AFS_DIR}/bin/bos status ${SERVER_NAME} -long -noauth
${AFS_DIR}/bin/vos partinfo ${SERVER_NAME}

[result]
Instance kaserver, (type is simple) currently running normally.
    Process last started at Tue Mar  3 18:46:51 2009 (3 proc starts)
    Last exit at Tue Mar  3 18:46:51 2009
    Command 1 is '/usr/afs/bin/kaserver'

Instance buserver, (type is simple) currently running normally.
    Process last started at Tue Mar  3 18:46:51 2009 (3 proc starts)
    Last exit at Tue Mar  3 18:46:51 2009
    Command 1 is '/usr/afs/bin/buserver'

Instance ptserver, (type is simple) currently running normally.
    Process last started at Tue Mar  3 18:46:51 2009 (3 proc starts)
    Last exit at Tue Mar  3 18:46:51 2009
    Command 1 is '/usr/afs/bin/ptserver'

Instance vlserver, (type is simple) currently running normally.
    Process last started at Tue Mar  3 18:46:51 2009 (3 proc starts)
    Last exit at Tue Mar  3 18:46:51 2009
    Command 1 is '/usr/afs/bin/vlserver'

Instance fs, (type is fs) currently running normally.
    Auxiliary status is: file server running.
    Process last started at Tue Mar  3 18:46:51 2009 (7 proc starts)
    Last exit at Tue Mar  3 18:46:51 2009
    Command 1 is '/usr/afs/bin/fileserver'
    Command 2 is '/usr/afs/bin/volserver'
    Command 3 is '/usr/afs/bin/salvager'

Instance upserver, (type is simple) disabled, currently shutdown.
    Command 1 is '/usr/afs/bin/upserver -crypt /usr/afs/etc -clear
/usr/afs/bin'

vsu_ClientInit: Could not get afs tokens, running unauthenticated.
Free space on partition /vicepa: 18082856 K blocks out of total 18259156


And then, I'm trying to start afs-client process afsd.
[command]
afsd

[result]
afsd: All AFS daemons started.
afsd: Can't mount AFS on /afs(22)



What is above error?
>From strace ${cmd} results, it maybe failed to mount AFS to /afs.
So I tried to mount it by my hand like below.
mount -t AFS /afs afs
But it didn't make a good result...


[what I did]
1.Install debian etch to i386 machine(Pentium4 3.2GHz, 512MB memory)
  and install a few needed packages, like ncurses, bison, flex ...
2.Get kernel source and build new-kernel and new-initrd.
  Changed grub settings and boot from new images.
3.Get openafs source(1.5.57) and extract it.
4.configure.(./configure --enable-transarc-paths)
5.make and make install
6.move libafs-`uname -r`.ko to the dir under /lib/modules/`uname -r`
7.depmod
8.Change CellServerDB and ThisCell file.
9.bootup AFS server as -noauth mode.
  (If you need of detail , please tell it to me)
10. run afsd(result is above error)


[Present my question]
1. From internets, there is a kernel mode client, kafs.
  Does it work with openafs server in same machine?
  kafs and openafs are different implementaion?
  afsd in openafs package needs /proc/fs/openafs/afs_ioctl.
  but kafs kernel module don't take it to procfs.
  Tha's why I thought, kafs and openafs can't exist together.
2. Nearest way to use AFS is use afs-deb package?
  But I'm really interested in how to run it from source codes, or self
built platform.
3. In the case, if I'll use kafs, which afs-server should I use?


Please take your idea for me.

Thanks!


Yukihito HARA

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

Hi, all.<br><br>I&#39;m interested in AFS and trying to use it on Debian et=
ch environment.<br>But now I&#39;m in trouble.<br>Can anyone take some good=
 idea for me?<br><br><br>trouble situation.<br>Look from me, server procedu=
re is working good.<br>
I&#39;ll show result of tested commands below.<br><br>[command]<br>${AFS_DI=
R}/bin/bos status ${SERVER_NAME} -long -noauth<br>${AFS_DIR}/bin/vos partin=
fo ${SERVER_NAME}<br><br>[result]<br>Instance kaserver, (type is simple) cu=
rrently running normally.<br>
=A0=A0=A0 Process last started at Tue Mar=A0 3 18:46:51 2009 (3 proc starts=
)<br>=A0=A0=A0 Last exit at Tue Mar=A0 3 18:46:51 2009<br>=A0=A0=A0 Command=
 1 is &#39;/usr/afs/bin/kaserver&#39;<br><br>Instance buserver, (type is si=
mple) currently running normally.<br>
=A0=A0=A0 Process last started at Tue Mar=A0 3 18:46:51 2009 (3 proc starts=
)<br>=A0=A0=A0 Last exit at Tue Mar=A0 3 18:46:51 2009<br>=A0=A0=A0 Command=
 1 is &#39;/usr/afs/bin/buserver&#39;<br><br>Instance ptserver, (type is si=
mple) currently running normally.<br>
=A0=A0=A0 Process last started at Tue Mar=A0 3 18:46:51 2009 (3 proc starts=
)<br>=A0=A0=A0 Last exit at Tue Mar=A0 3 18:46:51 2009<br>=A0=A0=A0 Command=
 1 is &#39;/usr/afs/bin/ptserver&#39;<br><br>Instance vlserver, (type is si=
mple) currently running normally.<br>
=A0=A0=A0 Process last started at Tue Mar=A0 3 18:46:51 2009 (3 proc starts=
)<br>=A0=A0=A0 Last exit at Tue Mar=A0 3 18:46:51 2009<br>=A0=A0=A0 Command=
 1 is &#39;/usr/afs/bin/vlserver&#39;<br><br>Instance fs, (type is fs) curr=
ently running normally.<br>
=A0=A0=A0 Auxiliary status is: file server running.<br>=A0=A0=A0 Process la=
st started at Tue Mar=A0 3 18:46:51 2009 (7 proc starts)<br>=A0=A0=A0 Last =
exit at Tue Mar=A0 3 18:46:51 2009<br>=A0=A0=A0 Command 1 is &#39;/usr/afs/=
bin/fileserver&#39;<br>=A0=A0=A0 Command 2 is &#39;/usr/afs/bin/volserver&#=
39;<br>
=A0=A0=A0 Command 3 is &#39;/usr/afs/bin/salvager&#39;<br><br>Instance upse=
rver, (type is simple) disabled, currently shutdown.<br>=A0=A0=A0 Command 1=
 is &#39;/usr/afs/bin/upserver -crypt /usr/afs/etc -clear /usr/afs/bin&#39;=
<br><br>
vsu_ClientInit: Could not get afs tokens, running unauthenticated.<br>Free =
space on partition /vicepa: 18082856 K blocks out of total 18259156<br><br>=
<br>And then, I&#39;m trying to start afs-client process afsd.<br>[command]=
<br>
afsd<br><br>[result]<br>afsd: All AFS daemons started.<br>afsd: Can&#39;t m=
ount AFS on /afs(22)<br><br><br><br>What is above error?<br>From strace ${c=
md} results, it maybe failed to mount AFS to /afs.<br>So I tried to mount i=
t by my hand like below.<br>
mount -t AFS /afs afs<br>But it didn&#39;t make a good result...<br><br><br=
>[what I did]<br>1.Install debian etch to i386 machine(Pentium4 3.2GHz, 512=
MB memory)<br>=A0 and install a few needed packages, like ncurses, bison, f=
lex ...<br>
2.Get kernel source and build new-kernel and new-initrd.<br>=A0 Changed gru=
b settings and boot from new images.<br>3.Get openafs source(1.5.57) and ex=
tract it.<br>4.configure.(./configure --enable-transarc-paths)<br>5.make an=
d make install<br>
6.move libafs-`uname -r`.ko to the dir under /lib/modules/`uname -r`<br>7.d=
epmod<br>8.Change CellServerDB and ThisCell file.<br>9.bootup AFS server as=
 -noauth mode.<br>=A0 (If you need of detail , please tell it to me)<br>10.=
 run afsd(result is above error)<br>
<br><br>[Present my question]<br>1. From internets, there is a kernel mode =
client, kafs.<br>=A0 Does it work with openafs server in same machine?<br>=
=A0 kafs and openafs are different implementaion?<br>=A0 afsd in openafs pa=
ckage needs /proc/fs/openafs/afs_ioctl.<br>
=A0 but kafs kernel module don&#39;t take it to procfs.<br>=A0 Tha&#39;s wh=
y I thought, kafs and openafs can&#39;t exist together.<br>2. Nearest way t=
o use AFS is use afs-deb package?<br>=A0 But I&#39;m really interested in h=
ow to run it from source codes, or self built platform.<br>
3. In the case, if I&#39;ll use kafs, which afs-server should I use?<br><br=
><br>Please take your idea for me.<br><br>Thanks!<br><br><br>Yukihito HARA<=
br>

--0003255762ca498fa40464351948--