Viewing Logs
Examine the Memory Machine log files to troubleshoot errors – for example, to determine why a license didn't load.
About this task
The file path of the Memory Machine logs is configured in the Memory Machine configuration file, mvmalloc.yml. If the configuration has not been changed from the default, the log files are located in /var/log/memverge.
Note: You can change the malloc_log file location for any
application instance by starting the instance with a configuration file that
specifies a new location. Unless there is a compelling reason to do otherwise,
MemVerge recommends that you log all instances to the same location to avoid
confusion.
Procedure
-
List the log file directory. For example:
# ls -l /var/log/memverge/ total 30548340 -rwxrwx---. 1 mvmm mvmm 0 Aug 26 03:09 malloc_log -rw-r--r--. 1 root root 8192 Sep 9 11:06 mmagent.log -rw-r--r--. 1 root root 159744 Sep 9 11:06 mmctl.log -rwxrwx---. 1 mvmm mvmm 832 Aug 31 15:52 mvmallocd_log -rwxrwx---. 1 mvmm mvmm 0 Aug 26 03:09 mvsnapd_log ...
where:- malloc_log
- is the MemVerge TMS log for the Memory Machine non-root user mvmm.
- mmagent.log
- is the log for the Memory Machine Agent process that communicates with the management server.
- mmctl.log
- is the log for the Memory Machine Memory Machine Management Service.
- mvmallocd_log
- is the DPME information log.
- mvsnapd_log
- is the log for the Memory Machine snapshot service.
-
View an individual logfile using a text editor or command-line utility. For
example:
# less /var/log/memverge/mvmallocd_log -----NEW MVMLOG FILE 2020-05-27 14:46:39 License loaded successfully. Startup: NO_ERROR Chunk Usage: (187 / 64508) dax device capacity 135283081216, less than license allowed capacity 8796093022208, set capacity limit to 135283081216 Open /var/log/memverge/mvmallocd.evt.1590615999.38927ae4: NO_ERROR service starting Unlock mem-elIAAMbhwV7z8vPITVL+Sw==: DPME_NO_ERROR ...
-
The /var/log/messages file contains OS level messages that
may also help in troubleshooting.
View the messages log:
# ls /var/log/messages -rw-------. 1 root root 458623 Mar 12 13:12 /var/log/messages
-
View individual application instance log files. The name of an instance
logfile depends on the logging parameter used in the application configuration
file, mvmalloc.yml:
If the LogNamePrefix parameter is used, each instance writes to its own log file named as follows:
prefix_command_pid_timestamp
where- prefix
- is the logfile prefix assigned to the LogNamePrefix parameter
- command
- is the command-line name of the application
- pid
- is the process ID of the instance
- timestamp
- represents the time that the process was started
If the LogName parameter is used, all processes that use that application configuratio file write to the file path specified in the parameter.