Virtual Data Optimizer (VDO)

In this section, you can find information on how to enable deduplication using basically any block storage available. We assume that you have prepared your storage provider and have exposed the block device to the system where Storware Backup & Recovery Node is installed.

Preparation

Disable Secure Boot option for the VM to allow VDO work properly. Run below command to check status of Secure Boot option:

mokutil --sb-state
  1. Log in to Storware Backup & Recovery Node and create a mount directory as in the example /backupdestination

    mkdir /backupdestination
  2. List all existing disks, and find your drive. Let's assume /dev/sdc is your empty block device that you want to use:

    [root@vProtect01 ~]# fdisk -l | grep dev
    Disk /dev/sda: 32.2 GB, 32212254720 bytes, 62914560 sectors
    /dev/sda1   *        2048     1026047      512000   83  Linux
    /dev/sda2         1026048    62914559    30944256   8e  Linux LVM
    Disk /dev/sdc: 500 GB, 17179869184 bytes, 33554432 sectors
    Disk /dev/sdb: 21.5 GB, 21474836480 bytes, 41943040 sectors
    Disk /dev/mapper/centos-root: 28.5 GB, 28462546944 bytes, 55590912 sectors
    Disk /dev/mapper/centos-swap: 3221 MB, 3221225472 bytes, 6291456 sectors
  3. Log in to the vProtect web UI.

  4. Go to Backup Destinations.

  5. Click on Create Backup Destination, choose a File system.

  6. Type the name for the new backup destination, set the retention, and select at least one node configuration.

  7. Based on whether the staging space is same as backup destination or not, do one of the following:

    • If the staging space is different than your backup destination storage:

      • In Storage paths type /backupdestination - this path will be used to mount the prepared file system (XFS) on top of the VDO volume.

      • Check Enable deduplication.

      • Provide your block device (for example /dev/sdc) as your Deduplication device.

    • If the staging space needs to be the same as your backup destination storage:

      • In Storage paths type /vprotect_data/backups - this path assumes that /vprotect_data is your staging space path and backups is a subdirectory of the staging space.

      • Check Enable deduplication.

      • Provide your block device (for example /dev/sdc) as your Deduplication device.

      • Enable Mount deduplicated file system to a different directory than backup destination path and provide the mount point - your staging space path, for example /vprotect_data - this will force Storware Backup & Recovery to mount XFS on top of VDO in the staging space directory rather than in the backup subdirectory.

Note: Only one file system backup destination with deduplication using VDO pointing to a specific directory can be used. If you want to add another backup destination using the same VDO device, but just a different subdirectory, create it without deduplication enabled.

Importing existing VDO volumes to LVM

The python-based VDO management software has been deprecated and removed from RHEL 9/CentOS 9 Stream. It has been replaced by the LVM-VDO integration. If you are using VDO on RHEL 8/CentOS 8 Stream and plan to upgrade to version 9, you need to convert VDO volume.

In this example we have VDO volume called VDOexample created and managed by Storware Backup & Recovery.

  1. On Storware Backup & Recovery Node, stop vprotect-node service.

  2. Unmount VDO volume from backup destination path.

  3. Convert VDO volume. Change /dev/sdb to the device on which you have created VDO.

  4. Rename volume group and logical volume names. They must be the same as the original VDO volume name.

  5. Edit /etc/yum.repos.d/vProtect.repo and change baseurl to point to el9.

  6. On Storware Backup & Recovery Server machine, create a vprotect database backup and copy it to safe place. Wait for all tasks to finish before stopping the vprotect-server service.

  7. Login to mysql and execute below SQL query.

  8. Start vprotect-server service.

  9. Proceed with the system upgrade of the Storware Backup & Recovery Node machine. After the reboot, you should have new LVM-VDO mounted on your backupdestination directory.