To find and remove corrupt files from statistics trees, use the statcheck utility. Use the following syntax:
statcheck <option> <path>
Specify the path to the statistics tree. By default, it is located at /var/phion/stat. If no option is specified, the statistics files are only checked for corruption (-c option).
Options
You can use the following options with statcheck:
Option | Description |
---|---|
-h |
Prints the help text that describes all possible options. |
-c |
Checks the statistics files for corruption. |
-d |
Enables verbose debug logging. Each data entry is logged. |
-m |
Moves corrupted statistics files to /var/phion/lost+found/stat. |
-r |
Removes corrupted statistic files. |
-s |
Switches top statistics files from a weekly to monthly interval, if necessary. |
-t |
Enables tracing. For example, investigated and uncorrupted files are logged. |
-v |
Displays the version info for the given file. |