Symptoms:
/var/log/loginsight/runtime.log
file, you see entries similar to:
[2017-06-19 16:30:48.489+0000] ["main"/IP_Address INFO] [com.vmware.loginsight.daemon.LogInsightDaemon] [Failed to start Cassandra Server: Cassandra failed to start.] [2017-06-19 16:30:48.489+0000] ["main"/IP_Address INFO] [com.vmware.loginsight.daemon.LogInsightDaemon] [Exception during start cassandra database] [2017-06-19 16:30:48.489+0000] ["main"/IP_Address INFO] [com.vmware.loginsight.daemon.LogInsightDaemon] [Ended start cassandra database at 18396 ms after launch, took 11575 ms] [2017-06-19 16:30:48.490+0000] ["main"/IP_Address FATAL] [com.vmware.loginsight.daemon.LogInsightDaemon] [Error starting services] com.vmware.loginsight.daemon.LogInsightDaemon$StartupFailedException: Daemon startup failed: Failed to start Cassandra Server: Cassandra failed to start.. ... Caused by: java.lang.Exception: Cassandra failed to start.
ERROR [main] 2017-06-19 16:30:47,802 CassandraDaemon.java:638 - Unable to verify sstable files on disk java.nio.file.FileSystemException: /storage/core/loginsight/cidata/cassandra/data/logdb/vimevent_context/la-80366-big-CompressionInfo.db: Input/output errorNote: Copy the path of the corrupted file for use in the resolution as it will vary.
ls -lthr /storage/core/loginsight/cidata/cassandra/data/logdb/vimevent_context ls: cannot access la-80366-big-CompressionInfo.db: Input/output error -????????? ? ? ? ? ? la-80366-big-CompressionInfo.db
Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.
VMware Aria Operations for Logs 8.x (previously vRealize Log Insight)
systemctl stop loginsight
ERROR [main] 2017-06-19 16:30:47,802 CassandraDaemon.java:638 - Unable to verify sstable files on disk java.nio.file.FileSystemException: /storage/core/loginsight/cidata/cassandra/data/logdb/vimevent_context/la-80366-big-CompressionInfo.db: Input/output errorIn this case, the corruption is in the /storage/core/loginsight/cidata/cassandra/data/logdb/vimevent_context location.
md /storage/core/loginsight/corrupted_files mv [location] /storage/core/loginsight/corrupted_filesNote: Replace [location] with the location identified in Step 2. Example:
mv /storage/core/loginsight/cidata/cassandra/data/logdb/vimevent_context /storage/core/loginsight/corrupted_files
mkdir [location]Note: replace [location] with the location identified in Step 2. Example:
mkdir /storage/core/loginsight/cidata/cassandra/data/logdb/vimevent_context
systemctl start loginsightNote: This starts the cassandra service first and then the logInsight daemon.
systemctl stop loginsight
umount /storage/core
/sbin/fsck /dev/mapper/data-coreNote: Scanning and repairing the file system may take hours for a large disk, plan the downtime accordingly.
mount /storage/core
systemctl start loginsight