Check the Shared Storage

Run the check_engine_start_prereqs.py script to check the contents of the mounted file system and the configuration of the mount point.

About this task

This script is called by MATRIXX Engine start-up scripts. Running the script manually beforehand is optional when you are start after a typical shutdown operation. The script does not check /etc/fstab or /etc/sudoers files, so they must be configured correctly in advance.

Perform this task on the publishing server or pod.

Procedure

  1. Run the check_engine_start_prereqs.py script without any options on all servers or pods in the engine. Replace E1 with the ID of the active engine.
    kubectl exec -it engine_pod_name -n matrixx -- bash --login -c"check_engine_start_prereqs.py E1"
  2. Run the check_engine_start_prereqs.py script to run fsck on the shared file systems and check that the content is consistent with MATRIXX requirements:
    kubectl exec -it engine_pod_name -n matrixx -- bash --login -c "check_engine_start_prereqs.py --active-cluster --check-file-system --check-contents"

    The --check-file-system option must be used before each start of an engine. Without the --check-file-system option, the script only checks that all required partitions can be mounted.

  3. Run the check_engine_start_prereqs.py script without any options to check the status for all processes in the cluster:
    kubectl exec -it engine_pod_name -n matrixx -- bash --login -c "check_engine_start_prereqs.py"
  4. Run the check_engine_start_prereqs.py script with the following options. This runs fsck on the shared file systems:
    kubectl exec -it engine_pod_name -n matrixx -- bash --login -c"check_engine_start_prereqs.py --standby-cluster --check-file-system"
    Note: If a shared file system is not mounted, the script tries to mount the shared storage as read-only for processing servers or pods and as read-write for publishing servers or pods. If the shared storage mount fails, the script fails and the engine does not start.