After a bit more research I have found that Sun have already done what
I want, I thought I would share it :-)
>
>Now my dilemma is do I want to script the clients to check if the
>filesystem is available and force a refresh periodically OR script the
>server to distribute the files out somehow. I am leaning towards
>scripting the clients on the basis that a server push is prone to a
>machine getting dropped off the list and losing updates.
>
I was searching the sunsolve patch database for patches for cachefs
and I turned up infodoc number 21701 which describes running cachefs
in "disconnected" mode.... JUST WHAT I WANTED. There is an option
that is not documented in any man pages I saw called "disconnectable"
which allows the cachefs to serve files even if the back filesystem
server is down. There is a daemon (cachefsd - no man page for that)
that monitors the connection and resolves any changes between the back
filesystem server and the cache when the server comes back on line.
So that makes the choice easy for me. I can simply do this:
mount -F cachefs -o backfstype=nfs,cachedir=/opt/cache,ro,disconnectable,local-access miscsan:/ /opt/test
to make my systems ride out any outage on my file server.
-- =============================================================================== Brett Lymn, Computer Systems Administrator, BAE SYSTEMS ===============================================================================S U BEFORE POSTING please READ the FAQ located at N ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/faq . and the list POLICY statement located at M ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/policy A To submit questions/summaries to this list send your email message to: N sun-managers@ececs.uc.edu A To unsubscribe from this list please send an email message to: G majordomo@sunmanagers.ececs.uc.edu E and in the BODY type: R unsubscribe sun-managers S Or . unsubscribe sun-managers original@subscription.address L To view an archive of this list please visit: I http://www.latech.edu/sunman.html S T
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:14:14 CDT