windows-issues-20050925
[openafs.git] / doc / html / AdminReference / auarf036.htm
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 4//EN">
2 <HTML><HEAD>
3 <TITLE>Administration Reference</TITLE>
4 <!-- Begin Header Records  ========================================== -->
5 <!-- /tmp/idwt3672/auarf000.scr converted by idb2h R4.2 (359) ID      -->
6 <!-- Workbench Version (AIX) on 3 Oct 2000 at 16:18:30                -->
7 <META HTTP-EQUIV="updated" CONTENT="Tue, 03 Oct 2000 16:18:29">
8 <META HTTP-EQUIV="review" CONTENT="Wed, 03 Oct 2001 16:18:29">
9 <META HTTP-EQUIV="expires" CONTENT="Thu, 03 Oct 2002 16:18:29">
10 </HEAD><BODY>
11 <!-- (C) IBM Corporation 2000. All Rights Reserved    --> 
12 <BODY bgcolor="ffffff"> 
13 <!-- End Header Records  ============================================ -->
14 <A NAME="Top_Of_Page"></A>
15 <H1>Administration Reference</H1>
16 <HR><P ALIGN="center"> <A HREF="../index.htm"><IMG SRC="../books.gif" BORDER="0" ALT="[Return to Library]"></A> <A HREF="auarf002.htm#ToC"><IMG SRC="../toc.gif" BORDER="0" ALT="[Contents]"></A> <A HREF="auarf035.htm"><IMG SRC="../prev.gif" BORDER="0" ALT="[Previous Topic]"></A> <A HREF="#Bot_Of_Page"><IMG SRC="../bot.gif" BORDER="0" ALT="[Bottom of Topic]"></A> <A HREF="auarf037.htm"><IMG SRC="../next.gif" BORDER="0" ALT="[Next Topic]"></A> <A HREF="auarf284.htm#HDRINDEX"><IMG SRC="../index.gif" BORDER="0" ALT="[Index]"></A> <P> 
17 <P>
18 <H2><A NAME="HDRVN" HREF="auarf002.htm#ToC_34">V<I>n</I></A></H2>
19 <P><STRONG>Purpose</STRONG>
20 <A NAME="IDX3987"></A>
21 <A NAME="IDX3988"></A>
22 <A NAME="IDX3989"></A>
23 <P>Houses a chunk of AFS data in the disk cache
24 <P><STRONG>Description</STRONG>
25 <P>A <B>V</B><VAR>n</VAR> file can store a chunk of cached AFS data on a
26 client machine that is using a disk cache. As the Cache Manager
27 initializes, it verifies that the local disk cache directory houses a number
28 of <B>V</B><VAR>n</VAR> files equal to the largest of the following:
29 <UL>
30 <P><LI>100
31 <P><LI>One and a half times the result of dividing the cache size by the chunk
32 size (cachesize/chunksize * 1.5)
33 <P><LI>The result of dividing the cache size by 10 MB (10,240)
34 </UL>
35 <P>The Cache Manager determines the cache size from the <B>-blocks</B>
36 argument to the <B>afsd</B> command, or if the argument is not included,
37 from the third field of the <B>/usr/vice/etc/cacheinfo</B> file.
38 The default chunk size is 64 KB; use the <B>-chunksize</B> argument
39 to the <B>afsd</B> command to override it. To override the default
40 number of chunks resulting from the calculation, include the <B>-files</B>
41 argument to the <B>afsd</B> command. The <B>afsd</B> reference
42 page describes the restrictions on acceptable values for each of the
43 arguments.
44 <P>If the disk cache directory houses fewer <B>V</B><VAR>n</VAR> files than
45 necessary, the Cache Manager creates new ones, assigning each a unique integer
46 <VAR>n</VAR> that distinguishes it from the other files; the integers start
47 with 1 and increment by one for each <B>V</B><VAR>n</VAR> file
48 created. The Cache Manager removes files if there are more than
49 necessary. The Cache Manager also adds and removes
50 <B>V</B><VAR>n</VAR> files in response to the <B>fs setcachesize</B>
51 command, which can be used to alter the cache size between reboots.
52 <P>The standard disk cache directory name is <B>/usr/vice/cache</B>, but
53 it is acceptable to use a directory on a partition with more available
54 space. To designate a different directory, change the value in the
55 second field of the <B>/usr/vice/etc/cacheinfo</B> file before issuing the
56 <B>afsd</B> command, or include the <B>-cachedir</B> argument to the
57 <B>afsd</B> command.
58 <P><B>V</B><VAR>n</VAR> files expand and contract to accommodate the size of
59 the AFS directory listing or file they temporarily house. As mentioned,
60 by default each <B>V</B><VAR>n</VAR> file holds up to 64 KB (65,536 bytes)
61 of a cached AFS element. AFS elements larger than 64 KB are divided
62 among multiple <B>V</B><VAR>n</VAR> files. If an element is smaller
63 than 64 KB, the <B>V</B><VAR>n</VAR> file expands only to the required
64 size. A <B>V</B><VAR>n</VAR> file accommodates only a single element,
65 so if there many small cached elements, it is possible to exhaust the
66 available <B>V</B><VAR>n</VAR> files without reaching the maximum cache
67 size.
68 <P><STRONG>Cautions</STRONG>
69 <P>Editing or removing a <B>V</B><VAR>n</VAR> file can cause a kernel
70 panic. To alter cache size (and thus the number of
71 <B>V</B><VAR>n</VAR> files) between reboots, use the <B>fs
72 setcachesize</B> command. Alternatively, alter the value of the
73 <B>-blocks</B>, <B>-files</B> or <B>-chunksize</B> arguments to
74 the <B>afsd</B> command invoked in the machine's AFS initialization
75 file, and reboot. To refresh the contents of one or more
76 <B>V</B><VAR>n</VAR> files, use the <B>fs flush</B> or <B>fs
77 flushvolume</B> command. If a <B>V</B><VAR>n</VAR> file is
78 accidentally modified or deleted, rebooting the machine usually restores
79 normal performance.
80 <P><STRONG>Related Information</STRONG>
81 <P><A HREF="auarf043.htm#HDRCACHEINFO">cacheinfo</A>
82 <P><A HREF="auarf058.htm#HDRAFSD">afsd</A>
83 <P><A HREF="auarf140.htm#HDRFS_FLUSH">fs flush</A>
84 <P><A HREF="auarf142.htm#HDRFS_FLUSHVOLUME">fs flushvolume</A>
85 <P><A HREF="auarf158.htm#HDRFS_SETCACHESIZE">fs setcachesize</A>
86 <P>
87 <HR><P ALIGN="center"> <A HREF="../index.htm"><IMG SRC="../books.gif" BORDER="0" ALT="[Return to Library]"></A> <A HREF="auarf002.htm#ToC"><IMG SRC="../toc.gif" BORDER="0" ALT="[Contents]"></A> <A HREF="auarf035.htm"><IMG SRC="../prev.gif" BORDER="0" ALT="[Previous Topic]"></A> <A HREF="#Top_Of_Page"><IMG SRC="../top.gif" BORDER="0" ALT="[Top of Topic]"></A> <A HREF="auarf037.htm"><IMG SRC="../next.gif" BORDER="0" ALT="[Next Topic]"></A> <A HREF="auarf284.htm#HDRINDEX"><IMG SRC="../index.gif" BORDER="0" ALT="[Index]"></A> <P> 
88 <!-- Begin Footer Records  ========================================== -->
89 <P><HR><B> 
90 <br>&#169; <A HREF="http://www.ibm.com/">IBM Corporation 2000.</A>  All Rights Reserved 
91 </B> 
92 <!-- End Footer Records  ============================================ -->
93 <A NAME="Bot_Of_Page"></A>
94 </BODY></HTML>