Configure the LMT GUI

Configure the Lustre monitoring tool (LMT) graphic user interface (GUI) for CLE 6.x.

The Lustre monitoring tool (LMT) graphical user interface (GUI) package is installed on login nodes. It contains a GUI called lwatch and a command-line tool for viewing live data called lstat. The configuration file ~/.lmtrc must be set up prior to using either tool.

  1. Login to the MGS node as root.
  2. Edit the sample configuration file /usr/share/doc/packages/lmt-gui/sample.lmtrc to reflect the site specific LMT configuration—where db_name is set to the name of the MySQL database used by LMT, that is, filesystem_fsname.
    # LMT Configuration File - place in $HOME/.lmtrc
    
    filesys.1.name=<insert_fsname_here>
    filesys.1.mountname=<insert_/path/to/mountpoint_here>
    filesys.1.dbhost=<insert_db_host_ip_here>
    filesys.1.dbport=<insert_db_port_here>
    filesys.1.dbuser=<insert_db_client_username_here>
    # Leave dbauth blank if the given client has no password
    filesys.1.dbauth=<insert_db_client_password_here>
    filesys.1.dbname=<insert_db_name_here>
  3. Save the updated .lmtrc as ~/.lmtrc.
    Here is an example for configuring access to the LMT database for the file system named scratch_1, which was set up so that the user lwatchclient has no password. In this example, access is being configured on the LMT server node, so the database is local. Thus, the db_host is localhost.
    filesys.1.name=scratch_1
    filesys.1.mountname=/lus/scratch_1
    filesys.1.dbhost=localhost
    filesys.1.dbport=3306
    filesys.1.dbuser=lwatchclient
    filesys.1.dbauth=
    filesys.1.dbname=filesystem_scratch_1

    After setting up ~/.lmtrc, lwatch and lstat can be run on this node. To run the GUI from a remote node, the MySQL database must be configured to allow remote access for the read-only user, lwatchclient. See Configure LMT MySQL for Remote Access.