mirror of
https://git.openafs.org/openafs.git
synced 2025-01-22 08:50:17 +00:00
d7da1acc31
pull in all documentation from IBM
95 lines
5.8 KiB
HTML
95 lines
5.8 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 4//EN">
|
|
<HTML><HEAD>
|
|
<TITLE>Administration Reference</TITLE>
|
|
<!-- Begin Header Records ========================================== -->
|
|
<!-- /tmp/idwt3672/auarf000.scr converted by idb2h R4.2 (359) ID -->
|
|
<!-- Workbench Version (AIX) on 3 Oct 2000 at 16:18:30 -->
|
|
<META HTTP-EQUIV="updated" CONTENT="Tue, 03 Oct 2000 16:18:29">
|
|
<META HTTP-EQUIV="review" CONTENT="Wed, 03 Oct 2001 16:18:29">
|
|
<META HTTP-EQUIV="expires" CONTENT="Thu, 03 Oct 2002 16:18:29">
|
|
</HEAD><BODY>
|
|
<!-- (C) IBM Corporation 2000. All Rights Reserved -->
|
|
<BODY bgcolor="ffffff">
|
|
<!-- End Header Records ============================================ -->
|
|
<A NAME="Top_Of_Page"></A>
|
|
<H1>Administration Reference</H1>
|
|
<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>
|
|
<P>
|
|
<H2><A NAME="HDRVN" HREF="auarf002.htm#ToC_34">V<I>n</I></A></H2>
|
|
<P><STRONG>Purpose</STRONG>
|
|
<A NAME="IDX3987"></A>
|
|
<A NAME="IDX3988"></A>
|
|
<A NAME="IDX3989"></A>
|
|
<P>Houses a chunk of AFS data in the disk cache
|
|
<P><STRONG>Description</STRONG>
|
|
<P>A <B>V</B><VAR>n</VAR> file can store a chunk of cached AFS data on a
|
|
client machine that is using a disk cache. As the Cache Manager
|
|
initializes, it verifies that the local disk cache directory houses a number
|
|
of <B>V</B><VAR>n</VAR> files equal to the largest of the following:
|
|
<UL>
|
|
<P><LI>100
|
|
<P><LI>One and a half times the result of dividing the cache size by the chunk
|
|
size (cachesize/chunksize * 1.5)
|
|
<P><LI>The result of dividing the cache size by 10 MB (10,240)
|
|
</UL>
|
|
<P>The Cache Manager determines the cache size from the <B>-blocks</B>
|
|
argument to the <B>afsd</B> command, or if the argument is not included,
|
|
from the third field of the <B>/usr/vice/etc/cacheinfo</B> file.
|
|
The default chunk size is 64 KB; use the <B>-chunksize</B> argument
|
|
to the <B>afsd</B> command to override it. To override the default
|
|
number of chunks resulting from the calculation, include the <B>-files</B>
|
|
argument to the <B>afsd</B> command. The <B>afsd</B> reference
|
|
page describes the restrictions on acceptable values for each of the
|
|
arguments.
|
|
<P>If the disk cache directory houses fewer <B>V</B><VAR>n</VAR> files than
|
|
necessary, the Cache Manager creates new ones, assigning each a unique integer
|
|
<VAR>n</VAR> that distinguishes it from the other files; the integers start
|
|
with 1 and increment by one for each <B>V</B><VAR>n</VAR> file
|
|
created. The Cache Manager removes files if there are more than
|
|
necessary. The Cache Manager also adds and removes
|
|
<B>V</B><VAR>n</VAR> files in response to the <B>fs setcachesize</B>
|
|
command, which can be used to alter the cache size between reboots.
|
|
<P>The standard disk cache directory name is <B>/usr/vice/cache</B>, but
|
|
it is acceptable to use a directory on a partition with more available
|
|
space. To designate a different directory, change the value in the
|
|
second field of the <B>/usr/vice/etc/cacheinfo</B> file before issuing the
|
|
<B>afsd</B> command, or include the <B>-cachedir</B> argument to the
|
|
<B>afsd</B> command.
|
|
<P><B>V</B><VAR>n</VAR> files expand and contract to accommodate the size of
|
|
the AFS directory listing or file they temporarily house. As mentioned,
|
|
by default each <B>V</B><VAR>n</VAR> file holds up to 64 KB (65,536 bytes)
|
|
of a cached AFS element. AFS elements larger than 64 KB are divided
|
|
among multiple <B>V</B><VAR>n</VAR> files. If an element is smaller
|
|
than 64 KB, the <B>V</B><VAR>n</VAR> file expands only to the required
|
|
size. A <B>V</B><VAR>n</VAR> file accommodates only a single element,
|
|
so if there many small cached elements, it is possible to exhaust the
|
|
available <B>V</B><VAR>n</VAR> files without reaching the maximum cache
|
|
size.
|
|
<P><STRONG>Cautions</STRONG>
|
|
<P>Editing or removing a <B>V</B><VAR>n</VAR> file can cause a kernel
|
|
panic. To alter cache size (and thus the number of
|
|
<B>V</B><VAR>n</VAR> files) between reboots, use the <B>fs
|
|
setcachesize</B> command. Alternatively, alter the value of the
|
|
<B>-blocks</B>, <B>-files</B> or <B>-chunksize</B> arguments to
|
|
the <B>afsd</B> command invoked in the machine's AFS initialization
|
|
file, and reboot. To refresh the contents of one or more
|
|
<B>V</B><VAR>n</VAR> files, use the <B>fs flush</B> or <B>fs
|
|
flushvolume</B> command. If a <B>V</B><VAR>n</VAR> file is
|
|
accidentally modified or deleted, rebooting the machine usually restores
|
|
normal performance.
|
|
<P><STRONG>Related Information</STRONG>
|
|
<P><A HREF="auarf043.htm#HDRCACHEINFO">cacheinfo</A>
|
|
<P><A HREF="auarf058.htm#HDRAFSD">afsd</A>
|
|
<P><A HREF="auarf140.htm#HDRFS_FLUSH">fs flush</A>
|
|
<P><A HREF="auarf142.htm#HDRFS_FLUSHVOLUME">fs flushvolume</A>
|
|
<P><A HREF="auarf158.htm#HDRFS_SETCACHESIZE">fs setcachesize</A>
|
|
<P>
|
|
<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>
|
|
<!-- Begin Footer Records ========================================== -->
|
|
<P><HR><B>
|
|
<br>© <A HREF="http://www.ibm.com/">IBM Corporation 2000.</A> All Rights Reserved
|
|
</B>
|
|
<!-- End Footer Records ============================================ -->
|
|
<A NAME="Bot_Of_Page"></A>
|
|
</BODY></HTML>
|