[prev in list] [next in list] [prev in thread] [next in thread] 

List:       amd-dev
Subject:    possible bug?
From:       Michael Way <mway () astro ! Princeton ! EDU>
Date:       1998-07-17 22:51:00
[Download RAW message or body]



OS: Solaris 5.6
amd version: am-utils-6.0a16.tar.gz
Summary: cannot seem to get cachefs to work properly under Solaris + amd.

Here is the amd -v:
am-utils version 6.0a16 (build 1).
Built by srcmaint@muse on date Fri Jul 17 13:02:26 EDT 1998.
cpu=sparc (big-endian), arch=sun4, karch=sun4u.
full_os=solaris2.6, os=solaris2, osver=2.6, vendor=sun.
Map support for: root, passwd, union, nisplus, nis, ndbm, file, error.
AMFS: nfs, link, nfsx, nfsl, host, linkx, program, union, inherit, 
      ufs, lofs, cdfs, pcfs, cachefs, auto, direct, toplvl, error
      .
FS: autofs, cachefs, hsfs, lofs, nfs, nfs3, pc, tmpfs, ufs.
Network: wire="astroturf" (netnumber=128.112.24).


Here is how I start up amd:

% amd -l syslog -x fatal,error -a /amd_tmp /import/amd/scr amd.scr

% cat amd.scr

/defaults    -opts:=rw,noquota;type:=cachefs;cachedir:=/var/local/cache/cachefs

euler0       host!=euler;rhost:=euler;rfs:=/scr0 \
             host==euler;type:=link;fs:=/scr0

fs is /amd_tmp/euler/scr0 by default and this makes no diffference
whether i put it in explictly or not.
when i type in ls /import/amd/scr/euler0
this mounts the *local* /scr0 filesystem as /amd_tmp/euler/scr0
NOT the foreign filesystem euler:/scr0 on my localhost.

% df  -k | grep scr0
/dev/dsk/c0t0d0s7    2982967  140202 2783106     5%    /scr0
/scr0                2982967  140202 2783106     5%    /amd_tmp/euler/scr0

When I look at the /var/local/cache/cachefs directory I find:

drwxrwxrwx   4 root     root         512 Jul 17 16:52 000000000000ee87
lrwxrwxrwx   1 root     root          16 Jul 17 16:17 \
_var_local_cache_cachefs:_amd_tmp_euler_scr0 -> 000000000000ee87

however from other cached filesystems I have it should look something like:

lrwxrwxrwx   1 root     root          16 Jul 17 16:17 euler:_scr0:_scr_euler3 -> \
000000000000ee87


Note that I found the following statment in the manual for cachefs difficult to
understand [Section 5.5 Caching Filesystem ('cachefs')]:

------
Access to the pathname `/import/copt' will follow a symbolic link to
`/n/import/copt'. The latter is the mount point for a
caching file system, that caches from `/import/opt' to `/cache'. 
------

In particular I do not understand the part about "The latter is the mount
point for a caching file system".

Note that the follwing entry in amd.scr works flawlessly:

host!=euler;rhost:=euler;rfs:=/scr0 \
host==euler;type:=link;fs:=/scr0


Any ideas greatly appreciated.
Please send reply via email since I don't subscribe to the list.

thanks,
mike

-------------------------------------------------------------------------------
Michael J. Way : mway@astro.princeton.edu: Voice=609-258-6483, FAX=609-258-1020 
Dept of Astrophysical Sciences, Princeton University, Princeton NJ 08544


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic