beautypg.com

5 removing log files, 5 removing log files -50, Removing log files (section 6.5) – HP StorageWorks Scalable File Share User Manual

Page 180

background image

Verifying, diagnosing, and maintaining the system

6–50

6.5 Removing log files

There is an automated process to clear up log files. However, examine the usage of the system directories

and file systems on each server from time to time. The system directories and file systems are as follows:

Administration and MDS servers

On these servers, the operating system image is stored on an internal disk that is divided into two

partitions: a partition for the

/

file system and a partition for the

/var

file system.

The

/var/hpls

file system

This file system is usually mounted by the administration server but can be mounted by the MDS

server. The file system is mounted when the administration service is running. The

/var/hpls

file

system contains the database and event log.

Object Storage Servers

The Object Storage Server images are network-booted and the

/

file system is a RAM disk image.

The internal disk of the server is also mounted as the

/local

file system. This file system is not seen

when you use the

df

(8) command, but is seen if you explicitly specify

/local

as an argument to the

command.

Table 6-5 lists the various files and directories that you may occasionally need to clean up.

Table 6-5

System directories and file systems

Test Component

Version

/var/hpls/evlog/eventlog

This directory contains the system event log. Old records

are cleaned out of the log every day. However, you can

clean out records manually using the

evlogmgr

(8)

command. For example, to delete all events older than 3

days, enter the following command:

# evlogmgr -c ’age < "3d" ’

/var/crash

This directory contains system crash dumps. To clean up

the

/var/crash

directory, delete one of the

subdirectories in the directory.

/var/log/configd

This directory contains the log of the

configd

(8)

daemon. The

configd

(8) daemon compresses log files

that exceed 1MB in size. You can delete these log files

when they are no longer needed.

/var/log/powerd

This directory contains the log of the

powerd

daemon.

The

powerd

daemon only runs on the administration and

MDS Servers. It compresses its log file on a regular basis.

You can delete old compressed log files when they are no

longer needed.

/var/log/hpls_admin

This file contains the start action return codes of the

various services started by the administration service.

Currently, this file is truncated each time the

administration service starts and so does not need to be

cleaned up.