HP XC System Software Release Notes for Version 2.1

6
System Administration and Management
Notes
This chapter contains notes about system administration and management
commands and tasks. Perform these tasks only when necessary.
6.1 Running the dgemm Utility
The dgemm utility does not run on all supported interconnects. Therefore, it is
preferable to run the dgemm utility on the Administrative Network instead of the
interconnect.
You can do this by invoking dgemm with the following options:
# mpirun -prot -TCP -srun -v -p lsf -n max /opt/hptc/contrib/bin/dgemm.x
6.2 Log Files Must Be Rotated and Compressed
You must rotate and compress the log files in the /hptc_cluster/adm/logs
directory. There is no generic answer for the size and frequency of the log rotation,
but as a rule of thumb, consider sizing the logs based on some percentage of the
overall disk that contains them.
For example, you might consider a methodology that takes the size of the
/hptc_cluster partition and allocates 30 percent of that space to logs. You might
then decide you want to keep the last five logs, rotated at some preset size.
The following example demonstrates how to set up the log rotate facility:
1. Add the following lines to the end of the /etc/logrotate.d/syslog file
on the head node:
/var/log/n16 /hptc_cluster/adm/logs/consolidated.log \ 1
/hptc_cluster/adm/logs/nodenaming_prefix*{
rotate 5
create
compress
size=max_size_of_file
postrotate
/bin/kill -HUP ‘cat /var/run/syslog-ng.pid 2> /dev/null‘ 2> \
2
/dev/null || true
endscript
}
1 Because this line is too long to fit on a printed page, the backslash
character (\) indicates line continuation. You must enter the first and
second lines of this example on one continuous line.
In this line, n16 is the name of the head node; replace n16 with the name
of your head node.
2 The backslash character indicates line continuation. You must enter this
line and the next line on one continuous line.
Follow these guidelines to determine the values required for the entries in
the syslog file:
System Administration and Management Notes 6-1