OS Precheck Script

Introduction

The DBaaSNow OS Prerequisite Check script is a crucial tool designed to validate that your server meets the necessary prerequisites for installing DBaaSNow. This script performs a comprehensive check on various system parameters to ensure compatibility with the DBaaSNow installation requirements. Running this script before installation helps identify any potential issues or missing configurations, ensuring a smoother installation process.

Purpose

The script performs the following checks:

  • Operating System Version: Ensures compatibility with Red Hat-based Linux distributions (version 8 and 9).
  • Kernel Version: Verifies that the kernel version meets the minimum required version.
  • System Architecture: Confirms that the architecture is x86_64.
  • Memory and CPU: Checks that the system has at least 16 GB of RAM and 8 CPU cores.
  • Package Dependencies: Ensures that required packages (curl, wget, tar) are installed.
  • Network Configuration: Validates network connectivity and DNS configuration.
  • User and Group Validation: Verifies that the user and group dbaasnow exist.
  • Sudo Permissions: Checks if dbaasnow has the appropriate sudo permissions.
  • SELinux and Firewall: Ensures SELinux is disabled and the firewall is inactive.
  • Yum/DNF Repository: Confirms that repository configurations are working.
  • File System and Directories: Checks for required file systems and their configurations.
  • NTP Time Synchronization: Ensures that NTP or Chrony is correctly configured.

Downloading the Script

  1. Download the Script:
    • Obtain the script from the here
    • Ensure you have appropriate permissions to download and execute the script.

Running the Script

  1. Upload the Script to the Server:

    • Use scp or any file transfer method to upload the script to your server.
  2. Make the Script Executable:

    chmod +x dbaasnow_precheck
  3. Run the Script:

    • For a DBaaSNow server:
      ./dbaasnow_precheck dbaasnow
    • For a Target server:
      ./dbaasnow_precheck targetserver
  4. Review the Output:

    • The script will generate output detailing the results of each check. Refer to the screenshots below for examples of the expected output.

Interpreting the Output

The output will contain messages categorized into success and failure. Here’s how to interpret them:

  • Success Messages: Indicate that the system meets the requirements for that particular check. Example:

    - OS Version is supported: Red Hat Enterprise Linux 8.4
    - Kernel version is sufficient: 4.18.0-305.el8.x86_64
    - Architecture is supported: x86_64
  • Failure Messages: Indicate that there are issues that need to be addressed before proceeding with the DBaaSNow installation. Example:

    - Unsupported OS Version: CentOS Linux release 7.9.2009 (Core)
    - Insufficient memory: 8GB
    - Directory /opt/dbaasnow is not empty.

Screenshots of Output

Below are sample screenshots of the script's output for both success and failure scenarios: Output

Next Steps

  • Address Any Failures: If the script reports any failures, resolve those issues as indicated in the failure messages.
  • Re-run the Script: After addressing the issues, re-run the script to ensure all prerequisites are met.
  • Proceed with Installation: Once all checks are successful, proceed with the DBaaSNow installation as per the installation guide.