Restoring Log with System Logs

Incorrect use of log with system logs is characterized by absence of the latest records about events in the System Logs section.

To restore log with system logs:

  1. Restart mobile platform components on the server or in the cluster if a fault-tolerant cluster based on OKD/OCP is used:

  1. Check the volume of allocated system hard disk resources for Elasticsearch:

The Capacity column contains the volume of allocated system resources, the Used column contains the volume of used system resources.

If required, add more system resources for the hyperhive_elasticsearch_1 container on mobile platform server using operating system tools or using virtualization.

To add more system resources PV of the fmp-elasticsearch-data pod in the cluster:

IMPORTANT. Select the time with minimum cluster user load because adding the volume of system resources blocks execution of background tasks. If required, export logs to file. After executing the operations with the pod, system logs will be deleted.

    1. Stop writing of logs in Elasticsearch. To do this, decrease the number of fmp-celeryworker pods to zero.

    2. Decrease the number of fmp-elasticsearch-data pods to zero.

    3. Determine which PV are used by fmp-elasticsearch-data pods and delete Persistent Volume Claim (PVC) for them.

    4. Increase the volume of released PV to 30G.

    5. Write storageClass named es-data for increased PV.

    6. Write storageClass named es-data for fmp-elasticsearch-data pods:

spec:
 volumeClaimTemplates:
   spec:
     storageClassName: es-data

elasticsearch:
 data:
    persistence:
      storageClass: es-data

    1. Increase the number of fmp-elasticsearch-data pods to 3 and make sure that all pods are started and successfully create new PVC based on the updated PV.

    2. Prepare Elasticsearch. To do this, go to the terminal of one of the fmp-dashboard pods and start the init.sh script from any place.

    3. Resume writing of logs in Elasticsearch. To do this, restore the number of fmp-celeryworker pods to 1.

After executing the operations, the log with system logs is restored.

See. also:

System Error Monitoring