[OpenAFS] Flushv on Windows?

Hugh Caldwell hcaldwell@usgs.gov
Mon, 26 Mar 2012 15:42:15 -0400


This is a multipart message in MIME format.
--=_alternative 006C3D60852579CD_=
Content-Type: text/plain; charset="US-ASCII"

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)
hcaldwell@usgs.gov
Room 2C123B




From:
Jeffrey Altman <jaltman@your-file-system.com>
To:
openafs-info@openafs.org
Date:
03/26/2012 02:51 PM
Subject:
Re: [OpenAFS] Flushv on Windows?
Sent by:
openafs-info-admin@openafs.org



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)
> hcaldwell@usgs.gov
> Room 2C123B

[attachment "signature.asc" deleted by Hugh Caldwell/GIO/CONT/USGS/DOI] 


--=_alternative 006C3D60852579CD_=
Content-Type: text/html; charset="US-ASCII"

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