[OpenAFS] cannot create files/directories with openafs-1.2.3 client

Jason Harper Jason.Harper@asu.edu
Mon, 18 Feb 2002 12:06:39 -0700


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

--Boundary_(ID_/8/lL3xzDtu7sD68NT6jhA)
Content-type: text/plain;	charset="iso-8859-1"

(excuse the html)

I have a RedHat 6.2 machine running the RedHat 2.2.16-3 kernel acting as an
AFS client for an existing cell.  Its been running mostly OK with an old
version of arla.

I wanted to replace arla with OpenAFS 1.2.3.  As there are no longer RH6.2
RPMs, I downloaded the 1.2.3 source, configured with --enable-transarc-paths
--with-afs-sysname=i386_linux22 --with-linux-kernel-headers=/usr/src/linux
(which points to the RedHat stock 2.2.16 source tree that should match my
running kernel).  I then did a make dest and manually installed from the
i386_linux22/dest directory as the documentation instructed.

I then shutdown arla, made sure /afs wasn't mounted anymore and arla's
kernel module was cleanly unmounted, then started openafs.  It mounted /afs
properly, we could get tokens, and could read files that we wouldn't
otherwise be able to read if we didn't have the tokens.  Everything seemed
ok.  But then I realized that we couldn't create files or directories in
places we should be able to.  I thought that maybe restarting would help, so
I did an afs stop, which umount'ed /afs, but rmmod appeared to hang when
unloading the libafs module.  The machine had an uptime of almost 352 days,
so after getting over being emotional, I rebooted.... 

Well, afs comes up OK again, but we still have the same problem: we cann't
create files or directories.  Oddly enough, we can MODIFY existing files
(and see the modifications on other AFS client machines).

I do have correct permissions.  This is also verified from other clients
(and it worked with arla):
jsharper@lorax ~> pagsh
jsharper@lorax ~> klog
Password:
jsharper@lorax ~> tokens

Tokens held by the Cache Manager:

User's (AFS ID 36258) tokens for afs@asu.edu [Expires Mar  4 21:04]
   --End of list--
jsharper@lorax ~> cd /afs/asu.edu/users/j/s/h/jsharper
jsharper@lorax /afs/asu.edu/users/j/s/h/jsharper> fs la . | grep jsharper
  jsharper rlidwka
jsharper@lorax /afs/asu.edu/users/j/s/h/jsharper> pts examine jsharper |
grep id
Name: jsharper, id: 36258, owner: system:administrators, creator: admin,

its not a quota thing:
jsharper@lorax /afs/asu.edu/users/j/s/h/jsharper> fs lq . | grep jsharper
user.jsharper                 50000     25482   51%         75%

I can modify existing files, and remove them:

jsharper@lorax /afs/asu.edu/users/j/s/h/jsharper> cat existingfile
existing line
jsharper@lorax /afs/asu.edu/users/j/s/h/jsharper> echo "new line"
>>existingfile
jsharper@lorax /afs/asu.edu/users/j/s/h/jsharper> cat existingfile
existing line
new line
jsharper@lorax /afs/asu.edu/users/j/s/h/jsharper> rm existingfile

but cannot recreate them:
jsharper@lorax /afs/asu.edu/users/j/s/h/jsharper> echo "newest line" >>
existingfile
existingfile: No such file or directory.
jsharper@lorax /afs/asu.edu/users/j/s/h/jsharper>


nor create other new files or create new directories:

