2003-08-13 12:13:52 +03:00
|
|
|
<appendix>
|
|
|
|
<title>Troubleshooting</title>
|
|
|
|
|
|
|
|
<sect1>
|
|
|
|
<title>Database logfile removal</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Every time a Nix database transaction takes place, Nix writes a record of
|
|
|
|
this transaction to a <emphasis>log</emphasis> in its database directory
|
|
|
|
to ensure that the operation can be replayed in case of a application or
|
|
|
|
system crash. However, without manual intervention, the log grows
|
|
|
|
indefinitely. Hence, unused log files should be deleted periodically.
|
|
|
|
This can be accomplished using the following command:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen>
|
2003-08-13 13:45:01 +03:00
|
|
|
$ rm `db_archive -a -h <replaceable>prefix</replaceable>/var/nix/db`</screen>
|
2003-08-13 12:13:52 +03:00
|
|
|
|
|
|
|
</sect1>
|
|
|
|
|
|
|
|
</appendix>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
local variables:
|
|
|
|
sgml-parent-document: ("book.xml" "appendix")
|
|
|
|
end:
|
|
|
|
-->
|