Title: cannot create files/directories with openafs-1.2.3 client

(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 [EMAIL PROTECTED] [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...

Reply via email to