jsharper@lorax /afs/asu.edu/users/j/s/h/jsharper> ls -l myfile
ls: myfile: No such file or directory
jsharper@lorax /afs/asu.edu/users/j/s/h/jsharper> touch myfile
touch: myfile: No such file or directory
jsharper@lorax /afs/asu.edu/users/j/s/h/jsharper> ls -ld mydir
ls: mydir: No such file or directory
jsharper@lorax /afs/asu.edu/users/j/s/h/jsharper> mkdir mydir
mkdir: cannot create directory `mydir': File exists
jsharper@lorax /afs/asu.edu/users/j/s/h/jsharper> ls -l mydir
ls: mydir: No such file or directory


I'm not exactly getting permission denied types of errors either.....

any ideas?  For now, I'll have to go back to arla until I can spend some
more time with this....  Or find some time to transition to RedHat 7.2 and
use the RPMs...


Thanks
Jason

BTW, how do you disable clock-setting with OpenAFS?  I use ntpd, which I
believe does a much better job...


--Boundary_(ID_/8/lL3xzDtu7sD68NT6jhA)
Content-type: text/html;	charset="iso-8859-1"
Content-transfer-encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2655.35">
<TITLE>cannot create files/directories with openafs-1.2.3 =
client</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>(excuse the html)</FONT>
</P>

<P><FONT SIZE=3D2>I have a RedHat 6.2 machine running the RedHat =
2.2.16-3 kernel acting as an AFS client for an existing cell.&nbsp; Its =
been running mostly OK with an old version of arla.</FONT></P>

<P><FONT SIZE=3D2>I wanted to replace arla with OpenAFS 1.2.3.&nbsp; As =
there are no longer RH6.2 RPMs, I downloaded the 1.2.3 source, =
configured with --enable-transarc-paths =
--with-afs-sysname=3Di386_linux22 =
--with-linux-kernel-headers=3D/usr/src/linux (which points to the =
RedHat stock 2.2.16 source tree that should match my running =
kernel).&nbsp; I then did a make dest and manually installed from the =
i386_linux22/dest directory as the documentation instructed.</FONT></P>

<P><FONT SIZE=3D2>I then shutdown arla, made sure /afs wasn't mounted =
anymore and arla's kernel module was cleanly unmounted, then started =
openafs.&nbsp; It mounted /afs properly, we could get tokens, and could =
read files that we wouldn't otherwise be able to read if we didn't have =
the tokens.&nbsp; Everything seemed ok.&nbsp; But then I realized that =
we couldn't create files or directories in places we should be able =
to.&nbsp; I thought that maybe restarting would help, so I did an afs =
stop, which umount'ed /afs, but rmmod appeared to hang when unloading =
the libafs module.&nbsp; The machine had an uptime of almost 352 days, =
so after getting over being emotional, I rebooted.... </FONT></P>

<P><FONT SIZE=3D2>Well, afs comes up OK again, but we still have the =
same problem: we cann't create files or directories.&nbsp; Oddly =
enough, we can MODIFY existing files (and see the modifications on =
other AFS client machines).</FONT></P>

<P><FONT SIZE=3D2>I do have correct permissions.&nbsp; This is also =
verified from other clients (and it worked with arla):</FONT>
<BR><FONT SIZE=3D2>jsharper@lorax ~&gt; pagsh</FONT>
<BR><FONT SIZE=3D2>jsharper@lorax ~&gt; klog</FONT>
<BR><FONT SIZE=3D2>Password:</FONT>
<BR><FONT SIZE=3D2>jsharper@lorax ~&gt; tokens</FONT>
</P>

<P><FONT SIZE=3D2>Tokens held by the Cache Manager:</FONT>
</P>

<P><FONT SIZE=3D2>User's (AFS ID 36258) tokens for afs@asu.edu [Expires =
Mar&nbsp; 4 21:04]</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp; --End of list--</FONT>
<BR><FONT SIZE=3D2>jsharper@lorax ~&gt; cd =
/afs/asu.edu/users/j/s/h/jsharper</FONT>
<BR><FONT SIZE=3D2>jsharper@lorax /afs/asu.edu/users/j/s/h/jsharper&gt; =
fs la . | grep jsharper</FONT>
<BR><FONT SIZE=3D2>&nbsp; jsharper rlidwka</FONT>
<BR><FONT SIZE=3D2>jsharper@lorax /afs/asu.edu/users/j/s/h/jsharper&gt; =
pts examine jsharper | grep id</FONT>
<BR><FONT SIZE=3D2>Name: jsharper, id: 36258, owner: =
system:administrators, creator: admin,</FONT>
</P>

<P><FONT SIZE=3D2>its not a quota thing:</FONT>
<BR><FONT SIZE=3D2>jsharper@lorax /afs/asu.edu/users/j/s/h/jsharper&gt; =
fs lq . | grep jsharper</FONT>
<BR><FONT =
SIZE=3D2>user.jsharper&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
50000&nbsp;&nbsp;&nbsp;&nbsp; 25482&nbsp;&nbsp; =
51%&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 75%</FONT>
</P>

<P><FONT SIZE=3D2>I can modify existing files, and remove them:</FONT>
</P>

<P><FONT SIZE=3D2>jsharper@lorax /afs/asu.edu/users/j/s/h/jsharper&gt; =
cat existingfile</FONT>
<BR><FONT SIZE=3D2>existing line</FONT>
<BR><FONT SIZE=3D2>jsharper@lorax /afs/asu.edu/users/j/s/h/jsharper&gt; =
echo &quot;new line&quot; &gt;&gt;existingfile</FONT>
<BR><FONT SIZE=3D2>jsharper@lorax /afs/asu.edu/users/j/s/h/jsharper&gt; =
cat existingfile</FONT>
<BR><FONT SIZE=3D2>existing line</FONT>
<BR><FONT SIZE=3D2>new line</FONT>
<BR><FONT SIZE=3D2>jsharper@lorax /afs/asu.edu/users/j/s/h/jsharper&gt; =
rm existingfile</FONT>
</P>

<P><FONT SIZE=3D2>but cannot recreate them:</FONT>
<BR><FONT SIZE=3D2>jsharper@lorax /afs/asu.edu/users/j/s/h/jsharper&gt; =
echo &quot;newest line&quot; &gt;&gt; existingfile</FONT>
<BR><FONT SIZE=3D2>existingfile: No such file or directory.</FONT>
<BR><FONT SIZE=3D2>jsharper@lorax =
/afs/asu.edu/users/j/s/h/jsharper&gt;</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>nor create other new files or create new =
directories:</FONT>
</P>

<P><FONT SIZE=3D2>jsharper@lorax /afs/asu.edu/users/j/s/h/jsharper&gt; =
ls -l myfile</FONT>
<BR><FONT SIZE=3D2>ls: myfile: No such file or directory</FONT>
<BR><FONT SIZE=3D2>jsharper@lorax /afs/asu.edu/users/j/s/h/jsharper&gt; =
touch myfile</FONT>
<BR><FONT SIZE=3D2>touch: myfile: No such file or directory</FONT>
<BR><FONT SIZE=3D2>jsharper@lorax /afs/asu.edu/users/j/s/h/jsharper&gt; =
ls -ld mydir</FONT>
<BR><FONT SIZE=3D2>ls: mydir: No such file or directory</FONT>
<BR><FONT SIZE=3D2>jsharper@lorax /afs/asu.edu/users/j/s/h/jsharper&gt; =
mkdir mydir</FONT>
<BR><FONT SIZE=3D2>mkdir: cannot create directory `mydir': File =
exists</FONT>
<BR><FONT SIZE=3D2>jsharper@lorax /afs/asu.edu/users/j/s/h/jsharper&gt; =
ls -l mydir</FONT>
<BR><FONT SIZE=3D2>ls: mydir: No such file or directory</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>I'm not exactly getting permission denied types of =
errors either.....</FONT>
</P>

<P><FONT SIZE=3D2>any ideas?&nbsp; For now, I'll have to go back to =
arla until I can spend some more time with this....&nbsp; Or find some =
time to transition to RedHat 7.2 and use the RPMs...</FONT></P>
<BR>

<P><FONT SIZE=3D2>Thanks</FONT>
<BR><FONT SIZE=3D2>Jason</FONT>
</P>

<P><FONT SIZE=3D2>BTW, how do you disable clock-setting with =
OpenAFS?&nbsp; I use ntpd, which I believe does a much better =
job...</FONT>
</P>

</BODY>
</HTML>=

--Boundary_(ID_/8/lL3xzDtu7sD68NT6jhA)--