Question
How to add a backup server to the cloud.net cloud?
Environment
Cloud.net, all versions.
Answer
To install a static backup server, run the following procedure. We recommend installing CentOS 7 from the minimal CentOS ISO for static backup servers.
1. Add a backup server via the Control Panel user interface:
Go to your Control Panel > Admin > Settings menu and click the Backup Servers icon.
Click the Create Backup Server button.
Fill in the form that appears:
Label - give your backup server a label
IP address - enter the backup server IP address (IPv4)
Backup IP address - add a provisioning network IP address
Capacity - set the backup server capacity (in GB)
Backup server zone - select the backup server zone to which this backup server will be assigned.
Move the Enabled slider to the right to enable the backup server.
2. Click the Add Backup Server button.
Make sure that the backup server is visible in the Control Panel and at this point is shown as inactive.
3. Update your server:
# yum update
4. Download the OnApp repository:
# rpm -Uvh http://rpm.repo.onapp.com/repo/onapp-repo-6.5.noarch.rpm
5. Install the OnApp Backup Server installer package:
# yum install onapp-bk-install
6. Run the installer.
# sh /onapp/onapp-bk-install/onapp-bk-install.sh
7. Configure the backup server for your cloud. This step is also required for the SNMP statistics receiver configuration:
# /onapp/onapp-bk-install/onapp-bk-config.sh -h <CP_HOST_IP> -p <BK_HOST_IP>
Both options -h, and -p are mandatory ones. To see all available configuration options: #/onapp/onapp-hv-install/onapp-hv-config.sh -?
|
8. Install CP's SSH public key for the backup server to provide SSH key-based authentication.
Use one of the methods below.
a) Insert the public key via UI.
b) Assuming the first computer resources have been already added to the cloud via Infra Wizard.
Run the following shell script on the backup server:
# mkdir -p ~/.ssh && touch ~/.ssh/authorized_keys && chmod -R go= ~/.ssh && ssh root@<ip_compute_resource> -o StrictHostKeyChecking=no "cat ~/.ssh/authorized_keys" >> ~/.ssh/authorized_keys
Replace <ip_compute_resource> with the IP of one of the existing configured compute resources.
In case you have some difficulties with this please send a request to the cloud.net support.
Further steps
Format and mount the local backup storage:
- SSH to the backup server
- Format the storage with your preferred filesystem type, e.g.:
bash#> mkfs.ext4 /dev/xxx
Replace xxx with the real device. - Make a folder for backups if it does not exist yet:
bash#> mkdir /backupstorage
-
Mount the storage to /onapp/back
ups :
bash#> mount /dev/xxx /backupstorage
- Add to /etc/fstab the following line :
/dev/xxx /backupstorage ext4 defaults 0 0
- Make a folder for storing templates:
bash#> mkdir /backupstorage/templates
- Make a folder for storing backups:
bash#> mkdir /backupstorage/backups
- Create symbolic links in /onapp :
bash#> ln -s /backupstorage/backups /onapp/backups
bash#> unlink /onapp/templates
bash#> ln -s /backupstorage/templates /onapp/templates
bash#> ln -s /onapp/tools/recovery /data
Add the backup server to one of the existing Backup Server Zone or create a new one.
Assign the backup server to the Compute Zone or Compute resource.
Comments
0 comments
Please sign in to leave a comment.