[OpenAFS-devel] Openafs-1.1.1 in a Diskless Environment (Linux)
Derek Atkins
warlord@MIT.EDU
13 Aug 2001 23:17:22 -0400
This is a known problem with Linux 2.4.7. You need to patch
src/afs/LINUX/osi_vfs.h to match linux/fs.h's struct inode.
Read the archives for more information, or just grab the current
CVS which has this fixed.
-derek
"Valentin v. Seggern" <vvs@germanistik.fu-berlin.de> writes:
> Hello list,
>
> I am trying to use openafs-1.1.1 in a diskless linux-environment.
> The Server works, but the (diskless) clients don't.
>
> I tested the server with a "normal" PC ("non-diskless"). And I can
> mount /afs just fine.
>
> The clients use a 10MB disk-cache on a ramdisk which I set up in
> /etc/init.d/afs like this:
>
> dd if=/dev/zero of=/dev/ram bs=1k count=16384 # 16MB Partition
> mke2fs -i 1024 -m 0 -q -F /dev/ram
> mount -t ext2 /dev/ram /usr/vice/cache
>
> The cacheinfo-file looks like this:
> # cat /usr/vice/etc/cacheinfo
> /afs:/usr/vice/cache:10000
>
> I start the Cache Manager with:
> -stat 300 -dcache 100 -daemons 2 -volumes 50 -verbose \
> -logfile /usr/vice/cache/afslog # Because /usr/vice/etc is mounted ro.
>
> So... when I do a /etc/init.d/afs start (on the client) it seems to
> mount afs the way it should:
>
> Starting AFS services.....
> afsd: My home cell is 'rz'
> afsd: Creating '/usr/vice/cache/afslog'
> CreateCacheFile: Creating cache file '/usr/vice/cache/afslog'
> SScall(137, 28)=0 afsd: Forking rx listener daemon.
> afsd: Forking rx callback listener.
> afsd: Forking rxevent daemon.
> afsd: Forking AFS daemon.
> afsd: Forking Check Server Daemon.
> afsd: Forking 2 background daemons.
> SScall(137, 28)=0 afsd: Calling AFSOP_CACHEINIT: 300 stat cache
> entries, 1000 optimum cache files, 10000 blocks in the cache, flags
> = 0x0, dcache entries 100
> SScall(137, 28)=0 afsd: Sweeping workstation's AFS cache directory.
> SweepAFSCache: Deleting '/usr/vice/cache/afslog'
> afsd: 1000 out of 1000 data cache files found in sweep 1.S
> ...Long list of stuff(*)... afsd: All AFS daemons started.
> afsd: Forking trunc-cache daemon.
> afsd: Mounting the AFS root on '/afs', flags: 0.
>
> (*) all look like this: SScall(137, 28)=0
>
>
> Mount shows:
>
> /dev/ram0 on /usr/vice/cache type ext2 (rw)
> AFS on /afs type afs (rw)
>
> Here are some things I do on the client:
>
> client# ls -ld /afs
> drwxrwxrwx 2 root root 2048 Aug 7 14:35 /afs
>
> client# ls -ld /afs/
> ls: /afs/: Not a directory
>
> client# /usr/src/openafs-1.1.1/i386_linux24/dest/bin/fs listacl /afs
> Access list for /afs is
> Normal rights:
> system:administrators rlidwka
> system:anyuser rl
>
> client# /usr/src/openafs-1.1.1/i386_linux24/dest/bin/fs listacl /afs/
> fs: File '/afs/' doesn't exist
>
> Needless to say, that I cannot CWD to /afs. I can however klog
> admin and get a token. But that doesn't change anything.
>
> Oh yes... mounting /afs on the clients doesn't append anything in
> the logfiles under /usr/afs/logs/*. Except for random entries such as:
>
> Wed Aug 8 13:47:55 2001 ProbeUuid failed for host 192.168.252.59:7001
> or
> Fri Aug 10 10:55:46 2001 CB: RCallBackConnectBack (host.c) failed for host 192.168.252.59:7001
>
> (192.168.252.59 is the diskless client). Those entries do not occour
> regulary though.
>
> I run kernel 2.4.7-ac4 on the clients. / is mounted nfs. Usually I
> mount it ro, but I also tried mounting / rw.
>
> I hope I didn't overlook something obvious and I would be happy to
> give you more information. Just tell me what you need to know.
>
> Thanks,
>
> Valentin v. Seggern
>
>
> PS: Sorry for the empty post. Something went wrong[tm] ...
>
> --
> .~. http://www.germanistik.fu-berlin.de/~luisxiv/ .~.
> /v\ "Wahlen ändern nix - Sonst wären sie verboten" /v\
> /( )\ - Simon Moon (Robert A. Wilson's "Illuminatus") /( )\
> ^-^ ^-^
> _______________________________________________
> OpenAFS-devel mailing list
> OpenAFS-devel@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-devel
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord@MIT.EDU PGP key available