Redgate Clone

Step 2 - Installation pre-requisites checks

You can check your machine against the pre-requisites by running our pre-requisites check script.

This page provides the pre-requisites checks necessary to deploy Redgate Clone.

This should be run after you have your requirements in place.

Contents

Pre-requisites checks

In order to ensure a smooth installation process, you should first verify that you have an environment that will be able to accommodate Redgate Clone.

You can do so by running our pre-requisite check script with the following command:

curl -sSL https://rd.gt/3RL6ioU | sudo bash

This script will verify:

  • Disk requirements
  • External network access
  • File share setup
  • TLS setup
  • Kernel configuration

You can also check your environment manually by following the steps outlined below.

Checking disk requirements

Redgate Clone has very specific requirements for disks and associated data storage.

System (OS) disk requirements

Requirements

Our primary node needs a system disk with the following requirements:

How to verify


We've provided you with a script that can help you identify your ceph storage disk. 

You can download it Ceph storage disk helper.


Here is what to do to verify it manually and understand what to look for.

  1. ssh into the primary node host machine where you will be installing Redgate Clone.
  2. Run lsblk to find out where your system disk is. The following example shows our system disk is 128GB in size and mounted to sda (there is also a 1TB disk volume storage disk mapped to sdb).
  3. Run sudo parted -l to get the type of partition table being used in the volume mount for the system disk. Here's an example of a system disk mapped to sda and using GPT::


Note for logical volume partitions (e.g. VMs created with RHEL LVM images)

How do you know if LVM is installed:  Run "lvm pvdisplay" as root (or with sudo), it will show any physical volumes you have which are setup with LVM.

If you are running an LVM based image you may have your filesystems partitioned inside volume groups, which will show up as below when running lsblk :

By default there should be enough space allocated to your root filesystem directories, but it's important that there is adequate space available for the /var directory as that is most likely to grow to above 30GB with an install.

In order to resize these you can run the following commands:

  1. sudo growpart /dev/sda <partition number>  – If you have free space unallocated on the physical disk (in this case /dev/sda has 512G but only ~64GB is being allocated to /dev/sda4), then you can use this command to grow the partition and use up the unallocated space. The partition number is whatever partition has your root filesystem, in this case 4.
  2. sudo lvresize -L 50G /dev/rootvg/varlv  - This will resize the logical volume /dev/rootvg/varlv  to have 50GB of space. You can allocate more depending on your free space. You will likely need to have around 5-10GB for the other logical volumes in a typical use case (usrlv, tmplv, homelv, and rootlv).
  3. sudo xfs_growfs /dev/rootvg/varlv - This will grow the filesystem itself so that it can use the free space on the underlying logical volume. You will need to do this for all of the volumes you have edited in step 2.

Attached storage disk requirements

Requirements

The requirements for attached storage disks are:

  • Empty block device disk – e.g. an Azure managed disk or AWS EBS.
  • Empty means a raw device without a filesystem but that can have raw partitions (although this is not recommended as they will be wiped out automatically). In short either:
    • A raw device (no partitions or formatted filesystems); or
    • A raw device with one or more raw partitions (but no formatted filesystem)
  • Assigned volume mount – e.g. sdb (this will be needed for the installation below)

How to verify

  1. Attach a raw block device disk to your target machine.
    1. Take hold of the size of the disk you attached.
  2. ssh into the machine with the attached disk.
  3. Check the assigned volume mount.
    1. Run lsblk in the terminal.
    2. Find the disk you just attached (using the size as a hint), taking note of its mapping in the form of sd[a-z]. Below is an example showing a 128GB system disk mapped to sda and a 1TB disk volume storage disk mapped to sdb.
      1. NOTE: You should also have the system disk in the list, so take care not to confuse the two.
  4. Confirm the volume storage disk has no associated file system.
    1. Run lsblk -f in the terminal.
    2. If the FSTYPE field is not empty, there is a filesystem on top of the corresponding device. We cannot use this volume storage disk if that is the case. In the example below, our volume storage sdb disk can be safely used:

Checking external network access

Requirements

Access to external network (or at least the ports specified in the Step 1 - Installation requirements.

Problems with external network access could be down to certificates, proxy servers, etc. 

How to verify

  1. ssh into the primary node host machine where you will be installing Redgate Clone.
  2. Confirm you can access an external site: curl -i https://kurl.sh/

File share setup

Requirements

In order to be able to create data images from database backups you will need to setup a file share (SMB or NFS) and provide the credentials to our configuration tool during or after the install.

If you don't have one setup, you will still be able to use the product but only to create empty data images, which can be a limiting factor.

Please check our Backup Storage page for more information (i.e. what details will be required).

How to verify

Follow verifying SMB file share connection parameters guide, to understand how to verify the SMB file share credentials.

Kernel configuration

Requirements

We have observed some issues with kernel level configuration on the host machine causing errors in the cluster (for example Insufficient async disk I/O kernel resources, "Too many open files").

In order to avoid this it may be necessary to increase some values in the system configuration.

How to verify

  1. Run sysctl fs.aio-max-nr  and make sure the value is at least 1048576.
  2. Run sysctl fs.inotify.max_user_instances and make sure the value is at least 512.

If the values are not correct, then you can follow the instructions in the troubleshooting documentation for the errors linked above to increase them.

Where to next?

Please proceed to Step 3 - Installing Redgate Clone.



Didn't find what you were looking for?