NetBackup102 AdminGuide OpenStack
NetBackup102 AdminGuide OpenStack
Administrator's Guide
Release 10.2
NetBackup™ for OpenStack Administrator's Guide
Legal Notice
Copyright © 2023 Veritas Technologies LLC. All rights reserved.
Veritas and the Veritas Logo are trademarks or registered trademarks of Veritas Technologies
LLC or its affiliates in the U.S. and other countries. Other names may be trademarks of their
respective owners.
This product may contain third-party software for which Veritas is required to provide attribution
to the third party (“Third-party Programs”). Some of the Third-party Programs are available
under open source or free software licenses. The License Agreement accompanying the
Software does not alter any rights or obligations you may have under those open source or
free software licenses. Refer to the Third-party Legal Notices document accompanying this
Veritas product or available at:
https://www.veritas.com/about/legal/license-agreements
The product described in this document is distributed under licenses restricting its use, copying,
distribution, and decompilation/reverse engineering. No part of this document may be
reproduced in any form by any means without prior written authorization of Veritas Technologies
LLC and its licensors, if any.
The Licensed Software and Documentation are deemed to be commercial computer software
as defined in FAR 12.212 and subject to restricted rights as defined in FAR Section 52.227-19
"Commercial Computer Software - Restricted Rights" and DFARS 227.7202, et seq.
"Commercial Computer Software and Commercial Computer Software Documentation," as
applicable, and any successor regulations, whether delivered by Veritas as on premises or
hosted services. Any use, modification, reproduction release, performance, display or disclosure
of the Licensed Software and Documentation by the U.S. Government shall be solely in
accordance with the terms of this Agreement.
Veritas Technologies LLC
2625 Augustine Drive.
Santa Clara, CA 95054
http://www.veritas.com
Technical Support
Technical Support maintains support centers globally. Technical Support’s primary
role is to respond to specific queries about product features and functionality. The
Technical Support group also creates content for our online Knowledge Base. The
Technical Support group works collaboratively with the other functional areas within
the company to answer your questions in a timely fashion.
Our support offerings include the following:
■ A range of support options that give you the flexibility to select the right amount
of service for any size organization
■ Telephone and/or Web-based support that provides rapid response and
up-to-the-minute information
■ Upgrade assurance that delivers software upgrades
■ Global support purchased on a regional business hours or 24 hours a day, 7
days a week basis
■ Premium service offerings that include Account Management Services
For information about our support offerings, you can visit our website at the following
URL:
www.veritas.com/support
All support services will be delivered in accordance with your support agreement
and the then-current enterprise technical support policy.
Customer service
Customer service information is available at the following URL:
www.veritas.com/support
Customer Service is available to assist with non-technical questions, such as the
following types of issues:
■ Questions regarding product licensing or serialization
■ Product registration updates, such as address or name changes
■ General product information (features, language availability, local dealers)
■ Latest information about product updates and upgrades
■ Information about upgrade assurance and support contracts
■ Advice about technical support options
■ Nontechnical presales questions
■ Issues that are related to CD-ROMs, DVDs, or manuals
Support agreement resources
If you want to contact us regarding an existing support agreement, please contact
the support agreement administration team for your region as follows:
Japan [email protected]
Contents
include changed blocks of data since the last backup, our backup processes
are efficient and stores backup images efficiently on the backup media.
■ Faster and reliable recovery. When your applications become complex that snap
multiple VMs and storage volumes, our efficient recovery process brings your
application from zero to operational with the click of a button.
■ Easy migration of policies between clouds. NetBackup for OpenStack captures
all the details of your application and hence our migration includes your entire
application stack without leaving anything for guess work.
■ Through policy and automation lower the total cost of ownership. Our
tenant-driven backup process and automation eliminates the need for dedicated
backup administrators, and improves your total cost of ownership.
Backup as a Service
Figure 1-1 Data protection project providing Backup as a Service
Your Applications
APIs
OpenStack Dashboard
NetBackup™
for OpenStack
Keystone Nova Neutron Glance Cinder
Introduction 15
NetBackup for OpenStack Architecture
Main Components
Figure 1-2 NetBackup for OpenStack architecture overview
NetBackup for CONTROLLER 1 CONTROLLER 2 CONTROLLER 3
OpenStack
VM VM VM VM VM VM VM VM VM VM VM VM
Service Endpoints
Figure 1-3 Service endpoints overview
NetBackup
RabbitMQ Neutron internal URL
Neutron API Compute Node 2
NBOS VM
(Additional Node 2)
Nova internal URL OpenStack Rabbit MQ
Nova API Compute Node n
NFS Traffic
(Internal Network)
ex: 10.0.0.0/24
NFS
Network topology
Figure 1-4 Example network topology
eth1 eth1
CEPH-1 CEPH-2
eth1 eth1 eth1
CINDER STORAGE
Public Network
OpenStack Tenant Network
OpenStack Internal Network
This figure represents a typical network topology. NetBackup for OpenStack exposes
its public URL endpoint on the public network and NetBackup for OpenStack virtual
appliances and datamovers typically use either the internal network or dedicated
backup network for storing and retrieving backup images from the backup store.
Chapter 2
Deploying NetBackup for
OpenStack
This chapter includes the following topics:
■ Requirements
Requirements
NetBackup for OpenStack has four main software components:
1. NetBackup for OpenStack ships as a QCOW2 image. User can instantiate one
or more VMs from the QCOW2 image on standalone KVM boxes.
2. NetBackup for OpenStack API is a python module that is an extension to Nova
API service. This module is installed on all OpenStack controller nodes.
Deploying NetBackup for OpenStack 19
Requirements
The recommended size of the VM for the NetBackup for OpenStack Appliance is:
Resource Value
vCPU 4
RAM 24 GB
The qcow2 image itself defines the 40GB disk size of the VM.
In the rare case of the NetBackup for OpenStack VM database or log files getting
larger than 40GB disk, contact or open a ticket with Veritas customer support to
attach another drive to the NetBackup for OpenStack VM.
Software Requirements
NetBackup for OpenStack has been tested and verified
Software Version
CentOS 7.9
■ NetBackup for OpenStack appliance needs access to all endpoints of one type
Public
Firewall
internal
admin
Public
Firewall
internal
admin
backup
Deploying NetBackup for OpenStack 24
NetBackup for OpenStack network considerations
You can combine networks as necessary. As long as the required network access
is available NetBackup for OpenStack works.
Public 1
Firewall
Public 2
internal
WWW
admin
storage
deployment
Firewall
The second example is from a financial institute that wanted to be sure that the
OpenStack Users have no direct uncontrolled network access to the OpenStack
infrastructure. Following this example requires additional work as the internal
HA-Proxy needs to be configured to correctly translate the API calls towards the
NetBackup for OpenStack
Deploying NetBackup for OpenStack 25
NetBackup for OpenStack network considerations
Backup
HA-Proxy Extern
HA-Proxy Intern
WWW
Target
Public
Net
Horizon
backup
internal
admin
Out of Band
OoB
The third example is from a service company that was forced to treat NetBackup
for OpenStack as an external 3rd party solution, as we require a virtual machine
running outside of OpenStack. This kind of network configuration requires good
planning on the NetBackup for OpenStack endpoints and firewall rules.
Mgmt_ControlPlane
Backup
Target
Mgmt_Server
Mgmt_API
Mgmt_Storage
Firewall
Net
Mgmt_External_API
Mgmt_Tenant
Prod_Storage
Tenant Quotas
NetBackup for OpenStack uses Cinder snapshots for calculating full and incremental
backups. For full backups, NetBackup for OpenStack creates Cinder snapshots for
all the volumes in the backup job. It then leaves these Cinder snapshots behind for
calculating the incremental backup image during next backup. During an incremental
backup operation it creates new Cinder snapshots, calculates the changed blocks
between the new snapshots and the old snapshots that were left behind during the
full/previous backups. It then deletes the old snapshots but leaves the newly created
snapshots behind. So, it is important that each tenant that avails NetBackup for
OpenStack backup functionality has sufficient Cinder snapshot quotas to
accommodate these additional snapshots. The guideline is to add two snapshots
for every volume that is added to backups to volume snapshot quotas for that tenant.
You may also increase the volume quotas for the tenant by the same amount
because NetBackup for OpenStack briefly creates a volume from snapshot to read
data from the snapshot for backup purposes. During a restore process, NetBackup
for OpenStack creates additional instances and Cinder volumes. To accommodate
restore operations, a tenant should have sufficient quota for Nova instances and
Cinder volumes. Otherwise restore operations result in failures.
Needed tools
To create the cloud-init image it is required to have genisoimage available.
The first file is called meta-data and contains the information about the network
configuration. Following is an example of this file.
dns-nameservers 11.11.0.51
local-hostname: nbos-controller.domain.org
The second file is called user-data and contains little scripts and information to
set up for example the user passwords. Following is an example of this file.
You can spin up the NetBackup for OpenStack appliance without a cloud-init
iso-image. It spins up with default values.
or
touch /etc/cloud/cloud-init.disabled
■ NFS
Need NFS share path
■ Amazon S3
■ S3 Access Key
■ Secret Key
■ Region
■ Bucket name
Installing on RHOSP
The Red Hat OpenStack Platform Director is the supported and recommended
method to deploy and maintain any RHOSP installation.
NetBackup for OpenStack integrates natively into the RHOSP Director. Manual
deployment methods are not supported for RHOSP.
Deploying NetBackup for OpenStack 31
Installing NetBackup for OpenStack Components
3 Update overcloud roles data file See “Updating the overcloud roles data file to
to include NetBackup for include NetBackup for OpenStack services”
OpenStack services. on page 33.
cd /home/stack
cp <image location>/nbos-cfg-scripts.tar.gz /home/stack
gunzip /home/stack/nbos-cfg-scripts.tar.gz
tar xvf /home/stack/nbos-cfg-scripts.tar
cd nbos-cfg-scripts/redhat-director-scripts/<RHOSP_RELEASE_DIRECTORY>/
■ rhosp16.2
cp s3-cert.pem /home/stack/nbos-cfg-scripts/
redhat-director-scripts/<RHOSP_RELEASE_DIRECTORY>/puppet/nbos/files/
./upload_puppet_module.sh
Deploying NetBackup for OpenStack 33
Installing NetBackup for OpenStack Components
If the roles_data.yaml is not customized, you can find it on the undercloud at the
following location:
/usr/share/openstack-tripleo-heat-templates/roles_data.yaml
'OS::TripleO::Services::nbosdmapi'
'OS::TripleO::Services::nbosdm'
NetBackup for OpenStack uses the local registry on the undercloud to house
packages.
Deploying NetBackup for OpenStack 34
Installing NetBackup for OpenStack Components
NetBackup for OpenStack provides a shell script, which pushes the containers to
the undercloud and updates the nbos_env.yaml.
cd
/home/stack/nbos-cfg-scripts/redhat-director-scripts/<RHOSP_RELEASE_DIRECTORY>//scripts
■ In case of S3
■ S3 type {amazon_s3/ceph_s3}
■ S3 Access key
■ S3 Secret key
■ S3 Region name
■ S3 Bucket
■ S3 Endpoint URL
■ S3 Signature Version
■ S3 Auth Version
■ S3 SSL Enabled {true/false}
■ S3 SSL Cert
resource_registry:
OS::TripleO::Services::nbosdm: ../services/nbosdm.yaml
OS::TripleO::Services::nbosdmapi: ../services/nbosdmapi.yaml
# NOTE: If there are addition customizations to the endpoint map
(e.g. for
# other integratiosn), this will need to be regenerated.
Deploying NetBackup for OpenStack 36
Installing NetBackup for OpenStack Components
OS::TripleO::EndpointMap: endpoint_map.yaml
parameter_defaults:
## S3 access key
S3AccessKey: ''
## S3 secret key
S3SecretKey: ''
## S3 region, if your s3 does not have any region, just keep the
Deploying NetBackup for OpenStack 37
Installing NetBackup for OpenStack Components
parameter as it is
S3RegionName: ''
## S3 bucket name
S3Bucket: ''
## S3 signature version
S3SignatureVersion: 'default'
## S3 Auth version
S3AuthVersion: 'DEFAULT'
2. roles_data.yaml
3. Use correct NetBackup OpenStack endpoint map file as per available Keystone
endpoint configuration
Instead of tls-endpoints-public-dns.yaml file, use
environments/nbos_env_tls_endpoints_public_dns.yaml
Deploying NetBackup for OpenStack 38
Installing NetBackup for OpenStack Components
Warning: If the containers are in restarting state or not listed by the following
command then your deployment is not done correctly. Please recheck if you followed
the complete documentation.
8787/nbos-horizon-plugin:9.0-rhosp16.1 kolla_start
5 days ago Up 5 days ago horizon
## Execute the shell script to change 'nova' user and group id to '42436'
$ ./home/stack/nova_userid.sh
## Ignore any errors and verify that 'nova' user and group id has
changed to '42436'
$ id nova
uid=42436(nova) gid=42436(nova) groups=42436(nova),990(libvirt),36(kvm)
Deploying NetBackup for OpenStack 40
Installing NetBackup for OpenStack Components
tail -f /var/log/containers/nbosdmapi/nbosdmapi.log
tail -f /var/log/containers/nbosdm/nbosdm.log
2 Change the nova user ID on the See “Changing the nova user ID on the
NetBackup for OpenStack Nodes NetBackup for OpenStack Nodes”
on page 42.
5 Verify the NetBackup for OpenStack See “Verifying the NetBackup for
deployment OpenStack deployment” on page 47.
'verbose': {
'format': '%(asctime)s %(process)d %(levelname)s %(name)s %(message)s'
},
■ Handlers: Add a file handler to write log information to the log file.
'file': {
'level': 'DEBUG',
'class': 'logging.FileHandler',
'filename': '/var/log/horizon/horizon.log',
'formatter': 'verbose',
},
■ Loggers: Update each OpenStack component in use with the file handler
information to the log file.
Deploying NetBackup for OpenStack 42
Installing NetBackup for OpenStack Components
'horizon': {
'handlers': ['file'],
'level': 'DEBUG',
'propagate': False,
}
It is recommended that you enable log rotation to restrict the volume of the log data
to avoid overflowing the record store. For more information about logging and
configuring log rotation, see Django documentation.
#./nova_userid.sh
5. Verify that nova user and group ID has changed to the desired value.
#id nova
cd nbos-cfg-scripts/
cp -R ansible/roles/* /opt/openstack-ansible/playbooks/roles/
cp ansible/main-install.yml /opt/openstack-ansible/playbooks/
os-nbos-install.yml
cp ansible/environments/group_vars/all/vars.yml /etc/openstack_
deploy/user_nbos_vars.yml
- import_playbook: os-nbos-install.yml
container_skel:
nbosdmapi_container:
belongs_to:
- nbos-nbosdmapi_containers
contains:
- nbosdmapi_api
physical_skel:
nbos-nbosdmapi_containers:
belongs_to:
- all_containers
nbos-nbosdmapi_hosts:
belongs_to:
- hosts
#nbosdmapi
nbos-nbosdmapi_hosts: # Add controller details in this section as
# nbos-dmapi is resides on controller nodes.
infra1: # Controller host name
ip: <controller_ip> # IP address of controller
infra2: # For multiple controller nodes add controller node
# details in same manner as shown in infra2
ip: <controller_ip>
#nbos-datamover
nbos_compute_hosts: # Add compute details in this section as nbosdm
# resides on compute nodes.
infra-1: # Compute host name
Deploying NetBackup for OpenStack 45
Installing NetBackup for OpenStack Components
Append the required details like NetBackup for OpenStack Appliance IP address,
NetBackup for OpenStack package version, OpenStack distribution, snapshot
storage backend, SSL related information and so on.
###details of nbosdmapi
##If SSL is enabled "NBOSDMAPI_ENABLED_SSL_APIS" value should be nbosdmapi.
#NBOSDMAPI_ENABLED_SSL_APIS: nbosdmapi
##If SSL is disabled "NBOSDMAPI_ENABLED_SSL_APIS" value should be empty.
NBOSDMAPI_ENABLED_SSL_APIS: ""
NBOSDMAPI_SSL_CERT: ""
NBOSDMAPI_SSL_KEY: ""
#Set verbosity level and run playbooks with -vvv option to display
custom debug messages
verbosity_level: 3
cd /opt/openstack-ansible/playbooks
If Ansible OpenStack is not already deployed, run the native OpenStack deployment
commands to deploy OpenStack and NetBackup for OpenStack components
together. An example for the native deployment command is given below:
Verify that the NetBackup for OpenStack datamover service is deployed and has
started on compute nodes. Run the following command on compute nodes.
Verify that the NetBackup for OpenStack horizon plugin, nbosdmclient, and
nbosjmclient are installed on the Horizon container.
Run the following command on Horizon container.
Deploying NetBackup for OpenStack 48
Installing NetBackup for OpenStack Components
lxc-attach -n controller_horizon_container-1d9c055c
# To login on horizon container
apt list | egrep 'nbos-horizon-plugin|nbosjmclient|nbosdmclient '
# For ubuntu based container
yum list installed |egrep 'nbos-horizon-plugin|nbosjmclient|
nbosdmclient '
# For CentOS based container
1 Changing the nova user ID on the See “Changing the nova user ID on the
NetBackup for OpenStack Nodes NetBackup for OpenStack Nodes”
on page 49.
3 Copy the NetBackup for OpenStack See “Copying the NetBackup for
deployment scripts OpenStack deployment scripts”
on page 50.
4 Copy the NetBackup for OpenStack See “Copying the NetBackup for
deployment scripts to Kolla-ansible OpenStack deployment scripts to
deploy scripts Kolla-ansible deploy scripts” on page 51.
5 Push the NetBackup for OpenStack See “Pushing NetBackup for OpenStack
images to the local registry images to the local registry” on page 52.
5. Verify that nova user and group ID has changed to the desired value.
#id nova
cd nbos-cfg-scripts/
NetBackupOpenStack_keystone_password: <password>
NetBackupOpenStack_database_password: <password>
Deploying NetBackup for OpenStack 52
Installing NetBackup for OpenStack Components
For example,
cat kolla/NetBackupOpenStack_inventory.txt >> /root/multinode
Table 2-4
Step Task Description
2 Load the images from tar and push See “Loading the images from tar and
them to the local repository pushing them to the local repository”
on page 53.
Loading the images from tar and pushing them to the local repository
Ensure that the proper tar files of nbosdmapi, nbosdm and nbos-horizon-plugin are
available on the deployment node.
To load the images from tar and push them to the local repository
1 Load NetBackup for OpenStack images from the tar file.
Run the following commands:
■ nbosdmapi
docker load --input nbosdmapi-{{ kolla-base-distro }}:{{
NBOS_version }}-ussuri.tar
For example,
docker load --input
nbosdmapi-ubuntu-9.1.2.20211021104525-ussuri.tar
■ nbosdm
docker load i-input nbosdm-{{ kolla-base-distro }}:{{
NBOS_version }}-ussuri.tar
For example,
docker load --input
nbosdm-ubuntu-9.1.2.20211021104525-ussuri.tar
■ nbos-horizon-plugin
docker load --input nbos-horizon-plugin-{{ kolla-install-type
}}-{{ kolla-base-distro }}:{{ NBOS_version }}-ussuri.tar
Deploying NetBackup for OpenStack 54
Installing NetBackup for OpenStack Components
For example,
docker load --input
nbos-horizon-plugin-source-ubuntu-9.1.2.20211021104525-ussuri.tar
■ nbosdm
■ docker tag nbosdm-{{ kolla-base-distro }}:{{ NBOS_version
}}-ussuri
nbos/nbosdm-<kolla-base-distro>:<NBOS_version>-ussuri
■ nbos-horizon-plugin
■ docker tag nbos-horizon-plugin-{{ kolla-install-type }}-{{
kolla-base-distro }}:{{ NBOS_version }}-ussuri
nbos/nbos-horion-plugin-{{ kolla-install-type }}-{{
kolla-base-distro }}:{{ NBOS_version }}-ussuri
Deploying NetBackup for OpenStack 55
Installing NetBackup for OpenStack Components
■ docker tag
nbos-horizon-plugin-source-ubuntu:9.1.2.20211021104525-ussuri
deployment-vm.vxindia.veritas.com:5001/nbos/nbos-horizon-plugin-source-ubuntu:9.1.2.20211021104525-ussuri
■ nbosdm
docker push FQDN:5001/nbos/nbosdm-{{ kolla-base-distro }}:{{
NBOS_version }}-ussuri
For example,
docker push
deployment-vm.vxindia.veritas.com:5001/nbos/nbosdm-ubuntu:9.1.2.20211021104525-ussuri
■ nbos-horizon-plugin
docker push FQDN:5001/nbos/nbos-horizon-plugin-{{
kolla-install-type }}-{{ kolla-base-distro }}:{{ NBOS_version
}}-ussuri
For example,
docker push
deployment-vm.vxindia.veritas.com:5001/nbos/nbos-horizon-plugin-source-ubuntu:9.1.2.20211021104525-ussuri
Deploying NetBackup for OpenStack 56
Installing NetBackup for OpenStack Components
cat /etc/docker/daemon.json
{
"log-opts": {
"max-file": "5",
"max-size": "50m"
},
"registry-mirrors": [
"http://<deployment node ip>:4000"
],
"insecure-registries": [
"FQDN:5001"
]
}
cat /etc/docker/daemon.json
{ "insecure-registries":["FQDN:5001"] }
Sample output:
Deploying NetBackup for OpenStack 57
Installing NetBackup for OpenStack Components
Parameter Description
NetBackupOpenStack_backup_target ■ nfs
nfs if the backup target is NFS.
■ amazon_s3
amazon_s3 if the backup target is Amazon
S3.
■ ceph_s3
ceph_s3 if the backup target type is S3
but not Amazon S3.
Deploying NetBackup for OpenStack 58
Installing NetBackup for OpenStack Components
Parameter Description
For example:
192.168.145.110:/nfs/nbos
nova_libvirt_default_volumes:
- "{{ node_config_directory }}/nova-libvirt/:{{ container_config_
directory }}/:ro"
- "/etc/localtime:/etc/localtime:ro"
- "{{ '/etc/timezone:/etc/timezone:ro' if ansible_os_family
== 'Debian' else '' }}"
- "/lib/modules:/lib/modules:ro"
- "/run/:/run/:shared"
- "/dev:/dev"
- "/sys/fs/cgroup:/sys/fs/cgroup"
- "kolla_logs:/var/log/kolla/"
- "libvirtd:/var/lib/libvirt"
- "{{ nova_instance_datadir_volume }}:/var/lib/nova/"
- "{% if enable_shared_var_lib_nova_mnt | bool %}/var/lib/nova/mnt:
/var/lib/nova/mnt:shared{% endif %}"
- "nova_libvirt_qemu:/etc/libvirt/qemu"
- "{{ kolla_dev_repos_directory ~ '/nova/nova:/var/lib/
kolla/venv/lib/python' ~ distro_python_version ~ '
/site-packages/nova' if nova_dev_mode | bool else '' }
- "/var/nbos:/var/nbos:shared"
Next, find the variable nova_compute_default_volumes in the same file and append
the mount bind /var/nbos:/var/nbos:shared to the list.
After the change, the variable will look as follows for a default Kolla installation :
nova_compute_default_volumes:
- "{{ node_config_directory }}/nova-compute/:{{ container_config_
directory }}/:ro"
- "/etc/localtime:/etc/localtime:ro"
- "{{ '/etc/timezone:/etc/timezone:ro' if ansible_os_family
== 'Debian' else '' }}"
- "/lib/modules:/lib/modules:ro"
- "/run:/run:shared"
- "/dev:/dev"
- "kolla_logs:/var/log/kolla/"
- "{% if enable_iscsid | bool %}iscsi_info:/etc/iscsi{% endif %}"
- "libvirtd:/var/lib/libvirt"
Deploying NetBackup for OpenStack 60
Installing NetBackup for OpenStack Components
In case of using Ironic compute nodes one more entry need to be adjusted in the
same file. Find the variable nova_compute_ironic_default_volumes and append
NBOS mount /var/nbos:/var/nbos:shared to the list.
After the changes the variable will looks like the following:
nova_compute_ironic_default_volumes:
- "{{ node_config_directory }}/nova-compute-ironic/:{{ container_config_
directory }}/:ro"
- "/etc/localtime:/etc/localtime:ro"
- "{{ '/etc/timezone:/etc/timezone:ro' if ansible_os_family == 'Debian'
else '' }}"
- "kolla_logs:/var/log/kolla/"
- "{{ kolla_dev_repos_directory ~ '/nova/nova:/var/lib/kolla/venv/lib/
python' ~ distro_python_version ~ '/site-packages/nova' if nova_dev
_mode | bool else '' }}"
- "/var/nbos:/var/nbos:shared"
For example,
kolla-ansible -i multinode pull --tags netbackup
For example,
kolla-ansible -i multinode deploy
Deploying NetBackup for OpenStack 61
Configuring NetBackup for OpenStack
Sample output:
3107046dce84 r7515-090-vm51.vxindia.veritas.com:
5001/nbos/nbosdmapi-ubuntu:10.0.0.1.1007-ussuri
"dumb-init --single-…" 9 days ago Up 9 days
NetBackupOpenStack_datamover_api
Sample output:
77f22039bd54 r7515-090-vm51.vxindia.veritas.com:
5001/nbos/nbosdm-ubuntu:10.0.0.1.1007-ussuri "dumb-init
--single-…" 9 days ago Up 4 days
NetBackupOpenStack_datamover
Sample output:
dde1c91ed1a0 r7515-090-vm51.vxindia.veritas.com:
5001/nbos/nbos-horizon-plugin-binary-ubuntu:10.0.0.1.1007-ussuri
"dumb-init --single-…" 7 months ago Up 7 months
horizon
This brings you to the NetBackup for OpenStack dashboard, which contains the
NetBackup for OpenStack configurator.
The user is: admin The default password is: password
After the very first login, you are requested to change the admin password.
NetBackup for OpenStack requires you to configure the cluster once and the
NetBackup for OpenStack dashboard provides cluster-wide management capability.
The NetBackup for OpenStack Cluster supports only 1-node and 3-node clusters.
■ Virtual IP address
■ NetBackup for OpenStack cluster IP address, which is mandatory
■ Format: IP/Subnet
■ Example: 172.20.4.150/24
Warning: The Virtual IP is mandatory even for single-node clusters and has to be
different from any IP given at the Controller Nodes.
■ Name Server
■ List of nameservers, primarily used to resolve OpenStack service endpoints.
Deploying NetBackup for OpenStack 63
Configuring NetBackup for OpenStack
■ NTP Servers
■ NTP servers the NetBackup for OpenStack Cluster will use
■ Format: Comma-separated list
■ Example: 0.pool.ntp.org,10.10.10.10
■ Timezone
■ Timezone the NetBackup for OpenStack Cluster will use internally
■ Format: pre-populated list
■ Example: UTC
■ Endpoint Type
■ Defines which endpoint type is used to communicate with the OpenStack
endpoints
■ Format: Predefined list of radio buttons
■ Example: Public
When FQDNs are used for the Keystone endpoints it is necessary to configure at
least one DNS server before the configuration.
Otherwise, the validation of the OpenStack Credentials fails.
Deploying NetBackup for OpenStack 64
Configuring NetBackup for OpenStack
■ Domain ID
■ domain the provided user and tenant are located in
■ Format: ID
■ Example: Default
■ Administrator
■ User name of an account with the domain admin role
■ Format: String
■ Example: Admin
■ Password
■ Password for the previous provided user
■ Format: String
■ Example: Password
NetBackup for OpenStack requires domain admin role access. To provide domain
admin role to a user, the following command can be used:
openstack role add --domain <domain id> --user <username> admin
The NetBackup for OpenStack configurator verifies after every entry if it is possible
to login to OpenStack using the provided credentials.
This verification fails until all entries are set and correct.
When the verification is successful it is possible to choose the Admin tenant, the
Region, and the Trustee role without any error message shown.
■ Admin Tenant
■ The tenant to be used together with the provided user
■ Format: A pre-populated list
■ Example: Admin
■ Region
■ OpenStack Region the user and tenant are located in
■ Format: a pre-populated list
■ Example: RegionOne
■ Trustee Role
■ The OpenStack role is required to be able to use NetBackup for OpenStack
functions
Deploying NetBackup for OpenStack 65
Configuring NetBackup for OpenStack
■ Backup Storage
■ Defines the Backup Storage protocol to use
■ Format: Predefined list of radio buttons
■ Example: NFS
■ NFS Options
■ NFS options used by the NetBackup for OpenStack Cluster when mounting
the NFS Exports
■ Format: NFS options
■ Example: nolock,soft,timeo=180,intr,lookupcache=none
Please use the predefined NFS Options and only change them when it is know that
changes are necessary.
NetBackup for OpenStack is testing against the predefined NFS options.
■ Access Key
■ Access Key necessary to login to the S3 storage
■ Format: access key
■ Example: SFHSAFHPFFSVVBSVBSZRF
■ Secret Key
■ Secret Key necessary to login to the S3 storage
■ Format: secret key
■ Example: bfAEURFGHsnvd3435BdfeF
■ Region
■ Configured Region for the S3 Bucket (keep the default for S3 compatible
without Region)
■ Format: String
■ Example: us-east-1
■ Signature Version
■ S3 signature version to use for signing into the S3 storage
■ Format: String
■ Example: Default
■ Bucket Name
■ Name of the bucket to be used as Backup target
■ Format: String
■ Example: nbos-backup
Deploying NetBackup for OpenStack 67
Configuring NetBackup for OpenStack
Policy Import
Select this box in case of reinitialization or reinstallation of the NetBackup for
OpenStack Appliance to import all matching policies that are located on the Backup
Target.
Note: Policies that are not assigned to an existing tenant will fail to import and
need to be reassigned manually once the configuration is done.
Advanced settings
At the end of the configurator, you can activate the advanced settings.
Activating this option enables the configuration of the Keystone endpoints that are
used for NetBackup for OpenStack Job Manager and NetBackup for OpenStack
Datamover API.
mysql://nbos:[email protected]/nbosjm_auto?charset=utf8
This value can only be set upon an initial configuration of the NetBackup for
OpenStack solution.
When the Cluster has been configured to use the internal database, then the
connection string will not be shown in the next configuration attempt.
In case of an external database, the connection string is shown but is not editable.
The configurator is using Ansible and a few NetBackup for OpenStack internal API
calls. After each configuration block or after the configurator finished it is possible
to visit the Ansible output.
At the end of a successful configuration the configurator will redirect NBOSVM
dashboard to virtual IP.
■ nbosjm-scheduler
■ nbosjm-policies
Those can be verified to be up and running using the systemctl status command.
pcs status
######
Cluster name: NetBackup for OpenStack
WARNINGS:
Corosync and pacemaker node names do not match (IPs used in setup?)
Stack: corosync
Current DC: om_nbosvm (version 1.1.19-8.el7_6.1-c3c624ea3d) -
chapterition with quorum
Last updated: Wed Dec 5 12:25:02 2018
Last change: Wed Dec 5 09:20:08 2018 by root via cibadmin on om_nbosvm
1 node configured
4 resources configured
Online: [ om_nbosvm ]
Full list of resources:
virtual_ip (ocf::'heartbeat:IPaddr2): Started om_nbosvm
nbosjm-api (systemd:nbosjm-api): Started om_nbosvm
nbosjm-scheduler (systemd:nbosjm-scheduler): Started om_nbosvm
Clone Set: lb_nginx-clone [lb_nginx]
Started: [ om_nbosvm ]
Daemon Status:
corosync: active/enabled
pacemaker: active/enabled
pcsd: active/enabled
curl http://10.10.2.34:8780/v1/8e16700ae3614da4ba80a4e57d60cdb9/
policy_types/detail -X GET -H "X-Auth-Project-Id: admin"
-H "User-Agent: python-nbosjmclient" -H "Accept:
application/json" -H "X-Auth-Token:
Deploying NetBackup for OpenStack 72
Post Installation Health-Check
gAAAAABe40NVFEtJeePpk1F9QGGh1LiGnHJVLlgZx9t0HRrK9rC5vq
KZJRkpAcW1oPH6Q9K9peuHiQrBHEs1-g75Na4xOEESR0LmQJUZP6n3
7fLfDL_D-hlnjHJZ68iNisIP1fkm9FGSyoyt6IqjO9E7_YVRCTCqNLJ
67ZkqHuJh1CXwShvjvjw
Please check the API guide for more commands and how to generate the
X-Auth-Token.
PWD=/ ...
Hint: Some lines were ellipsized, use -l to show in full.
df -h
######
Filesystem Size Used Avail Use% Mounted on
devtmpfs 63G 0 63G 0% /dev
tmpfs 63G 16K 63G 1% /dev/shm
tmpfs 63G 35M 63G 1% /run
tmpfs 63G 0 63G 0% /sys/fs/cgroup
/dev/mapper/rhvh-rhvh-- 7.1T 3.7G 6.8T 1% /
4.3.8.1--0.20200126.0+1
/dev/sda2 976M 198M 712M 22% /boot
/dev/mapper/rhvh-var 15G 1.9G 12G 14% /var
/dev/mapper/rhvh-home 976M 2.6M 907M 1% /home
/dev/mapper/rhvh-tmp 976M 2.6M 907M 1% /tmp
/dev/mapper/rhvh-var_log 7.8G 230M 7.2G 4% /var/log
/dev/mapper/rhvh-var_log_audit 2.0G 17M 1.8G 1% /var/log/audit
/dev/mapper/rhvh-var_crash 9.8G 37M 9.2G 1% /var/crash
30.30.1.4:/rhv_backup 2.0T 5.3G 1.9T 1% /var/NetBackupOpen
Stack-mounts/MzAuMzAuMS40Oi9yaHZfYmFja3Vw
30.30.1.4:/rhv_data 2.0T 37G 2.0T 2% /rhev/data-center/
mnt/30.30.1.4:_rhv__data
tmpfs 13G 0 13G 0% /run/user/0
30.30.1.4:/rhv_iso 2.0T 37G 2.0T 2% /rhev/data-center/
mnt/30.30.1.4:_rhv__iso
Secondly do a read, write, and delete test as the user nova:nova (uid = 36 / gid =
36) from the NetBackup for OpenStack Appliance and the RHV-Host.
su nova
######
[nova@nbosvm MTAuMTAuMi4yMDovdXBzdHJlYW0=]$ touch foo
[nova@nbosvm MTAuMTAuMi4yMDovdXBzdHJlYW0=]$ ll
Deploying NetBackup for OpenStack 74
Uninstalling NetBackup for OpenStack
total 24
drwxr-xr-x 3 nova nova 4096 Apr 2 17:27 nbosdm_tasks
-rw-r--r-- 1 nova nova 0 Apr 23 12:25 foo
drwxr-xr-x 2 nova nova 4096 Apr 2 15:38 test-cloud-id
drwxr-xr-x 10 nova nova 4096 Apr 22 11:00 policy_1540698c-8e22-4dd1-
a898-8f49cd1a898c
drwxr-xr-x 9 nova nova 4096 Apr 8 15:21 policy_51517816-6d5a-4fce-
9ac7-46ee1e09052c
drwxr-xr-x 6 nova nova 4096 Apr 22 11:30 policy_77fb42d2-8d34-4b8d-
bfd5-4263397b636c
drwxr-xr-x 5 nova nova 4096 Apr 23 06:15 policy_85bf16ed-d4fd-49a6-
a753-98c5ca6e906b
[nova@nbosvm MTAuMTAuMi4yMDovdXBzdHJlYW0=]$ rm foo
[nova@nbosvm MTAuMTAuMi4yMDovdXBzdHJlYW0=]$ ll
total 24
drwxr-xr-x 3 nova nova 4096 Apr 2 17:27 nbosdm_tasks
drwxr-xr-x 2 nova nova 4096 Apr 2 15:38 test-cloud-id
drwxr-xr-x 10 nova nova 4096 Apr 22 11:00 policy_1540698c-8e22-4dd1-
a898-8f49cd1a898c
drwxr-xr-x 9 nova nova 4096 Apr 8 15:21 policy_51517816-6d5a-4fce-
9ac7-46ee1e09052c
drwxr-xr-x 6 nova nova 4096 Apr 22 11:30 policy_77fb42d2-8d34-4b8d-
bfd5-4263397b636c
drwxr-xr-x 5 nova nova 4096 Apr 23 06:15 policy_85bf16ed-d4fd-49a6-
a753-98c5ca6e906b
Clean NetBackup for OpenStack Datamover See “Clean NetBackup for OpenStack
API service Datamover API service” on page 75.
Deploying NetBackup for OpenStack 75
Uninstalling NetBackup for OpenStack
Clean NetBackup for OpenStack Datamover See “Clean NetBackup for OpenStack
Service Datamover Service” on page 76.
Clean NetBackup for OpenStack haproxy See “Clean NetBackup for OpenStack
resources haproxy resources” on page 77.
Clean NetBackup for OpenStack Keystone See “Clean NetBackup for OpenStack
resources Keystone resources” on page 78.
Clean NetBackup for OpenStack database See “Clean NetBackup for OpenStack
resources database resources” on page 78.
Revert back to original RHOSP Horizon See “Revert back to original RHOSP Horizon
container container” on page 80.
Destroy the NetBackup for OpenStack VM See “Destroy the NetBackup for OpenStack
Cluster VM Cluster” on page 80.
Once the role that runs the NetBackup for OpenStack Datamover API service has
been identified, the following commands will clean the nodes from the service.
podman rm nbosdmapi_init_log
podman rm nbosdmapi_db_sync
rm -rf /var/lib/config-data/puppet-generated/nbosdmapi
rm /var/lib/config-data/puppet-generated/nbosdmapi.md5sum
rm -rf /var/log/containers/nbosdmapi/
Once the role that runs the NetBackup for OpenStack Datamover API service has
been identified, the following commands will clean the nodes from the service.
# Unmount it
-- If it's NFS (COPY UUID_DIR from your compute host using above command)
umount /var/lib/nova/NetBackupOpenStack-mounts/<UUID_DIR>
-- If it's S3
umount /var/lib/nova/NetBackupOpenStack-mounts
df -h | grep NetBackup
# Remove mount point directory after verifying that backup target unmounted
successfully.
# Otherwise actual data from backup target may get cleaned.
rm -rf /var/lib/nova/NetBackupOpenStack-mounts
rm -rf /var/lib/config-data/puppet-generated/nbosdm/
rm /var/lib/config-data/puppet-generated/nbosdm.md5sum
rm -rf /var/log/containers/nbosdm/
Edit the following file on the HAProxy nodes and remove all NetBackup for
OpenStack entries.
/var/lib/config-data/puppet-generated/haproxy/etc/haproxy/haproxy.cfg
listen nbosdmapi
bind 172.25.3.60:13784 transparent ssl crt /etc/pki/tls/private/
overcloud_endpoint.pem
bind 172.25.3.60:8784 transparent
http-request set-header X-Forwarded-Proto https if { ssl_fc }
http-request set-header X-Forwarded-Proto http if !{ ssl_fc }
http-request set-header X-Forwarded-Port %[dst_port]
option httpchk
option httplog
server overcloud-controller-0.internalapi.localdomain 172.25.3.59:8784
check fall 5 inter 2000 rise 2
Restart the haproxy container once all edits have been done.
## On RHOSP
podman exec -it galera-bundle-podman-0 mysql -u root
## Clean database
DROP DATABASE nbosdmapi;
■ OS::TripleO::Services::nbosdm
In case the overcloud deploy command used before the deployment of NetBackup
for OpenStack is still available, it can directly be used.
Follow these steps to clean the overcloud deploy command from all NetBackup for
OpenStack entries.
1. Remove nbos_env.yaml entry.
2. Remove NetBackup OpenStack endpoint map file Replace with original map
file if existing.
Deploying NetBackup for OpenStack 80
Uninstalling NetBackup for OpenStack
virsh list
Delete the NetBackup for OpenStack VM disk from KVM Host storage
Uninstall NetBackup for OpenStack Services See “Uninstall NetBackup for OpenStack
Services” on page 81.
Destroy NetBackup for OpenStack Datamover See “Destroy NetBackup for OpenStack
API container Datamover API container” on page 81.
Remove NetBackup for OpenStack haproxy See “Remove NetBackup for OpenStack
settings in user_variables.yml haproxy settings in user_variables.yml”
on page 82.
Delete NetBackup for OpenStack Datamover See “Delete NetBackup for OpenStack
API database and user Datamover API database and user”
on page 83.
Remove nbosdmapi rabbitmq user from See “Remove nbosdmapi rabbitmq user from
rabbitmq container rabbitmq container” on page 83.
Remove certificates from Compute nodes See “Remove certificates from Compute
nodes” on page 84.
Destroy the NetBackup for OpenStack VM See “Destroy the NetBackup for OpenStack
Cluster VM Cluster” on page 84.
cd /opt/openstack-ansible/playbooks
openstack-ansible os-nbos-install.yml --tags "nbos-all-uninstall"
cd /opt/openstack-ansible/playbooks
openstack-ansible lxc-containers-destroy.yml --limit "DMPAI CONTAINER_NAME"
Clean openstack_user_config.yml
Remove the nbosdmapi_hosts and nbos_compute_hosts entries from
/etc/openstack_deploy/openstack_user_config.yml
#nbosdmapi
nbos-nbosdmapi_hosts:
infra-1:
ip: 172.26.0.3
infra-2:
ip: 172.26.0.4
Deploying NetBackup for OpenStack 82
Uninstalling NetBackup for OpenStack
#nbos-datamover
nbos_compute_hosts:
infra-1:
ip: 172.26.0.7
infra-2:
ip: 172.26.0.8
rm /opt/openstack-ansible/inventory/env.d/nbos-nbosdmapi.yml
source cloudadmin.rc
openstack endpoint delete "internal datamover service endpoint_id"
openstack endpoint delete "public datamover service endpoint_id"
openstack endpoint delete "admin datamover service endpoint_id"
Deploying NetBackup for OpenStack 83
Uninstalling NetBackup for OpenStack
Clean haproxy
Remove /etc/haproxy/conf.d/nbosdm_service file.
rm /etc/haproxy/conf.d/nbosdm_service
frontend nbosdm_service-front-1
bind hostname:8784 ssl crt /etc/ssl/private/
haproxy.pem ciphers ECDH+AESGCM:DH+AESGCM:ECDH
+AES256:DH+AES256:ECDH+AES128:DH+AES:RSA+AESGCM
:RSA+AES:!aNULL:!MD5:!DSS
option httplog
option forwardfor except 127.0.0.0/8
reqadd X-Forwarded-Proto:\ https
Deploying NetBackup for OpenStack 84
Uninstalling NetBackup for OpenStack
mode http
default_backend nbosdm_service-back
frontend nbosdm_service-front-2
bind 172.26.1.2:8784
option httplog
option forwardfor except 127.0.0.0/8
mode http
default_backend nbosdm_service-back
backend nbosdm_service-back
mode http
balance leastconn
stick store-request src
stick-table type ip size 256k expire 30m
option forwardfor
option httplog
option httpchk GET / HTTP/1.0\r\nUser-agent:\ osa-haproxy-healthcheck
rm -rf /opt/config-certs/rabbitmq
rm -rf /opt/config-certs/s3
virsh list
Delete the NetBackup for OpenStack VM disk from KVM Host storage
virsh list
4 Delete the NetBackup for OpenStack VM disk from KVM Host storage.
Table 2-6 Log rotation default options for Kolla and Ansible
/var/log/nbosjm/*.log {
missingok
notifempty
copytruncate
size 25M
rotate 30
compress
dateformat -%Y%m%d-%H
}
/var/NetBackupOpenStack-mounts/*/*/*.log {
su root nova
missingok
compress
delaycompress
notifempty
copytruncate
size 25M
rotate 30
dateformat -%Y%m%d-%H
}
/var/NetBackupOpenStack-mounts/*/*.log {
su root nova
missingok
compress
delaycompress
notifempty
copytruncate
size 25M
rotate 30
dateformat -%Y%m%d-%H
}
Deploying NetBackup for OpenStack 91
About log rotation in NetBackup for OpenStack
Table 2-6 Log rotation default options for Kolla and Ansible (continued)
/var/log/kolla/nbosdmapi/nbosdmapi.log {
daily
missingok
notifempty
copytruncate
size=25M
rotate 30
maxage 30
compress
dateformat -%Y%m%d-%H
}
/var/log/kolla/nbosdm/nbosdm.log {
daily
missingok
notifempty
copytruncate
size=25M
rotate 30
maxage 30
compress
dateformat -%Y%m%d-%H
}
/usr/openv/netbackup/logs/vxms/*.log {
daily
missingok
notifempty
copytruncate
size=1M
rotate 5
postrotate
find -daystart -mtime +30 -delete
find -daystart -mtime +7 -size 0 -delete
endscript
compress
dateformat -%Y%m%d-%H
}
Deploying NetBackup for OpenStack 92
About log rotation in NetBackup for OpenStack
Table 2-7 describes the default options that are used to configure log rotation on
RHOSP.
/var/log/nbosjm/*.log {
missingok
notifempty
copytruncate
size 25M
rotate 30
compress
dateformat -%Y%m%d-%H
}
/var/NetBackupOpenStack-mounts/*/*/*.log {
su root nova
missingok
compress
delaycompress
notifempty
copytruncate
size 25M
rotate 30
dateformat -%Y%m%d-%H
}
/var/NetBackupOpenStack-mounts/*/*.log {
su root nova
missingok
compress
delaycompress
notifempty
copytruncate
size 25M
rotate 30
dateformat -%Y%m%d-%H
}
/etc/logrotate.d/vxms
/var/log/vxms/*.log {
daily
missingok
notifempty
copytruncate
size=1M
rotate 5
postrotate
find -daystart -mtime +30 -delete
find -daystart -mtime +7 -size 0 -delete
endscript
compress
dateformat -%Y%m%d-%H
}
Chapter 3
Configuring NetBackup
OpenStack Appliance
This chapter includes the following topics:
The cluster does not roll back to its last working state in case of any errors.
4 Enter SHA-256 fingerprint. You can view and copy SHA-256 fingerprint from
the NetBackup certificate authority details that is displayed on the NetBackup
web UI.
See View the NetBackup certificate authority details and fingerprint topic in the
NetBackup Web UI Administrator's Guide.
You can also view SHA-256 fingerprint by using command line. Run the
following command on the NetBackup primary server:
/usr/openv/netbackup/bin/nbcertcmd -listCACertDetails
6 If you select the certificate type External CA, you must provide the following
information:
Passphrase file (optional) Provide the passphrase file if the private key is encrypted.
7 Click Submit.
8 In the Ansible Output tab, you can verify the details such as new certificate
on NetBackup OpenStack VM that registers itself as a valid host on the
NetBackup Master server.
■ Go to Logs.
■ Choose the log to be downloaded.
■ Each log for every NetBackup for OpenStack Appliance can be downloaded
separately
■ Or a zip of all log files can be created and downloaded
This downloads the current log files. Already rotated logs need to be downloaded
through SSH from the NetBackup for OpenStack appliance directly. All logs, including
rotated old logs, can be found at:
/var/logs/nbosjm/
Chapter 4
Configuring NetBackup
Master Server
This chapter includes the following topics:
■ For UNIX
bpsetconfig -h masterserver
bpsetconfig> APP_PROXY_SERVER = nbosvm1.domain.org
bpsetconfig> APP_PROXY_SERVER = nbosvm2.domain.org
bpsetconfig> APP_PROXY_SERVER = nbosvm3.domain.org
bpsetconfig>
UNIX systems: <ctl-D>
■ For Windows
bpsetconfig -h masterserver
bpsetconfig> APP_PROXY_SERVER = nbosvm1.domain.org
bpsetconfig> APP_PROXY_SERVER = nbosvm2.domain.org
bpsetconfig> APP_PROXY_SERVER = nbosvm3.domain.org
bpsetconfig>
Windows systems: <ctl-Z>
1 Add the OpenStack Horizon instance See “Adding the OpenStack Horizon
on the NetBackup web UI. instance on NetBackup web UI”
on page 101.
Configuring NetBackup Master Server 101
About launching the OpenStack Horizon UI from the NetBackup web UI
3 Log on with the role, and launch the See “Launching the Horizon UI from the
Horizon UI. NetBackup web UI” on page 102.
5 For Role permissions, choose the permission or type of access that you want
users with that role to have for each permission type.
6 Click Add role.
■ About policies
■ List of policies
■ Create a policy
■ Policy overview
■ Edit a policy
■ Delete a policy
■ Unlock a policy
■ Reset a policy
About policies
A policy is a backup job that protects one or more Virtual Machines according to
the configuration. There can be as many policies as needed. But each VM can only
be part of one policy.
List of policies
Using Horizon
To view all available policies of a project on Horizon
On the Horizon console, navigate to NBOS Backups > Policies.
NetBackup for OpenStack policies 104
Create a policy
The overview in Horizon lists all policies with the following additional information:
■ Creation time
■ Policy name
■ Policy description
■ Total snapshots inside this policy
■ Total number of succeeded snapshots
■ Total number of failed snapshots
■ Policy type
■ Policy status
Using CLI
■ --all {True,False}List all policies of all projects (valid for admin user only).
■ --nfsshare <nfsshare>List all policies of NFS share (valid for admin user
only).
Create a policy
Using Horizon
To create a policy inside Horizon do the following steps:
1 On the Horizon console, navigate to NBOS Backups > Policies.
2 Click Create Policy.
3 On the Details tab, Provide the policy name, description, and the policy type
as Serial or Parallel.
4 On the Policy Members tab, select the VMs to protect.
5 On the Schedule tab, Click Enable Scheduler to schedule the backups.
In the schedule, provide the start date, end date, start time, and the number
of hours the backup must repeat.
6 Provide the Retention policy on the Policy Attributes tab.
7 Choose the Full Backup Interval on the Policy Attributes tab.
NetBackup for OpenStack policies 105
Policy overview
Using CLI
Policy overview
View the information about the policy in the Policy overview.
Using Horizon
To enter the policy overview inside Horizon do the following steps:
NetBackup for OpenStack policies 106
Policy overview
Details The Policy Details tab provides you with the most important
information about the policy:
■ Name
■ Description
■ Availability Zone
■ List of protected VMs including the information of qemu
guest agent availability
Snapshots The Snapshots tab shows the list of all available snapshots in
the chosen policy.
Policy Attributes The Policy Attributes tab gives an overview of the current
configured scheduler and retention policy. The following
elements are shown:
■ Scheduler Enabled or Disabled
■ Start Date and Time
■ End Date and Time
■ RPO
■ Time until next Snapshot run
■ Retention Policy and Value
■ Full Backup Interval policy and value
File Search The File Search tab provides access to the powerful search
engine, which allows to find files and folders on snapshots
without the need of a restore.
Using CLI
Edit a policy
Policy can be modified in all components to match changing needs.
Using Horizon
To edit a policy in Horizon do the following steps:
1. On the Horizon console, navigate to NBOS Backups > Policies.
2. Identify the policy to be modified.
3. Click Create Snapshot drop-down.
4. Click Edit Policy.
5. Modify the policy as desired. All parameters except policy type can be changed.
6. Click Update.
Using CLI
usage: nbosjm
policy-modify [--display-name <display-name>]
NetBackup for OpenStack policies 108
Delete a policy
[--display-description <display-description>]
[--instance <instance-id=instance-uuid>]
[--jobschedule <key=key-name>]
[--metadata <key=key-name>]
[--policy_attribute_id <policy_attribute_id>]
<policy-id>
Delete a policy
Once a policy is no longer needed, it can be safely deleted. All snapshots need to
be deleted before the policy gets deleted.
See “About snapshots” on page 112.
Using Horizon
To delete a policy do the following steps:
1. On the Horizon console, navigate to NBOS Backups > Policies.
2. Identify the policy to be deleted.
3. Click Create Snapshot drop-down.
4. Click Delete Policy.
5. Click Delete Policy again to confirm.
NetBackup for OpenStack policies 109
Unlock a policy
Using CLI
Unlock a policy
Policies that are actively taking backups or restores are locked for further tasks.
You can unlock a policy by force if necessary.
We recommend that you use this feature only as last resort in case of backups or
restores being stuck without failing or a restore is required while a backup is running.
Using Horizon
1. On the Horizon console, navigate to NBOS Backups > Policies.
2. Identify the policy to unlock.
3. Click Create Snapshot drop-down.
4. Click Unlock Policy.
5. Click Unlock Policy again to confirm.
Using CLI
Reset a policy
In rare cases it might be necessary to start a backup chain all over again to ensure
the quality of the created backups. In case you want to avoid the recreation of the
policy, you can reset the policy.
The policy reset will:
■ Cancel all ongoing tasks.
■ Delete all existing NetBackup for OpenStack snapshots from the protected VMs.
■ Recalculate the next snapshot time.
NetBackup for OpenStack policies 110
Reset a policy
Using Horizon
To reset a policy do the following steps:
1. On the Horizon console, navigate to NBOS Backups > Policies.
2. Identify the policy to reset.
3. Click Create Snapshot drop-down.
4. Click Reset Policy.
5. Click Reset Policy again to confirm.
Using CLI
■ About snapshots
■ List of snapshots
■ Creating a snapshot
■ Snapshot overview
■ Delete snapshots
■ Snapshot Cancel
■ About restores
■ List of Restores
■ Restores overview
■ Delete a Restore
■ Cancel a Restore
■ One-Click Restore
■ Selective Restore
■ In-place restore
■ Mounting a snapshot
■ Unmounting a snapshot
■ About schedulers
■ Disable a schedule
■ Enable a schedule
■ Modify a schedule
About snapshots
A snapshot is a single NetBackup for OpenStack backup of a policy including all
data and metadata. It contains the information of all VMs that the policy protects.
List of snapshots
Using Horizon
1. On the Horizon console, navigate to NBOS Backups > Policies.
2. Identify the policy to show the details on.
3. Click the policy name to enter the policy overview.
Performing backups and restores of OpenStack 113
List of snapshots
■ Snapshot Type
■ Snapshot Size
■ Snapshot Status
Using CLI
■ --nbos_node <host> List all the snapshot operations that are scheduled on a
nbos node(Default=None).
■ --date_from <date_from> From date in format "YYYY-MM-DDTHH:MM:SS"
for example 2016-10-10T00:00:00, If you don’t specify time then it takes 00:00
by default.
■ --date_to <date_to> To date in format "YYYY-MM-DDTHH:MM:SS" (default
is current day), Specify HH:MM:SS to get snapshots within same day
inclusive/exclusive results for date_from and date_to
■ --all {True,False} List all snapshots of all the projects (valid for admin user
only).
Performing backups and restores of OpenStack 114
Creating a snapshot
Creating a snapshot
Snapshots are automatically created by the NetBackup for OpenStack scheduler.
If necessary or in case of deactivated scheduler, you can create a snapshot on
demand.
Note: NetBackup for OpenStack does not support backup of swap disks and
ephemeral disks.
Using Horizon
There are two possibilities to create a snapshot on demand.
Possibility 1: From the policy overview
1. On the Horizon console, navigate to NBOS Backups > Policies.
2. Identify the policy to create a snapshot.
3. Click Create Snapshot.
4. Provide a name and description for the snapshot.
5. Decide between Full and Incremental Snapshot.
6. Click Create.
Possibility 2: From the policy snapshot list
1. On the Horizon console, navigate to NBOS Backups > Policies.
2. Identify the policy to create a snapshot.
3. Click the policy name to enter the policy overview.
4. Navigate to the Snapshots tab.
5. Click Create Snapshot.
6. Provide a name and description for the snapshot.
7. Decide between Full and Incremental Snapshot.
8. Click Create.
Using CLI
Snapshot overview
Each snapshot contains a lot of information about the backup. This information can
be seen in the snapshot overview.
Using Horizon
To reach the snapshot overview follow these steps:
1. On the Horizon console, navigate to NBOS Backups > Policies.
2. Identify the policy that contains the snapshot to show.
3. Click the policy name to enter the policy overview.
4. Navigate to the Snapshots tab.
5. Identify the searched snapshot in the snapshot list
6. Click the snapshot name.
Details The Snapshot Details tab shows the most important information
about the snapshot.
■ Snapshot ID/Name/Description
■ Snapshot Type
■ Time Taken
■ Size
■ Status
■ Which VMs are part of the snapshot
■ For each VM in the snapshot
■ Instance Info - Name & Status
■ Security Group(s) - Name, Type
■ Flavor - vCPUs, Disk, RAM
■ Networks - IP, Networkname, Mac Address
■ Attached Volumes - Name, Type, size (GB), Mount Point,
Restore Size
■ Misc - Original ID of the VM
Performing backups and restores of OpenStack 116
Delete snapshots
Restores The Snapshot Restores tab shows the list of restores that have
been started from the chosen snapshot. It is possible to start
restores from here.
Using CLI
Note: OpenStack does not allow you to launch an instance without a network
interface. The snapshot of the instance that does not have any network interface
attached to it cannot be restored using the selective restore or OneClick restore
options. However, you can use in-place restore, which does not launch an instance.
Delete snapshots
Once a snapshot is no longer needed, it can be safely deleted from a policy.
The retention policy automatically deletes the oldest snapshots according to the
configured policy.
You have to delete all snapshots to be able to delete a policy.
Deleting a NetBackup for OpenStack snapshot does not delete any OpenStack
Cinder snapshots. Those need to be deleted separately if desired.
Using Horizon
There are two possibilities to delete a snapshot.
Possibility 1: Single snapshot deletion through the submenu
Performing backups and restores of OpenStack 117
Cleaning up the volume snapshots
Using CLI
Using CLI
nbosjm volume-snapshot-cleanup --snapshot_id <snapshot_id>
nbosjm volume-snapshot-cleanup --policy <policy_id>
■ <policy_id> ID of the policy that has volume snapshots in failed or error state
and needs to be cleaned up.
Note: If you use both snapshot_id and policy_id options, snapshot ID must be
associated with the policy.
Snapshot Cancel
Ongoing snapshots can be canceled.
Canceled snapshots are treated like errored snapshots.
Using Horizon
1. On the Horizon console, navigate to NBOS Backups > Policies.
2. Identify the policy that contains the snapshot to cancel.
3. Click the policy name to enter the policy overview
4. Navigate to the Snapshots tab.
5. Identify the searched snapshot in the snapshot list
6. Click Cancel on the same line as the identified snapshot.
7. Click Cancel to confirm.
Using CLI
About restores
A Restore is the workflow to bring back the backed-up VMs from a NetBackup for
OpenStack snapshot.
Performing backups and restores of OpenStack 119
List of Restores
List of Restores
Using Horizon
To reach the list of Restores for a snapshot follow these steps:
1. On the Horizon console, navigate to NBOS Backups > Policies.
2. Identify the policy that contains the snapshot to show.
3. Click the policy name to enter the policy overview.
4. Navigate to the Snapshots tab.
5. Identify the searched snapshot in the snapshot list.
6. Click the snapshot name.
7. Navigate to the Restores tab.
Using CLI
Restores overview
Using Horizon
To reach the detailed Restore overview follow these steps:
Performing backups and restores of OpenStack 120
Restores overview
Details The Restore Details Tab shows the most important information
about the Restore.
■ Name
■ Description
■ Restore Type
■ Status
■ Time taken
■ Size
■ Progress Message
■ Progress
■ Host
■ Restore Options
Using CLI
Delete a Restore
Once a Restore is no longer needed, it can be safely deleted from a policy.
Deleting a Restore only deletes the NetBackup for OpenStack information about
this Restore. No OpenStack resources are deleted.
Using Horizon
There are two possibilities to delete a Restore.
Possibility 1: Single Restore deletion through the submenu
To delete a single Restore through the submenu follow these steps:
1. On the Horizon console, navigate to NBOS Backups > Policies.
2. Identify the policy that contains the snapshot to delete.
3. Click the policy name to enter the policy overview.
4. Navigate to the Snapshots tab.
5. Identify the searched snapshot in the snapshot list.
6. Click the snapshot name.
7. Navigate to the Restore tab.
8. Click Delete Restore in the line of the restore in question.
9. Click Delete Restore again to confirm.
Possibility 2: Multiple Restore deletion through a checkbox in snapshot
overview
To delete one or more Restores through the Restore list do the following:
1. On the Horizon console, navigate to NBOS Backups > Policies.
2. Identify the policy that contains the snapshot to show.
3. Click the policy name to enter the policy overview.
4. Navigate to the Snapshots tab.
5. Identify the searched snapshot in the snapshot list.
6. Enter the snapshot by clicking the snapshot name.
Performing backups and restores of OpenStack 122
Cancel a Restore
Using CLI
Cancel a Restore
Ongoing Restores can be canceled.
Using Horizon
To cancel a Restore in Horizon follow these steps:
1. On the Horizon console, navigate to NBOS Backups > Policies.
2. Identify the policy that contains the snapshot to delete.
3. Click the policy name to enter the policy overview.
4. Navigate to the Snapshots tab.
5. Identify the searched snapshot in the snapshot list.
6. Click the snapshot name.
7. Navigate to the Restore tab.
8. Identify the ongoing Restore.
9. Click Cancel Restore in the line of the restore in question.
10. Click Cancel Restore again to confirm.
Using CLI
One-Click Restore
The One-Click Restore brings back all VMs from the snapshot in the same state
as they were backed up. They will:
■ be located in the same cluster in the same data center
■ use the same storage domain
■ connect to the same network
■ have the same flavor
The user can’t change any Metadata.
The One-Click Restore requires that the original VMs that have been backed up
are deleted or otherwise lost. Even if one VM is still running, the One-Click Restore
fails.
The One-Click Restore automatically updates the policy to protect the restored
VMs.
Using Horizon
There are two possibilities to start a One-click Restore.
Possibility 1: From the snapshot list
1. On the Horizon console, navigate to NBOS Backups > Policies.
2. Identify the policy that contains the snapshot to be restored.
3. Click the policy name to enter the policy overview.
4. Navigate to the Snapshots tab.
5. Identify the snapshot to be restored.
6. Click One-Click Restore in the same line as the identified snapshot.
7. (Optional) Provide the name and description.
8. Click Create.
Possibility 2: From the snapshot overview
1. On the Horizon console, navigate to NBOS Backups > Policies.
2. Identify the policy that contains the snapshot to be restored.
3. Click the policy name to enter the policy overview.
4. Navigate to the Snapshots tab.
5. Identify the snapshot to be restored.
6. Click the snapshot name.
Performing backups and restores of OpenStack 124
Selective Restore
Using CLI
Selective Restore
The Selective Restore is the most complex restore NetBackup for OpenStack has
to offer. It allows to adapt the restored VMs to the exact needs of the User.
With the selective restore the following things can be changed:
■ Which VMs are getting restored
■ Name of the restored VMs
■ Which networks to connect with
■ Which Storage domain to use
■ Which data center or cluster to restore into
■ Which flavor the restored VMs will use
The Selective Restore is always available and doesn’t have any prerequirements.
Using Horizon
There are two possibilities to start a Selective Restore.
Possibility 1: From the snapshot list
1. On the Horizon console, navigate to NBOS Backups > Policies.
2. Identify the policy that contains the snapshot to be restored.
3. Click the policy name to enter the policy overview.
Performing backups and restores of OpenStack 125
Selective Restore
Using CLI
In-place restore
The In-place restore covers those use cases, where the VM and its volumes are
still available, but the data got corrupted or needs to rollback for other reasons.
It allows the user to restore only the data of a selected volume, which is part of a
backup.
The In-place restore only works when the original VM and the original volume are
still available and connected. NetBackup for OpenStack is checking this by the
saved Object-ID.
The In-place restore will not create any new RHV resources. Please use one of the
other restore options if new volumes or VMs are required.
The In-place restore restarts the instance.
Using Horizon
There are two possibilities to start an In-place restore.
Possibility 1: From the snapshot list
1. On the Horizon console, navigate to NBOS Backups > Policies.
2. Identify the policy that contains the snapshot to be restored.
3. Click the policy name to enter the policy overview.
4. Navigate to the Snapshots tab.
5. Identify the snapshot to be restored.
6. From the drop-down under Actions column, select Inplace Restore.
7. Configure the In-place restore as desired.
8. Click Restore.
Possibility 2: From the snapshot overview
1. On the Horizon console, navigate to NBOS Backups > Policies.
2. Identify the policy that contains the snapshot to be restored.
3. Click the policy name to enter the policy overview.
4. Navigate to the Snapshots tab.
5. Identify the snapshot to be restored.
6. Click the snapshot name.
7. Navigate to the Restores tab.
8. Click Inplace Restore.
Performing backups and restores of OpenStack 127
Required restore.json for CLI
Using CLI
{
name: getjson,
description: -,
oneclickrestore: False,
restore_type: selective,
type: openstack,
openstack:
{
instances:
[
{
Performing backups and restores of OpenStack 128
Required restore.json for CLI
include: True,
id: 890888bc-a001-4b62-a25b-484b34ac6e7e,
name: cdcentOS-1,
availability_zone:,
nics: [],
vdisks:
[
{
id: 4cc2b474-1f1b-4054-a922-497ef5564624,
new_volume_type:,
availability_zone: nova
}
],
flavor:
{
ram: 512,
ephemeral: 0,
vcpus: 1,
swap:,
disk: 1,
id: 1
}
}
],
restore_topology: True,
networks_mapping:
{
networks: []
}
}
}
All further information is only required, when the instance is part of the restore.
■ name New name of the instance
■ network Network the port is assigned to. Contains the following information:
■ new_volume_type The volume type to use for the restored volume. Leave
empty for Volume Type None.
■ availability_zone The Cinder Availability Zone to use for the volume. The
default Availability Zone of Cinder is Nova.
■ flavor Defines the Flavor to use for the restored instance. Contains the following
information:
■ ram How much RAM the restored instance will have (in MB).
■ ephemeralHow big the ephemeral disk of the instance will be (in GB).
■ vcpus How many vcpus the restored instance will have available.
■ swap How big the Swap of the restored instance will be (in MB). Leave empty
for none.
■ disk Size of the root disk the instance will boot with.
Warning: The root disk needs to be at least as big as the root disk of the backed
up instance.
'instances':[
{
'name':'cdcentOS-1-selective',
'availability_zone':'US-East',
'nics':[
{
'mac_address':'fa:16:3e:00:bd:60',
'ip_address':'192.168.0.100',
Performing backups and restores of OpenStack 131
Required restore.json for CLI
'id':'8b871820-f92e-41f6-80b4-00555a649b4c',
'network':{
'subnet':{
'id':'2b1506f4-2a7a-4602-a8b9-b7e8a49f95b8'
},
'id':'d5047e84-077e-4b38-bc43-e3360b0ad174'
}
}
],
'vdisks':[
{
'id':'4cc2b474-1f1b-4054-a922-497ef5564624',
'new_volume_type':'ceph',
'availability_zone':'nova'
}
],
'flavor':{
'ram':2048,
'ephemeral':0,
'vcpus':1,
'swap':'',
'disk':20,
'id':'2'
},
'include':True,
'id':'890888bc-a001-4b62-a25b-484b34ac6e7e'
}
]
Warning: Do not mix network topology restore together with network mapping.
restore_topology:True
restore_topology:False
Performing backups and restores of OpenStack 132
Required restore.json for CLI
{
'description':u '-',
'oneclickrestore':False,
'openstack':{
'instances':[
{
'name':'cdcentOS-1-selective',
'availability_zone':'US-East',
'nics':[
{
'mac_address':'fa:16:3e:00:bd:60',
'ip_address':'192.168.0.100',
'id':'8b871820-f92e-41f6-80b4-00555a649b4c',
'network':{
'subnet':{
'id':'2b1506f4-2a7a-4602-a8b9-b7e8a49f95b8'
},
'id':'d5047e84-077e-4b38-bc43-e3360b0ad174'
}
}
Performing backups and restores of OpenStack 133
Required restore.json for CLI
],
'vdisks':[
{
'id':'4cc2b474-1f1b-4054-a922-497ef5564624',
'new_volume_type':'ceph',
'availability_zone':'nova'
}
],
'flavor':{
'ram':2048,
'ephemeral':0,
'vcpus':1,
'swap':'',
'disk':20,
'id':'2'
},
'include':True,
'id':'890888bc-a001-4b62-a25b-484b34ac6e7e'
}
],
'restore_topology':False,
'networks_mapping':{
'networks':[
{
'snapshot_network':{
'subnet':{
'id':'8b609440-4abf-4acf-a36b-9a0fa70c383c'
},
'id':'8b871820-f92e-41f6-80b4-00555a649b4c'
},
'target_network':{
'subnet':{
'id':'2b1506f4-2a7a-4602-a8b9-b7e8a49f95b8'
},
'id':'d5047e84-077e-4b38-bc43-e3360b0ad174',
'name':'internal'
}
}
]
}
},
'restore_type':'selective',
'type':'openstack',
Performing backups and restores of OpenStack 134
Required restore.json for CLI
'name':'getjson2'
}
When the boot disk is at the same time a Cinder Disk, both values need to be set
true.
■ include Set to True if at least one volume from this instance shall be restored.
■ vdisks List of the disks that are connected to the instance. Each disk contains:
{
'description':u '-',
'name':'Inplace Restore',
'zone':'',
'oneclickrestore':False,
'restore_type':u 'inplace',
'type':u 'openstack',
'openstack':{
'instances':[
{
Performing backups and restores of OpenStack 135
About file search
'restore_boot_disk':True,
'include':True,
'id':'ba8c27ab-06ed-4451-9922-d919171078de',
'vdisks':[
{
'restore_cinder_volume':True,
'id':'04d66b70-6d7c-4d1b-98e0-11059b89cba6',
'new_volume_type':'ceph'
}
]
}
],
'restore_topology':False,
'networks_mapping':{
'networks':[
]
}
}
}
Note: When no snapshot is chosen the file search will not start.
Performing backups and restores of OpenStack 137
Start the File Search and retrieve the results in Horizon
Warning: Do not navigate to any other Horizon tab or website after starting the File
Search. Results are lost and the search has to be repeated to regain them.
After a short time the results will be presented. The results are presented in a tabular
format grouped by snapshots and volumes inside the snapshot.
For each found file or folder the following information are provided:
■ POSIX permissions
■ Amount of links pointing to the file or folder
■ User ID who owns the file or folder
■ Group ID assigned to the file or folder
■ Actual size in Bytes of the file or folder
■ Time of creation
■ Time of last modification
■ Time of last access
■ Full path to the found file or folder
Once the snapshot of interest has been identified it is possible to go directly to the
snapshot using the "View Snapshot" option at the top of the table. It is also possible
to directly mount the snapshot using the "Mount Snapshot" Button at the end of the
table.
[--start_filter <start_filter>]
[--date_from <date_from>]
[--date_to <date_to>]
<vm_id> <file_path>
Spin up an instance from that image. It is recommended to have at least 8GB RAM
for the mount operation. Bigger snapshots may require more RAM.
Steps to apply on CentOS and RHEL cloud images
1 Install and activate qemu-guest-agent.
2 Edit /etc/sysconfig/qemu-ga and remove the following from
BLACKLIST_RPC section.
guest-file-read
guest-file-write
guest-file-open
guest-file-close
4 Install python3.
yum install python3
5 Install lvm2.
yum install lvm2
Mounting a snapshot
Mounting a snapshot to a File Recovery Manager provides read access to all the
data that is located in the mounted snapshot.
Unmount any mounted snapshot once there is no further need to keep it mounted.
Mounted snapshots will not be purged by the Retention policy.
Performing backups and restores of OpenStack 140
Mounting a snapshot
It is possible to run the mounting process against any OpenStack instance. During
this process the instance is restarted.
Always mount snapshots to File Recovery Manager instances only.
Using Horizon
There are 2 possibilities to mount a snapshot in Horizon.
Through the snapshot list
To mount a snapshot through the snapshot list follow these steps:
1. On the Horizon console, navigate to NBOS Backups > Policies.
2. Identify the policy that contains the snapshot to mount.
3. Click the policy name to enter the policy overview.
4. Navigate to the Snapshots tab.
5. Identify the searched snapshot in the snapshot list.
6. From the drop-down under Actions column, select OneClick Restore.
7. Click Mount Snapshot.
8. Choose the File Recovery Manager instance to mount to.
9. Click Mount to confirm.
Should all instances of the project be listed and there is a File Recovery Manager
instance existing verify together with the administrator that the File Recovery
Manager image has the following property set:
nbos_recovery_manager=yes
Should all instances of the project be listed and there is a File Recovery Manager
instance existing verify together with the administrator that the File Recovery
Manager image has the following property set:
nbos_recovery_manager=yes
Using CLI
Each VM in the snapshot has its own directory using the VM_ID as the identifier.
Using Horizon
There are 2 possibilities to identify mounted snapshots inside Horizon.
From the File Recovery Manager instance Metadata
1. On the Horizon console, navigate to Compute > Instances.
2. Identify the File Recovery Manager Instance.
3. Click the name of the File Recovery Manager Instance to bring up its details.
4. On the Overview tab look for Metadata.
5. Identify the value for mounted_snapshot_url
Performing backups and restores of OpenStack 142
Unmounting a snapshot
Note: This value only gets updated, when a new snapshot is mounted.
Using CLI
Unmounting a snapshot
Once a mounted snapshot is no longer needed it is possible and recommended to
unmount the snapshot.
Unmounting a snapshot frees the File Recovery Manager instance to mount the
next snapshot and allows NetBackup for OpenStack retention policy to purge the
former mounted snapshot.
Warning: Deleting the File Recovery Manager instance does not update the
NetBackup for OpenStack appliance. The snapshot will be considered mounted
until an unmount command has been received.
Using Horizon
1. On the Horizon console, navigate to NBOS Backups > Policies.
2. Identify the policy that contains the snapshot to mount.
3. Click the policy name to enter the policy overview.
4. Navigate to the Snapshots tab.
5. Search for the snapshot that has the option Unmount Snapshot.
Performing backups and restores of OpenStack 143
About schedulers
Using CLI
About schedulers
Every policy has its own schedule. Those schedules can be activated, deactivated,
and modified.
A schedule is defined by:
■ Status (Enabled/Disabled)
■ Start Day/Time
■ End Day
■ Hrs between two snapshots
Disable a schedule
Using Horizon
To disable the scheduler of a single policy in Horizon do the following steps:
1. On the Horizon console, navigate to NBOS Backups > Policies.
2. Identify the policy to be modified.
3. From the drop-down under Actions column, select Edit Policy.
4. Navigate to the tab Schedule.
5. Clear Enabled.
6. Click Update.
Using CLI
Enable a schedule
Using Horizon
To enable the scheduler of a single policy in Horizon do the following steps:
1. On the Horizon console, navigate to NBOS Backups > Policies.
2. Identify the policy to be modified.
3. From the drop-down under Actions column, select Edit Policy.
4. Navigate to the tab Schedule.
5. Select Enabled.
6. Click Update.
Using CLI
Modify a schedule
To modify a schedule the policy itself needs to be modified.
See “Edit a policy” on page 107.
As the email will be sent to the owner of the policy the OpenStack User, who
created the policy, is required to have an email address associated.
■ NetBackup for OpenStack E-Mail Server configured
NetBackup for OpenStack needs to know which E-Mail server to use to send
the email notifications. Backup Administrators can do this in their specific area
inside Horizon.
■ Policy Attributes
■ Policy Quotas
■ Managing Trusts
■ Disaster Recovery
Status overview
The status overview is always visible in the NBOS Backup Admin area. It provides
the most needed information at a glance, including:
■ Storage Usage (NFS only)
■ Number of protected VMs compared to number of existing VMs
■ Number of currently running Snapshots
■ Status of NBOS Nodes
■ Status of NBOSDM Services
The status of nodes is filled when the services are running and in good status.
Policies tab
This tab provides information about all currently existing policies. It is the most
important overview tab for every Backup Administrator and therefore the default
tab is shown when the NBOS Backup Admin area is opened.
The following information is shown:
■ User-ID that owns the policy
■ Project that contains the policy
■ Policy name
■ Policy type
■ Availability Zone
■ Number of protected VMs
■ Performance information about the last 30 backups
■ How much data was backed up (green bars)
■ How long did the backup take (red line)
■ Pie chart that shows the number of Full (Blue) Backups compared to Incremental
(Red) Backups
■ Number of successful backups
■ Number of failed backups
Performing Backup Administration tasks 148
NBOS Backup Admin Area
Usage tab
Administrators often need to figure out, where a lot of resources are used up, or
they need to quickly provide usage information to a billing system. This tab helps
in these tasks by providing the following information:
■ Storage used by a Tenant
■ VMs protected by a Tenant
It is possible to drill down to see the same information per policy and finally per
protected VM.
The Usage tab includes policies and VMs that are no longer actively used by a
Tenant, but exist on the backup target.
Nodes tab
This tab displays information about NetBackup for OpenStack cluster nodes. The
following information is shown:
■ Node name
■ Node ID
■ NetBackup for OpenStack Version of the node
■ IP address
■ Active Controller Node (True/False)
■ Status of the Node
The Virtual IP is shown as it’s own node. It is typically shown directly below the
current active Controller Node.
Storage tab
This tab displays information about the backup target storage. It contains the
following information:
■ Storage Name
Clicking on the Storage name provides an overview of all policies that are stored
on that storage.
■ Capacity of the storage
■ Total utilization of the storage
■ Status of the storage
■ Statistic information
■ Percentage all storages are used
■ Percentage how much storage is used for full backups
■ Number of Full backups versus Incremental backups
Audit tab
Audit logs provide the sequence of policy-related activities that users perform such
as policy creation, snapshot creation, and so on. The following information is shown:
■ Date and time of the entry
■ What task has been done
■ Project the task has performed in
■ User that performed the task
The Audit log can be searched for strings to find for example only entries done by
a specific user.
Additionally, the shown time frame can be changed as necessary.
Performing Backup Administration tasks 150
NBOS Backup Admin Area
Settings tab
This tab manages all global settings for the whole cloud. NetBackup for OpenStack
has two types of settings:
1. Email settings
2. Job scheduler settings.
Email Settings
These settings are used by NetBackup for OpenStack to send email reports of
snapshots and restores to users.
Configuring the Email settings is a must-have to provide Email notification to
OpenStack users.
The following information is required to configure the email settings:
■ SMTP server
■ SMTP username
■ SMTP password
■ SMTP port
■ SMTP time-out
■ Sender email address
A test email can be sent directly from the configuration page.
To work with email settings through CLI use the following commands:
To set an email setting for the first time or after deletion use:
■ --metadata Sets if the setting can be seen publicly. Not required for email
settings.
■ <name> Name of the setting.
■ <value> Value of the setting.
To update an already set email setting through CLI use:
■ --metadata Sets if the setting can be seen publicly. Not required for email
settings.
■ <name> Name of the setting.
■ --get_hidden Hidden settings (True) or not (False). Not required for email
settings, use False if set.
■ <setting_name> Name of the setting to show.
smtp_timeout Integer 10
nbosjm get-global-job-scheduler
nbosjm disable-global-job-scheduler
nbosjm enable-global-job-scheduler
Policy Attributes
NetBackup for OpenStack’s tenant driven backup service gives tenants control over
backup policies. However, sometimes it may be too much control to tenants and
the cloud administrators may want to limit what policies are allowed by tenants. For
example, a tenant may exceed its quota by performing full backups at a very high
frequency. If every tenant was to pursue such backup policy, it may affect the
resource limits set on the cloud infrastructure. Instead, if the cloud administrator
can define predefined backup policies and each tenant is only limited to those
policies then cloud administrators can exert better control over backup service.
Policy is similar to nova flavor where a tenant cannot create arbitrary instances.
Instead, each tenant is only allowed to use the nova flavors published by the admin.
Using CLI
nbosjm policy-list
8. Click Create.
Using CLI
[--display-description <display_description>]
[--metadata <key=key-name>]
[--display-name <display-name>]
Using CLI
Assign/Remove a policy
Using Horizon
To assign or remove a policy in Horizon follow these steps:
1. Log on to Horizon using admin user.
2. Navigate to Admin > NBOS Backup Admin > NetBackupOpenStack > Policy
Attributes.
3. Identify the policy attribute to assign/remove.
4. Click the drop-down at the end of the line of the chosen policy.
5. Click Add/Remove Projects.
6. Choose projects to add or remove by using the plus or minus options.
7. Click Apply.
Using CLI
Delete a policy
Using Horizon
To delete a policy in Horizon follow these steps:
1. Log on to Horizon using admin user.
2. Navigate to Admin > NBOS Backup Admin > NetBackupOpenStack > Policy
Attributes.
3. Identify the policy to assign/remove.
4. Click the drop-down at the end of the line of the chosen policy.
5. Click Delete Policy
6. Click Delete to confirm.
Using CLI
Policy Quotas
NetBackup for OpenStack enables OpenStack administrators to set Project Quotas
against the usage of NetBackup for OpenStack.
The following Quotas can be set:
■ Number of policies a Project is allowed to have
■ Number of Snapshots a Project is allowed to have
■ Number of VMs a Project is allowed to protect
■ Amount of Storage a Project is allowed to use on the Backup Target
Note: NetBackup for OpenStack 9.0.0.1 does not yet have the Quota Type Volume
integrated. Using this will not generate any Quotas a Tenant has to apply to.
nbosjm project-quota-type-list
Performing Backup Administration tasks 160
Policy Quotas
Create a Quota
The following command will create a Quota for a given project and set the provided
value.
The high watermark is automatically set to 80% of the allowed value when set via
Horizon.
A created Quota will generate an allowed_quota_object with its own ID. This ID is
needed when continuing to work with the created Quota.
Managing Trusts
NetBackup for OpenStack is using the OpenStack Keystone Trust system which
enables the NetBackup for OpenStack service user to act in the name of another
OpenStack user.
This system is used during all backup and restore features.
OpenStack Administrators should never have the need to directly work with the
trusts created. The cloud-trust is created during the NetBackup for OpenStack
configuration and further trusts are created as necessary upon creating or modifying
a policy.
Trusts can only be worked with via CLI
Performing Backup Administration tasks 162
Policy import and migration
nbosjm trust-list
Show a trust
Create a trust
Delete a trust
Import policies
Policy import allows to import policies existing on the Backup Target into the
NetBackup for OpenStack database.
The policy import is designed to import policies, which are owned by the Cloud. It
will not import or list any policies that are owned by a different cloud.
To get a list of importable policys use the following CLI command:
To import policies into the NetBackup for OpenStack database use the following
CLI command:
■ --policyids <policyid> Specify policy ids to import. Repeat option for multiple
policies.
Orphaned policies
The definition of an orphaned policy is from the perspective of a specific NetBackup
for OpenStack installation. Any policy that is located on the Backup Target Storage,
but not known to the NetBackup for OpenStack installation is considered orphaned.
Further is to divide between policys that were previously owned by Projects/Users
in the same cloud or are migrated from a different cloud.
The following CLI command provides the list of orphaned policys:
Reassigning policies
OpenStack administrators are able to reassign a policy to a new owner. This involves
the possibility to migrate a policy from one cloud to another or between projects.
Warning: Reassigning a policy only changes the database of the target NetBackup
for OpenStack installation. Now that it is managed by a different NetBackup
installation, the original source installation is not updated.
nbosjm policy-reassign-policies
[--old_tenant_ids <old_tenant_id>]
[--new_tenant_id <new_tenant_id>]
[--policy_ids <policy-id>]
[--user_id <user_id>]
[--migrate_cloud {True,False}]
[--map_file <map_file>]
reassign_mappings:
- old_tenant_ids: [] #user can provide list of old_tenant_ids or
policy_ids
new_tenant_id: new_tenant_id
user_id: user_id
policy_ids: [] #user can provide list of old_tenant_ids or policy_ids
migrate_cloud: True/False #Set to True if want to reassign policies from
# other clouds as well. Default is False
Disaster Recovery
NetBackup for OpenStack policies are designed to allow a Disaster Recovery
without the need to backup the NetBackup for OpenStack database.
As long as the NetBackup for OpenStack policies are existing on the Backup Target
Storage and a NetBackup for OpenStack installation has access to them, it is
possible to restore the policies.
Mount-paths
NetBackup for OpenStack incremental Snapshots involve a backing file to the prior
backup taken, which makes every NetBackup for OpenStack incremental backup
a synthetic full backup.
NetBackup for OpenStack is using qcow2 backing files for this feature:
As can be seen in the example, the backing file is an absolute path, which makes
it necessary, that this path exists so the backing files can be accessed.
NetBackup for OpenStack is using the base64 hashing algorithm for the NFS
mount-paths, to allow the configuration of multiple NFS Volumes at the same time.
The hash value is calculated using the provided NFS path.
If the path of the backing file is not available on the NetBackup for OpenStack VM
and Compute nodes, the restores of incremental backups fails.
The tested and recommended method to make the backing files available is creating
the required directory path and using mount --bind to make the path available for
the backups.
Running the mount –bind command will make the necessary path available until
the next reboot. If it is required to have access to the path beyond a reboot, it is
necessary to edit the fstab.
#vi /etc/fstab
<mount-path1> <mount-path2> none bind 0 0
Scenario
There are two OpenStack clouds available OpenStack Cloud A and OpenStack
Cloud B". OpenStack Cloud B is the disaster recovery restore point of OpenStack
Cloud A and vice versa. Both clouds have an independent NetBackup for OpenStack
installation integrated. These NetBackup for OpenStack installations write their
Backups to NFS targets. "NetBackup for OpenStack A" is writing to "NFS A1" and
"NetBackup for OpenStack B" is writing to "NFS B1". The NFS Volumes used are
getting synced against another NFS Volume on the other side. "NFS A1" is syncing
with "NFS B2" and "NFS B1" is syncing with "NFS A2". The syncing process is set
up independently from NetBackup for OpenStack and will always favor the newer
dataset.
Performing Backup Administration tasks 168
Example runbook for disaster recovery using NFS
Uses Uses
Writes to Writes to
Syncs with
This scenario covers the disaster recovery of a single policy and a complete Cloud.
All processes are done be the OpenStack administrator.
In the case of the usage of shared Tenant networks, beyond the floating IP, the
following additional requirement is needed: All Tenant Networks, Routers, Ports,
Floating IPs, and DNS Zones are created.
Note: This process only shows how to get a policy from OpenStack Cloud A to
OpenStack Cloud B. The vice versa process is similar.
As only a single policy is to be recovered it is more efficient to copy the data of that
single policy over to the NFS B1 Volume, which is used by "NetBackup for
OpenStack B".
policy_ac9cae9b-5e1b-4899-930c-6aa0600a2105
In case the policy ID is not known, it can be available in the backup metadata within
the policy directories.
Performing Backup Administration tasks 170
Example runbook for disaster recovery using NFS
# cp /mnt/policy_ac9cae9b-5e1b-4899-930c-6aa0600a2105 /var/
NetBackupOpenStack-mounts/MTAuMTAuMi4yMDovdXBzdHJlYW0=/
policy_ac9cae9b-5e1b-4899-930c-6aa0600a2105
# chown -R nova:nova /var/NetBackupOpenStack-mounts/
MTAuMTAuMi4yMDovdXBzdHJlYW0=/policy_ac9cae9b-5e1b-4899-
930c-6aa0600a2105
# chmod -R 644 /var/NetBackupOpenStack-mounts/
MTAuMTAuMi4yMDovdXBzdHJlYW0=/policy_ac9cae9b-5e1b-
4899-930c-6aa0600a2105
refcount bits: 16
corrupt: false
and
/var/NetBackupOpenStack-mounts/MTAuMjAuMy4yMjovdXBzdHJlYW1fdGFyZ2V0
In the scenario the mount path of the NFS Share_A1 needs to be created and bound
to the target cloud.
#mkdir /var/NetBackupOpenStack-mounts/
MTAuMTAuMi4yMDovdXBzdHJlYW1fc291cmNl
Performing Backup Administration tasks 172
Example runbook for disaster recovery using NFS
#mount --bind
/var/NetBackupOpenStack-mounts/MTAuMjAuMy4yMjovdXBzdHJlYW1fdGFyZ2V0/
/var/NetBackupOpenStack-mounts/MTAuMTAuMi4yMDovdXBzdHJlYW1fc291cmNl
To keep the desired mount past a restart it is recommended to edit the fstab of all
compute nodes accordingly.
#vi /etc/fstab
/var/NetBackupOpenStack-mounts/MTAuMjAuMy4yMjovdXBzdHJlYW1fdGFyZ2V0/
/var/NetBackup for OpenStack-mounts/ MTAuMTAuMi4yMDovdXBzdHJlYW1fc291cmNl
none bind 0 0
List available users on the Target Cloud in the Target Project that have
the right backup trustee role
To allow project owners to work with the policies and ensure that the policy is
assigned to the user with the backup trustee role.
List all Snapshots of the policy to restore to identify the snapshot to restore
Get Snapshot Details with network details for the desired snapshot
Get Snapshot Details with disk details for the desired Snapshot.
{
u'description':u'<description of the restore>',
u'oneclickrestore':False,
u'restore_type':u'selective',
u'type':u'OpenStack',
u'name':u'<name of the restore>'
u'OpenStack':{
u'instances':[
{
u'name':u'<name instance 1>',
u'availability_zone':u'<AZ instance 1>',
u'nics':[ #####Leave empty for network topology restore
],
u'vdisks':[
{
u'id':u'<old disk id>',
u'new_volume_type':u'<new volume type name>',
u'availability_zone':u'<new cinder volume AZ>'
}
],
u'flavor':{
u'ram':<RAM in MB>,
u'ephemeral':<GB of ephemeral disk>,
Performing Backup Administration tasks 175
Example runbook for disaster recovery using NFS
u'vcpus':<# vCPUs>,
u'swap':u'<GB of Swap disk>',
u'disk':<GB of boot disk>,
u'id':u'<id of the flavor to use>'
},
u'include':<True/False>,
u'id':u'<old id of the instance>'
} #####Repeat for each instance in the snapshot
],
u'restore_topology':<True/False>,
u'networks_mapping':{
u'networks':[ #####Leave empty for network topology restore
]
}
}
}
Clean up
After the Disaster Recovery Process has been successfully completed it is
recommended to bring the nbosvm installation back into its original state to be ready
for the next DR process.
# vi /etc/nbosjm/nbosjm.conf
vault_storage_nfs_export = <NFS_B1/NFS_B1-FQDN>:/<VOL-B1-Path>
Add NFS B2 to that as comma-separated list. Space is not necessary, but can be
set.
vault_storage_nfs_export = <NFS-IP/NFS-FQDN>:/<VOL-1-Path>,
<NFS-IP/NFS-FQDN>:/<VOL—2-Path>
# vi /etc/nbosdm/nbosdm.conf
vault_storage_nfs_export = <NFS_B1-IP/NFS_B1-FQDN>:/<VOL-B1-Path>
Add NFS B2 to that as comma-separated list. Space is not necessary, but can be
set.
vault_storage_nfs_export = <NFS_B1-IP/NFS-FQDN>:/<VOL-B1-Path>,
<NFS_B2-IP/NFS-FQDN>:/<VOL—B2-Path>
/policy_ac9cae9b-5e1b-4899-930c-6aa0600a2105/snapshot_1415095d
-c047-400b-8b05-c88e57011263/vm_id_38b620f1-24ae-41d7-b0ab-85ffc
2d7958b/vm_res_id_d4ab3431-5ce3-4a8f-a90b-07606e2ffa33_vda/7c39eb
6a-6e42-418e-8690-b6368ecaa7bb
Format specific information:
compat: 1.1
lazy refcounts: false
refcount bits: 16
corrupt: false
and
/var/NetBackupOpenStack-mounts/MTAuMjAuMy4yMjovdXBzdHJlYW1fdGFyZ2V0
Performing Backup Administration tasks 180
Example runbook for disaster recovery using NFS
In the scenario the mount path of the NFS Share_A1 needs to be created and bound
to the target cloud.
#mkdir /var/NetBackupOpenStack-mounts/MTAuMTAuMi4yMDovdXBzdHJlYW1fc291cmNl
#mount --bind
/var/NetBackupOpenStack-mounts/MTAuMjAuMy4yMjovdXBzdHJlYW1fdGFyZ2V0/
/var/NetBackup for OpenStack-mounts/MTAuMTAuMi4yMDovdXBzdHJlYW1fc291cmNl
To keep the desired mount past a restart it is recommended to edit the fstab of all
compute nodes accordingly.
#vi /etc/fstab
/var/NetBackupOpenStack-mounts/MTAuMjAuMy4yMjovdXBzdHJlYW1fdGFyZ2V0/
/ var/NetBackup for OpenStack-mounts/ MTAuMTAuMi4yMDovdXBzdHJlYW1fc291cmNl
none bind 0 0
accessible on the NFS-Share, that is not assigned to any existing project in the
Cloud the NetBackup for OpenStack installation is protecting.
List available users on the Target Cloud in the Target Project that have
the right backup trustee role
To allow project owners to work with the policies and ensure that the policy is
assigned to the user with the backup trustee role.
Get Snapshot Details with network details for the desired snapshot.
Get Snapshot Details with disk details for the desired Snapshot.
{
u'description':u'<description of the restore>',
u'oneclickrestore':False,
u'restore_type':u'selective',
u'type':u'OpenStack',
u'name':u'<name of the restore>'
u'OpenStack':{
u'instances':[
{
u'name':u'<name instance 1>',
u'availability_zone':u'<AZ instance 1>',
u'nics':[ #####Leave empty for network topology restore
],
u'vdisks':[
{
u'id':u'<old disk id>',
u'new_volume_type':u'<new volume type name>',
u'availability_zone':u'<new cinder volume AZ>'
}
Performing Backup Administration tasks 183
Example runbook for disaster recovery using NFS
],
u'flavor':{
u'ram':<RAM in MB>,
u'ephemeral':<GB of ephemeral disk>,
u'vcpus':<# vCPUs>,
u'swap':u'<GB of Swap disk>',
u'disk':<GB of boot disk>,
u'id':u'<id of the flavor to use>'
},
u'include':<True/False>,
u'id':u'<old id of the instance>'
} #####Repeat for each instance in the snapshot
],
u'restore_topology':<True/False>,
u'networks_mapping':{
u'networks':[ #####Leave empty for network topology restore
]
}
}
}
# vi /etc/nbosjm/nbosjm.conf
vault_storage_nfs_export = <NFS_B1-IP/NFS-FQDN>:/<VOL-B1-Path>,
<NFS_B2-IP/NFS-FQDN>:/<VOL—B2-Path>
vault_storage_nfs_export = <NFS_B1-IP/NFS_B1-FQDN>:/<VOL-B1-Path>
To delete the NFS B2 to the NetBackup for OpenStack Datamovers manually the
nbosdm.conf file needs to be edited and the service restarted.
Edit the nbosdm.conf.
# vi /etc/nbosdm/nbosdm.conf
vault_storage_nfs_export = <NFS_B1-IP/NFS-FQDN>:/<VOL-B1-Path>,
<NFS_B2-IP/NFS-FQDN>:/<VOL—B2-Path>
vault_storage_nfs_export = <NFS-IP/NFS-FQDN>:/<VOL-1-Path>
Clean up
After the disaster recovery Process has been successfully completed and the
NetBackup for OpenStack installation that is reconfigured to its original state, it is
recommended to do the following additional steps to be ready for the next disaster
recovery process.
To allow the NetBackup for OpenStack installation to be ready for another disaster
recovery it is necessary to completely delete the entries of the policies, which have
been restored.
NetBackup for OpenStack does provide and maintain a script to safely delete policy
entries and all connected entities from the NetBackup for OpenStack database.
■ Using the nbosjm CLI tool on the NetBackup for OpenStack Appliance
■ About permission denied error when same NFS share path is used across
multiple OpenStack distributions
nbosdmapi
The nbosdmapi service is the connector between the NetBackup for OpenStack
cluster and the datamover running on the compute nodes.
The purpose of the nbosdmapi service is to identify which compute node is
responsible for the current backup or restore task. To do so, the nbosdmapi service
connects to the nova api database requesting the compute host of a provided VM.
Once the compute host has been identified the nbosdmapi forwards the command
from the NetBackup for OpenStack Cluster to the datamover running on the identified
compute host.
nbosdm
The nbosdm is the NetBackup for OpenStack service running on the compute
nodes.
Each datamover is responsible for the VMs running on top of its compute node. A
datamover cannot work with VMs running on a different compute node.
The datamover controls the freeze and thaw of VMs as well as the actual movement
of the data.
Troubleshooting 189
General Troubleshooting Tips
OpenStack Quotas
To protect the Cinder volumes, NetBackup for OpenStack creates Cinder snapshots
and additional temporary Cinder volumes. The tenant administrator must configure
the OpenStack quotas accordingly to provision adequate snapshots and the volumes
that full and incremental backups need. The temporary volumes are used to generate
disk map information per disk, and to calculate incrementally changed data.
Volume quota requirement is based on the total number of disks getting backed up
simultaneously though one or more policies. As number of simultaneous backups
increase, more volume quota is required. Tenant administrator can determine the
volume quota by calculating the sum of total number of instances and the total
number of disks attached to those instances. For example, you want to protect 10
instances and each instance has two disks attached. To protect these instances
simultaneously through one or more policies, the required volume quota is 30.
NetBackup for OpenStack does not protect the ephemeral disk that is allocated to
the VM instance.
source /home/stack/myansible/bin/activate
├─12983 /home/stack/myansible/bin/python
/home/stack/myansible/bin/nbosjm-policies
--config-file=/etc/nbosjm/nbosjm.conf
├─12984 /home/stack/myansible/bin/python
/home/stack/myansible/bin/nbosjm-policies
--config-file=/etc/nbosjm/nbosjm.conf
[...]
nbosjm-api
This service runs and is active on every NetBackup for OpenStack node.
nbosjm-scheduler
This service runs and is active on every NetBackup for OpenStack node.
nbosjm-cron
This service is controlled by pacemaker and runs only on the master node
WARNINGS:
Corosync and pacemaker node names do not match (IPs used in setup?)
Stack: corosync
Current DC: nbosvm1-ansible-ussuri-ubuntu18-vagrant (version
1.1.23-1.el7_9.1-9acf116022) - chapterition with quorum
Last updated: Wed Feb 3 19:20:02 2021
Last change: Wed Jan 27 20:00:12 2021 by root via crm_resource on
nbosvm1-ansible-ussuri-ubuntu18-vagrant
1 node configured
6 resource instances configured
Online: [ nbosvm1-ansible-ussuri-ubuntu18-vagrant ]
Started: [ nbosvm1-ansible-ussuri-ubuntu18-vagrant ]
Daemon Status:
corosync: active/enabled
pacemaker: active/enabled
pcsd: active/enabled
Mount availability
The NetBackup for OpenStack Cluster needs access to the Backup Target and
should have the correct mount at all times.
[root@Upstream ~]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 3.8G 0 3.8G 0% /dev
tmpfs 3.8G 38M 3.8G 1% /dev/shm
tmpfs 3.8G 427M 3.4G 12% /run
tmpfs 3.8G 0 3.8G 0% /sys/fs/cgroup
/dev/vda1 40G 8.8G 32G 22% /
tmpfs 773M 0 773M 0% /run/user/996
tmpfs 773M 0 773M 0% /run/user/0
10.10.2.20:/upstream 1008G 704G 254G 74% /var/NetBackupOpenStack-mounts/
MTAuMTAuMi4yMDovdXBzdHJlYW0=
10.10.2.20:/upstream2 483G 22G 462G 5% /var/NetBackupOpenStack-mounts/
MTAuMTAuMi4yMDovdXBzdHJlYW0y
The next important log is the nbosjm-api.log, which contains all logs about API calls
received by the NetBackup for OpenStack Cluster. It can be found at:
/var/log/nbosjm/nbosjm-api.log
The log for the third service is the nbosjm-scheduler.log, which contains all logs
about the internal job scheduling between NetBackup for OpenStack nodes in the
NetBackup for OpenStack Cluster.
/var/log/nbosjm/nbosjm-scheduler.log
The last service running on the NetBackup for OpenStack Nodes is the nbosjm-cron
service, which controls the scheduled automated backups.
/var/log/nbosjm/nbosjm-cron.log
In case of using S3 as a backup target, there is also a log file that keeps track of
the S3-Fuse plug-in that is used to connect with the S3 storage.
/var/log/nbosjm/s3vaultfuse.py.log
■ nbosdm log
The log for the NetBackup for OpenStack Datamover service is located on the
nodes, typically compute, where the NetBackup for OpenStack Datamover
container is running under:
/var/log/containers/nbosdm/nbosdm.log
In case of S3 being used in the log for the S3 Fuse plug-in that is located on
the same nodes under:
/var/log/containers/nbosdm/nbos-object-store.log
For VxMS-supported Linux file systems, VxMS logs for the incremental backups
are stored at the following location: /usr/openv/netbackup/logs/vxms/
VxMS log level is defined in /usr/openv/netbackup/bp.conf file and it is configured
to 3 by default.
VXMS_VERBOSE = 3
You can configure the log level from 0 to 5. Higher number results in more verbose
logs.
Troubleshooting 197
Important log files
Note: VxMS log may take significant disk space when the log verbosity is set to
high. Ensure that you clean up the VxMS log files periodically to avoid any disk
space-related issues.
0 No logging
1 Error logging
4 Same as level 3.
■ nbosdm log
The log for the NetBackup for OpenStack Datamover service is typically located
on the compute nodes and the logs can be found here:
/var/log/nbosdm/nbosdm.log
In case of S3 being used in the log for the S3 Fuse plug-in that is located on
the same nodes under:
/var/log/nbos-object-store/nbos-object-store.log
For VxMS-supported Linux file systems, VxMS logs for the incremental backups
are stored at the following location: /usr/openv/netbackup/logs/vxms/
Troubleshooting 198
Important log files
You can configure the log level from 0 to 5. Higher number results in more verbose
logs.
Note: VxMS log may take significant disk space when the log verbosity is set to
high. Ensure that you clean up the VxMS log files periodically to avoid any disk
space-related issues.
0 No logging
1 Error logging
4 Same as level 3.
Note: This issue is applicable only for Windows Server 2022, Windows Server
2019, Windows Server 2016, Windows Server 2012 R2, and Windows Server 2012.