Skip to content

Commit f9c966e

Browse files
authored
M #- Restructured Veeam (#470)
Signed-off-by: priscill <porue@opennebula.io>
1 parent 5f3fcca commit f9c966e

File tree

1 file changed

+38
-34
lines changed
  • content/product/cluster_configuration/backup_system

1 file changed

+38
-34
lines changed

content/product/cluster_configuration/backup_system/veeam.md

Lines changed: 38 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ The minimum hardware specifications are:
150150
- **Disk:** Sufficient storage to hold all active backups. This server acts as a staging area to transfer backups from OpenNebula to the Veeam repository, so its disk must be large enough to accommodate the total size of these backups.
151151

152152
## Veeam Backup Appliance Requirements
153+
153154
When adding OpenNebula as a platform into Veeam, a KVM appliance will be deployed (step 4.2) as a VM into OpenNebula. This appliance has the following minimum requirements:
154155

155156
- **CPU:** 6 cores
@@ -171,32 +172,34 @@ The next step is to create a backup datastore in OpenNebula. This datastore will
171172
{{< alert title="Remember" color="success" >}}
172173
The backup datastore must be created in the backup server configured in step 1. Also, remember to add this datastore to any cluster that you want to be able to back up.{{< /alert >}}
173174

174-
**Rsync Datastore**
175+
2.1. Create the Rsync backup datastore
175176

176177
Here is an example of how to create an Rsync datastore in a Host named `backup-host` and then add it to a given cluster:
177178

178-
179-
# Create the Rsync backup datastore
180-
cat << EOF > /tmp/rsync-datastore.txt
181-
NAME="VeeamDS"
182-
DS_MAD="rsync"
183-
TM_MAD="-"
184-
TYPE="BACKUP_DS"
185-
VEEAM_DS="YES"
186-
RESTIC_COMPRESSION="-"
187-
RESTRICTED_DIRS="/"
188-
RSYNC_HOST="localhost"
189-
RSYNC_USER="oneadmin"
190-
SAFE_DIRS="/var/tmp"
191-
EOF
192-
193-
onedatastore create /tmp/rsync-datastore.txt
194-
195-
# Add the datastore to the cluster with "onecluster adddatastore <cluster-name> <datastore-name>"
196-
onecluster adddatastore somecluster VeeamDS
197-
198-
{{< alert title="SELinux/AppArmor issues" color="success" >}}
199-
SELinux and AppArmor may cause some issues in the backup server if not configured properly. Either disable them or make sure to whitelist the datastore directories (``/var/lib/one/datastores``).
179+
```bash
180+
onedatastore create /tmp/rsync-datastore.txt
181+
182+
cat << EOF > /tmp/rsync-datastore.txt
183+
NAME="VeeamDS"
184+
DS_MAD="rsync"
185+
TM_MAD="-"
186+
TYPE="BACKUP_DS"
187+
VEEAM_DS="YES"
188+
RESTIC_COMPRESSION="-"
189+
RESTRICTED_DIRS="/"
190+
RSYNC_HOST="localhost"
191+
RSYNC_USER="oneadmin"
192+
SAFE_DIRS="/var/tmp"
193+
EOF
194+
```
195+
196+
2.2. Add the datastore to the cluster
197+
```bash
198+
onecluster adddatastore <cluster-name> <datastore-name>
199+
```
200+
201+
{{< alert title="SELinux/AppArmor issues" color="warning" >}}
202+
SELinux and AppArmor may cause issues in the backup server if not configured properly. Either disable them or make sure to provide permissions to the datastore directories (``/var/lib/one/datastores``).
200203
{{< /alert >}}
201204

202205
You can find more details regarding the Rsync datastore in [Backup Datastore: Rsync]({{% relref "../../../product/cluster_configuration/backup_system/rsync.md" %}}).
@@ -209,7 +212,9 @@ If storage becomes a constraint, we recommend cleaning up the OpenNebula Backup
209212

210213
We provide alongside the ovirtapi package the ``/usr/lib/one/ovirtapi-server/scripts/backup_clean.rb`` script to aid in cleaning up the backup datastore. This script can be set up as a cronjob in the backup server with the oneadmin user. The following crontab example will run the script every day at 12:00 am and delete the oldest images until the backup datastore is under 50% capacity:
211214

212-
0 0 * * * ONE_AUTH="oneadmin:oneadmin" MAX_USED_PERCENTAGE="50" /path/to/your/script.sh
215+
```bash
216+
0 0 * * * ONE_AUTH="oneadmin:oneadmin" MAX_USED_PERCENTAGE="50" /path/to/your/script.sh
217+
```
213218

