How to set a block device exclusion for the Linux replication agent

How to set a block device exclusion for the Linux replication agent

Task

Set a block device exclusion for the Linux replication agent.

Solution

In case there are disks on the machines that don't need to be replicated, they can be excluded by setting certain parameters in the cbt.conf configuration file.


1 Stop the service with the following command:  service hlragent stop

2 Open the cbt.conf file. The cbt.conf file is located in the folder /etc/hystax/acura/.   sudo vi cbt.conf

3 Add the following parameters to indicate the required drives:


cbt.conf - example


"excluded_block_devices" :

 [

   "/dev/sda",

   "/dev/sdb"

 ],


4. Start the service.  service hlragent start 

 

Behavior:

After the device's exclusion, it will be skipped during the next backup: a snapshot of this volume hasn't been taken, and a cloud volume of the disk isn't created.