User Manual
OpenSM – Subnet ManagerRev 2.2-1.0.1
Mellanox Technologies
170
opensm stores certain data to the disk such that subsequent runs are consistent. The default
directory used is
/var/cache/opensm. The following file is included in it:
•
guid2lid – stores the LID range assigned to each GUID
8.2.3 Signaling
When OpenSM receives a HUP signal, it starts a new heavy sweep as if a trap has been received
or a topology change has been found.
Also, SIGUSR1 can be used to trigger a reopen of
/var/log/opensm.log for logrotate pur-
poses.
8.2.4 Running opensm
The defaults of opensm were designed to meet the common case usage on clusters with up to a
few hundred nodes. Thus, in this default mode,
opensm will scan the IB fabric, initialize it, and
sweep occasionally for changes.
To run
opensm in the default mode, simply enter:
host1# opensm
Note that opensm needs to be run on at least one machine in an IB subnet.
By default, an
opensm run is logged to two files: /var/log/messages and /var/log/
opensm.log. The first file, message, registers only general major events; the second file,
opensm.log, includes details of reported errors. All errors reported in opensm.log should be
treated as indicators of IB fabric health. Both log files should include the message “SUBNET
UP” if opensm was able to setup the subnet correctly.
If a fatal, non-recoverable error occurs, opensm exits.
8.2.4.1 Running OpenSM As Daemon
OpenSM can also run as daemon. To run OpenSM in this mode, enter:
host1# /etc/init.d/opensmd start
8.3 osmtest Description
osmtest is a test program for validating the InfiniBand Subnet Manager and Subnet Administra-
tor.
osmtest provides a test suite for opensm. It can create an inventory file of all available nodes,
ports, and PathRecords, including all their fields. It can also verify the existing inventory with all
the object fields, and matches it to a pre-saved one. See Section 8.3.2.
osmtest has the following test flows:
• Multicast Compliancy test
• Event Forwarding test
• Service Record registration test
• RMPP stress test
• Small SA Queries stress test