214219
{{< alert title="Remember" color="success" >}}
215220
For the ``/usr/lib/one/ovirtapi-server/scripts/backup_clean.rb`` script to work you need to set the ONE_AUTH environment variable to a valid ``user:password`` pair that can delete the backup images. You may also set the ``MAX_USED_PERCENTAGE`` variable to a different threshold (set to 50% by default).{{< /alert >}}
@@ -243,16 +248,16 @@ Once the package is installed, a ``oneadmin`` user will be created. Please make
243248
{{< alert title="Package dependency" color="success" >}}
244249
In RHEL and Alma environments, you may face issues with the passenger package dependencies (``mod_passenger`` and ``mod_ssl``). You may add the correct repository and install the packages with the following:
245250

246-
curl --fail -sSLo /etc/yum.repos.d/passenger.repo https://oss-binaries.phusionpassenger.com/yum/definitions/el-passenger.repo
247-
dnf install -y passenger mod_passenger mod_ssl
251+
curl --fail -sSLo /etc/yum.repos.d/passenger.repo https://oss-binaries.phusionpassenger.com/yum/definitions/el-passenger.repo
252+
dnf install -y passenger mod_passenger mod_ssl
248253

249254
{{< /alert >}}
250255

251256
### 4. Add OpenNebula to Veeam
252257

253258
To add OpenNebula as a hypervisor to Veeam, configure it as an oVirt KVM Manager in Veeam and choose the IP address of the oVirtAPI module. You can follow the [official Veeam documentation](https://helpcenter.veeam.com/docs/vbrhv/userguide/connecting_manager.html?ver=6) for this step or follow the next steps:
254259

255-
#### 4.1 Add the new virtualization manager
260+
4.1. Add the new virtualization manager
256261

257262
The first step should be to add the ovirtAPI Backup server to Veeam. Head over to **Backup Infrastructure**, then to **Managed Servers**, and then click **Add Manager**:
258263

@@ -278,7 +283,7 @@ As a last step, you can click finish and the new ovirtAPI server should be liste
278283

279284
![image](/images/veeam/hypervisor_added.png)
280285

281-
#### 4.2 Deploy the KVM appliance
286+
4.2. Deploy the KVM appliance
282287

283288
In order for Veeam to be able to perform backup and restore operations, it must deploy a dedicated Virtual Machine to act as a worker. To deploy it, go to the **Backup Infrastructure** tab, then **Backup Proxies**, and click **Add Proxy**:
284289

@@ -310,13 +315,13 @@ In the next step, Veeam will take care of deploying the appliance. Once finished
310315

311316
![image](/images/veeam/appliance_listed.png)
312317

313-
#### 4.3 Verification
318+
4.3 Verification
314319

315320
If everything is set properly, you should be able to see the available Virtual Machines in the **Inventory** tab under the **Virtual Infrastructure** -> **oVirt KVM** section.
316321

317322
![image](/images/veeam/verification.png)
318323

319-
### Logging information
324+
## Logging information
320325

321326
The ovirtapi server will generate logs in the following directory depending on the operating system used:
322327

@@ -329,9 +334,11 @@ If you use the cleanup script provided at ``/usr/lib/one/ovirtapi-server/scripts
329334

330335
To improve image transfer speed, you can increase the number of concurrent processes to better utilize the backup server's resources. This is controlled by the ``PassengerMaxPoolSize`` parameter in your Apache configuration file.
331336

337+
After setting the ``PassengerMaxPoolSize``, you must balance RAM and CPU availability.
338+
332339
### Adjusting the Process Pool
333340

334-
You can find the configuration file in the following locations, depending on your distribution:
341+
The configuration file is available in the following locations depending on your distribution:
335342

336343
* Debian/Ubuntu: ``/etc/apache2/sites-available/ovirtapi-server.conf``
337344
* Alma/RHEL: ``/etc/httpd/conf.d/ovirtapi-server.conf``
@@ -341,9 +348,6 @@ After editing and saving the file, you must restart the webserver for the change
341348
* Debian/Ubuntu: ``sudo systemctl restart apache2``
342349
* Alma/RHEL: ``sudo systemctl restart httpd``
343350

344-
### Adjusting the Process Pool
345-
346-
When setting the ``PassengerMaxPoolSize``, you must balance RAM and CPU availability.
347351

348352
**Memory**
349353

0 commit comments

Comments
 (0)