Nutanix LCM Log Collection Utility
Nutanix LCM Log Collection Utility
LCM
Description:
Purpose
LCM (Life Cycle Manager) Log Collection Utility provides an independent script designed to collect all
the important log files necessary to debug any LCM issue.
NCC log_collector bundle is significant in size and contains multiple files that are irrelevant to LCM. In
contrast, Log Collection Utility collects only the files that are relevant to LCM workflow thereby
reducing the log bundle size and speeding up the process of log collection.
The utility is available in LCM version 2.2 or later by default. It could also be used on earlier versions
of LCM.
Functionality
Caveats
The script cannot pull logs from the node booted into Phoenix when the node's IP address is not
reachable over the network. In that case, apply the respective CVM (Controller VM) IP address to the
Phoenix instance using IPMI following KB 5346 before running the script. Once the network is
restored, /tmp/phoenix.log should also be collected from Phoenix for troubleshooting purposes.
LCM leader
Foundation version
LCM version
Hypervisor type/version
LCM configuration
/etc/nutanix/hardware_config.json
/etc/nutanix/factory_config.json
/home/nutanix/data/logs/genesis.out*
/home/nutanix/data/logs/lcm_ops.out*
/home/nutanix/data/logs/lcm_op.trace
/home/nutanix/data/logs/lcm_wget.log
/home/nutanix/data/logs/foundation*
/home/nutanix/data/logs/catalog.out*
/home/nutanix/data/logs/prism_gateway.log
/home/nutanix/data/logs/hera.out*
/home/nutanix/data/logs/ergon.out*
$ date
$ uptime
$ ifconfig
$ cat /proc/cmdline
$ /usr/sbin/smartctl -a /dev/sdX
$ dmesg -T > dmesg
$ journalctl -u sshd > journalctl_sshd
Solution:
Starting LCM-3.0:
Logbay serves as the primary tool for automated log collection in the event of an LCM failure.
However, for logs related to Phoenix-based failures or Prism Central or Mixed Clusters, will rely on the
LCM log collector.
These logs will be collected separately and later appended to the Logbay bundle.
nutanix@CVM$ /home/nutanix/cluster/bin/lcm/lcm_log_collector
For LCM 2.3.1 or later (automatic log collection)
LCM 2.3.1 automatically triggers the LCM log collector utility when any LCM operation fails.
Log bundle will be created in /home/nutanix/data/log_collector/.
For LCM 2.3.1.1 and later, LCM prints Log location along with the failure message as below. Log into
the CVM IP to fetch the LCM log bundle and upload it to the Support case for review.
If you get the above error, please look for the file python lcm_log_collector.py instead and run the
command shown below:
Log bundle will be created in /home/nutanix directory on the node from which the script is executed,
with the name in the following format:
lcm_logs__{lcm_leader}__{time_stamp}.tar.gz
For LCM 2.2.x, log bundle will be created in /home/nutanix/data/logs/lcm_logs/.
For LCM 2.3 and later, the log bundle will be created in /home/nutanix/data/log_collector/.