1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>7.Register Location</title><meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"><link rel="home" href="index.html" title="Zebra - User's Guide and Reference"><link rel="up" href="administration.html" title="Chapter6.Administrating Zebra"><link rel="prev" href="generic-ids.html" title="6.Indexing with General Record IDs"><link rel="next" href="shadow-registers.html" title="8.Safe Updating - Using Shadow Registers"></head><body><link rel="stylesheet" type="text/css" href="common/style1.css"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">7.Register Location</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="generic-ids.html">Prev</a></td><th width="60%" align="center">Chapter6.Administrating <span class="application">Zebra</span></th><td width="20%" align="right"><a accesskey="n" href="shadow-registers.html">Next</a></td></tr></table><hr></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="register-location"></a>7.Register Location</h2></div></div></div><p>
Normally, the index files that form dictionaries, inverted
files, record info, etc., are stored in the directory where you run
<code class="literal">zebraidx</code>. If you wish to store these, possibly large,
files somewhere else, you must add the <code class="literal">register</code>
entry to the <code class="literal">zebra.cfg</code> file.
Furthermore, the <span class="application">Zebra</span> system allows its file
structures to span multiple file systems, which is useful for
managing very large databases.
</p><p>
The value of the <code class="literal">register</code> setting is a sequence
of tokens. Each token takes the form:
<span class="emphasis"><em>dir</em></span><code class="literal">:</code><span class="emphasis"><em>size</em></span>
The <span class="emphasis"><em>dir</em></span> specifies a directory in which index files
will be stored and the <span class="emphasis"><em>size</em></span> specifies the maximum
size of all files in that directory. The <span class="application">Zebra</span> indexer system fills
each directory in the order specified and use the next specified
directories as needed.
The <span class="emphasis"><em>size</em></span> is an integer followed by a qualifier
code,
<code class="literal">b</code> for bytes,
<code class="literal">k</code> for kilobytes.
<code class="literal">M</code> for megabytes,
<code class="literal">G</code> for gigabytes.
Specifying a negative value disables the checking (it still needs the unit,
use <code class="literal">-1b</code>).
</p><p>
For instance, if you have allocated three disks for your register, and
the first disk is mounted
on <code class="literal">/d1</code> and has 2GB of free space, the
second, mounted on <code class="literal">/d2</code> has 3.6 GB, and the third,
on which you have more space than you bother to worry about, mounted on
<code class="literal">/d3</code> you could put this entry in your configuration file:
</p><pre class="screen">
register: /d1:2G /d2:3600M /d3:-1b
</pre><p>
</p><p>
Note that <span class="application">Zebra</span> does not verify that the amount of space specified is
actually available on the directory (file system) specified - it is
your responsibility to ensure that enough space is available, and that
other applications do not attempt to use the free space. In a large
production system, it is recommended that you allocate one or more
file system exclusively to the <span class="application">Zebra</span> register files.
</p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="generic-ids.html">Prev</a></td><td width="20%" align="center"><a accesskey="u" href="administration.html">Up</a></td><td width="40%" align="right"><a accesskey="n" href="shadow-registers.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">6.Indexing with General Record IDs</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">8.Safe Updating - Using Shadow Registers</td></tr></table></div></body></html>
|