View and Aggregate LMT Data

View and aggregate Lustre monitoring tool (LMT) data on direct-attached Lustre (DAL) installations.

View Data

There are two ways to view data provided by Lustre monitoring tool (LMT). Data can be viewed live with ltop. Historical data can be viewed from the MySQL database with lmtsh. These utilities are available only on the LMT server. For CLE with direct attached Lustre (DAL), the LMT server is the management server (MGS).

For help using ltop or lmtsh, see man page, or view usage information using the --help option.

Because the data is held in a MySQL database on the LMT server, the MySQL database can be directly accessed using MySQL commands if more control is needed over how the data is presented.

Aggregate Data

DAL configuration of the data aggregation cron job is handled through the IMPS configurator. LMT provides scripts which aggregate data into the MySQL database aggregate tables. To run the aggregation scripts, type the following:
mgs# /usr/share/lmt/cron/lmt_agg.cron

The first time the command is run will take longer than subsequent executions. Use lmtsh to see the tables populated by the aggregation scripts. The aggregation script can be set up to run as a cron job.

To set up the cron job:

As root, type crontab -e and then enter:
0 * * * * /usr/share/lmt/cron/lmt_agg.cron
This configures the lmt_agg.cron job to run every hour, on the hour.