Prepare Backup Server

Backup servers are servers responsible for storing backups and templates of virtual servers running in the cloud, in order to prevent data loss in the event of failure. Backup servers enable recovery of files, applicaions and databases and so guarantee security of an IT environment. Besides, backup servers are used for scheduling backup jobs and committing associated backup details to the database. Since we have already enabled CloudBoot functionality, we will configure CloudBoot backup servers.

To set up a CloudBoot backup server in your cloud, do the following:

  1. Go to Settings > Compute Resources > Add New CloudBoot Compute Resource.

  2. Select Backup as the CloudBoot resource type.

  3. Select the MAC address of your pre-determined Backup Server and click the Next button. OnApp will query the hardware at this point, so it may take a few minutes to complete.

  4. Add the label as Backup Server.

  5. It is strongly recommended to check Show Advanced Settings and set MTU to 9000. Please note that your switching infrastructure will need to support jumbo frames. If you do not have jumbo frames support, please leave this at 1500.

  6. OnApp will now configure the Backup Server and reboot a few times. Once the Backup Server is online, you will configure the storage network.

  7. Select the MAC address of the correct interface to be used for the storage network and click Assigned to SAN. Click the Next button.








      8. OnApp will perform the final configuration and reboot once more. You will then receive a message ‘‘Compute Resource is successfully configured and ready for operation‘‘. You can now click the Complete button.

      9. Next, add the Backup Server to the Backup Zone. Go to Settings > Backup Server Zones and click the Create Backup Server Zone button.

     10. You can add the label of your choice to the zone, just ensure that the Server Type is set to virtual. Click the Save button.

     11. Go to Settings > Backup Servers and click the Create Backup Server button.

     12. Add the following details:

    • Label - the name of the Backup Server
    • IP Address - the IP Address of the Backup Server Compute Resource
    • Capacity - the total capacity (in GB) that is available for backup storage.
    • Backup Server Zone - select the Backup Server Zone that was created in the previous step.
    • Enabled - set this to true.

    13. Click the Add Backup Server button.

    14. Go to Settings > Compute Zones and click on the compute zone that you will use for your OnApp Cloud. Click on the green Tools menu and click Manage Backup Servers.

     15. Select the Backup Server that you just added from the dropdown list and click the Add Backup Server button.







Configure Backup Server


  1. Log into your OnApp Control Panel via SSH, access the ‘‘OnApp’’ user and connect to the IP Address of your backup server.

    su onapp
    ssh root@10.94.0.101

    (where SSH is the Management IP of your backup server)

  2. Find the identifier for the block device that you will use for backups and template storage by using:

    fdisk –l
  3. Format the block device with your preferred filesystem type, for example:

    mkfs.ext4 /dev/sda
  4. Create a directory for the backup storage, if it doesn’t already exist:

    mkdir /backupstorage
  5. Mount the storage to /backupstorage:

    mount /dev/sda /backupstorage
  6. Create a directory for storing OS templates:

    mkdir /backupstorage/templates
  7. Create a directory for storing backups:

    mkdir /backupstorage/backups
  8. Create symbolic links in /onapp:

    ln -s /backupstorage/backups /onapp/backups
    unlink /onapp/templates
    ln -s /backupstorage/templates /onapp/templates
  9. Go to SettingsCompute Resources > Backup Server. Click on the green Tools menu and Edit Compute Resource. In the custom config section, add the following:

    mkdir /backupstorage
    mount /dev/sda /backupstorage
    ln -s /backupstorage/backups /onapp/backups
    unlink /onapp/templates
    ln -s /backupstorage/templates /onapp/templates
  10. Reboot the Backup Server by clicking on the green Tools menu and Reboot Compute Resource. Once the Backup server is back online, your backup server is ready to use!