NetApp Cluster Backup Using OnTAP API

With NetApp NDMP systems, it is also possible to configure the Bacula Enterprise NDMP Plugin to contact the node hosting a volume for the NDMP session via the OnTap API. The CAB extension is the recommended configuration to use.

Note

Available since Bacula Enterprise 16.0.1

For this configuration, it is required to configure the following:

  • Install the python OnTap API via pip3 install netapp-ontap --target=/opt/bacula/python

  • Create and configure the /opt/bacula/etc/ontap.conf file with OnTAP API related information

  • Create and configure the /opt/bacula/etc/ndmp.conf file with NDMP related information

  • One NDMP LIF per cluster node (role data)

  • Use the DUMP method

In the following example, the OnTAP configuration should allow Bacula to query the OnTAP api.

# cat /opt/bacula/etc/ontap.conf
[svm1]
ontap_host=netapp-ontap-api.lan
ontap_user=bacula
ontap_password=AVeryGoodPassword?
ontap_vserver=svm1
ontap_ignore_ssl=True

In the following ndmp configuration file, the NDMP protocol must be configured on one of the node of the cluster.

# cat /opt/bacula/etc/ndmp.conf
[--svm1]
-D netapp-cluster1.lan/m,bacula,Xlkdflkdd

The snapmgr.py tool can be used to test the NetApp cluster configuration with the following command:

# /opt/bacula/bin/snapmgr.py -o svm1 -M
volume=/svm1/volume1 aggr=ONTAP97_02_FC_1
volume=/svm1/svm1_root node=ONTAP97-01 aggr=ONTAP97_01_FC_1 ip=10.0.110.93

The final FileSet plugin command line should look like the following:

FileSet {
   Name = "ndmp-ONTAP"
   Include {
     Plugin = "ndmp: profile=svm1 ontap_profile=svm1 host=svm1 volume=/svm1/volume1"
   }
}

Some FlexGroup volumes may cause issues with the detection, it is possible to assign statically the node to connect to in the ontap.conf file.

# cat /opt/bacula/etc/ontap.conf
[svm1]
ontap_user = bacula
....

[svm1.flexgroup]
volume1 = 1.2.3.4
volume2 = 1.2.3.4

Go back to the main NetApp Configuration page.

Go back to the main NDMP Configuration page.

Go back to the main Dedicated Backup Solutions page.