[OpenAFS] problems with disconnected mode

olin.afs.7ia@shivers.mail0.org olin.afs.7ia@shivers.mail0.org
Thu, 2 Sep 2010 14:07:34 -0400 (EDT)


I'm having problems with disconnected mode.

- At one point, I wrote 6 bytes into a file, "hello\n". When I cat'd
  the file out, I got 6 nul bytes.

- At another point, I had a 6-byte file containing "hello\n." I wrote 8 new
  bytes, "goodbye\n", into it: echo goodbye > test. When I cat'd the
  file -- in *online* state -- I got "goodby". Six bytes.

- Here's a transcript, with some other lossage. During the entire
  transcript, nothing in the shivers.com cell was being altered from
  any other AFS client.

    ; echo foo > /afs/shivers.com/user/shivers/test4

    [now I go offline, using "fs discon offline" in another window.]

    ; cat /afs/shivers.com/user/shivers/test4
    cat: /afs/shivers.com/user/shivers/test4: No such file or directory
    ; echo foo > /afs/shivers.com/user/shivers/test4
    bash: /afs/shivers.com/user/shivers/test4: No such file or directory
    ; ls /afs/shivers.com/user/shivers
    ls: cannot access /afs/shivers.com/user/shivers: No such file or directory

    [now I go online, using "fs discon online" in another window.]

    ; cat /afs/shivers.com/user/shivers/test4
    foo

I'm running ubuntu 10.4 on the server and the client. I installed the
    openafs-fileserver   1.4.12+dfsg-3 (lucid)
    openafs-dbserver     1.4.12+dfsg-3 (lucid)
    openafs-krb5     	 1.4.12+dfsg-3 (lucid)
packages from the standard ubuntu repository on the server. I also
had a 1.4 client set up on both client & server machines. Once I
had it all working, I removed the 1.4 client and set my apt package system to 
use the "personal package" site
    deb http://ppa.launchpad.net/openafs/master/ubuntu lucid main 
    deb-src http://ppa.launchpad.net/openafs/master/ubuntu lucid main 
(which is the "master site" for the version 1.5 openafs packages as
debs), then installed 
    openafs-client       1.5.75-2~ppa0~lucid1 (ppa.launchpad.net)
    openafs-modules-dkms 1.5.75-2~ppa0~lucid1 (ppa.launchpad.net)

That's what has produced the lossage described above.

Any advice?
    -Olin