[OpenAFS] problems with disconnected mode

Derrick Brashear shadow@gmail.com
Mon, 6 Sep 2010 21:27:23 -0400


What will be 1.5.77, which should have no functional difference as
none of the relevant code has changed:

snowleopardserver:~ shadow$ kinit shadow
Please enter the password for shadow@ANDREW.CMU.EDU:
snowleopardserver:~ shadow$ aklog dementia.org
demsnowleopardserver:~ shadow$ cd /afs/dementia.org/usr/shadow
snowleopardserver:shadow shadow$ ls -l
[...]
snowleopardserver:shadow shadow$ cat > test4
hgkhasdfgkhdsfkhgdfh
snowleopardserver:shadow shadow$ cat test4
hgkhasdfgkhdsfkhgdfh
snowleopardserver:shadow shadow$ sudo fs discon offline
Password:
Discon mode is now "offline"
snowleopardserver:shadow shadow$ echo foo > test4
snowleopardserver:shadow shadow$ cat test4
foo
snowleopardserver:shadow shadow$ sudo fs discon online -uid 501
Discon mode is now "online"
snowleopardserver:shadow shadow$ cat test4
foo
snowleopardserver:shadow shadow$ fs flushv .
snowleopardserver:shadow shadow$ cat test4
foo

the "fs discon online -uid 501" is needed because OSX has no PAGs, so
the fs discon online won't have "my" tokens, since they're accessed by
uid.

I'll have to try on Linux, because that's the obvious difference. But
it works on OSX as it did before.



On Thu, Sep 2, 2010 at 2:07 PM,  <olin.afs.7ia@shivers.mail0.org> wrote:
> I'm having problems with disconnected mode.
>
> - At one point, I wrote 6 bytes into a file, "hello\n". When I cat'd
> =A0the file out, I got 6 nul bytes.
>
> - At another point, I had a 6-byte file containing "hello\n." I wrote 8 n=
ew
> =A0bytes, "goodbye\n", into it: echo goodbye > test. When I cat'd the
> =A0file -- in *online* state -- I got "goodby". Six bytes.
>
> - Here's a transcript, with some other lossage. During the entire
> =A0transcript, nothing in the shivers.com cell was being altered from
> =A0any other AFS client.
>
> =A0 =A0; echo foo > /afs/shivers.com/user/shivers/test4
>
> =A0 =A0[now I go offline, using "fs discon offline" in another window.]
>
> =A0 =A0; cat /afs/shivers.com/user/shivers/test4
> =A0 =A0cat: /afs/shivers.com/user/shivers/test4: No such file or director=
y
> =A0 =A0; echo foo > /afs/shivers.com/user/shivers/test4
> =A0 =A0bash: /afs/shivers.com/user/shivers/test4: No such file or directo=
ry
> =A0 =A0; ls /afs/shivers.com/user/shivers
> =A0 =A0ls: cannot access /afs/shivers.com/user/shivers: No such file or d=
irectory
>
> =A0 =A0[now I go online, using "fs discon online" in another window.]
>
> =A0 =A0; cat /afs/shivers.com/user/shivers/test4
> =A0 =A0foo
>
> I'm running ubuntu 10.4 on the server and the client. I installed the
> =A0 =A0openafs-fileserver =A0 1.4.12+dfsg-3 (lucid)
> =A0 =A0openafs-dbserver =A0 =A0 1.4.12+dfsg-3 (lucid)
> =A0 =A0openafs-krb5 =A0 =A0 =A0 =A0 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 syste=
m to
> use the "personal package" site
> =A0 =A0deb http://ppa.launchpad.net/openafs/master/ubuntu lucid main
> =A0 =A0deb-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
> =A0 =A0openafs-client =A0 =A0 =A0 1.5.75-2~ppa0~lucid1 (ppa.launchpad.net=
)
> =A0 =A0openafs-modules-dkms 1.5.75-2~ppa0~lucid1 (ppa.launchpad.net)
>
> That's what has produced the lossage described above.
>
> Any advice?
> =A0 =A0-Olin
> _______________________________________________
> OpenAFS-info mailing list
> OpenAFS-info@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-info
>



--=20
Derrick