The "fs flushxxx" commands do not remove entries from the cache.  All
they do is invalidate the cache status and purge non-dirty data from the
Windows file cache.

I do not believe the problem you describe has anything to do with cache
flushing.   File/Directory Change Notification perhaps but not
flushing.   IIS has its own cache of pages that it is serving.  It only
updates those pages upon receiving a change notification.


On 3/26/2012 3:42 PM, Hugh Caldwell wrote:
> I have a script which regularly writes a file to our www\htdocs\rss
> directory. If I execute "fs flushv \\afs\usgs.gov\www\www\htdocs" our
> IIS servers will not pick up the changed file. If I execute "fs flushv
> \\afs\usgs.gov\www\www\htdocs\rss" the new file is served.
>
> The servers are running Windows 2008 R2. The OpenAFS clients are 1.7.4
> and 1.7.8
>
> Thanks for the tip on cmdebug.
>
> While reading up on the flushv command I found out about "fs
> flushall". Should the results of cmdebug <hostname> -long be
> significantly different after running flushall? I piped the results of
> cmdebug to a file before and after running "fs flushall" and the
> output was larger after running the command which seems counter
> intuitive.
>
> Thanks
>
> Hugh Caldwell
> Astor & Sanders
> EWeb Systems Administrator
> United States Geological Survey
> 703-648-6812 (Office)
> 703-598-3472 (Cellular)
> [email protected]
> Room 2C123B
>
>
>
> From:         Jeffrey Altman <[email protected]>
> To:   [email protected]
> Date:         03/26/2012 02:51 PM
> Subject:      Re: [OpenAFS] Flushv on Windows?
> Sent by:      [email protected]
>
>
> ------------------------------------------------------------------------
>
>
>
> What evidence do you have that fs flushvolume fails?
>
> With what version of the software on what operating system?
>
> There is no mechanism to dump the contents of the Windows File Cache.
> To examine the status information stored in the AFS cache you can use:
>
>  cmdebug <hostname> -long
>
> or you can dump internal data structures using "fs memdump".
>
> On 3/26/2012 10:40 AM, Hugh Caldwell wrote:
> > It appears that the running "fs flushv" on Windows does not flush the
> > volume but just the directory that is used in the argument.  Has anyone
> > else noticed this behavior?
> >
> > Is there a way to list the files that are in the AFS Cache?
> >
> > Thanks,
> >
> > Hugh Caldwell
> > Astor & Sanders
> > EWeb Systems Administrator
> > United States Geological Survey
> > 703-648-6812 (Office)
> > 703-598-3472 (Cellular)
> > [email protected]
> > Room 2C123B
>
> [attachment "signature.asc" deleted by Hugh Caldwell/GIO/CONT/USGS/DOI]
>


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to