File System

In this section, we'll show you how to set up a file system (it can be a local or remote file system, but this example assumes that you have a dedicated disk that you're going to use as a backup destination with a local XFS file system)

Preparation

  1. Log in to vPlus Node and create the mount directory as in the example /backupdestination

    mkdir /backupdestination
  2. List all existing disks and find your drive:

    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. Prepare a filesystem on it:

    mkfs.xfs -K /dev/sdc
  4. Add permission for the vPlus user to access the directory /backupdestination

    • we assume here that you use a separate file system than your staging space

    • as an alternative, you also can point vPlus to use a subdirectory on the same file system as your staging space, i.e. /vprotect_data/backups (which you probably don't have to initialize at this point, as you may have already prepared it in the Staging space configuration, and you can just jump to the Web UI part in the next steps).

    chown vprotect:vprotect -R /backupdestination
  5. Add this line to the /etc/fstab file to automatically mount new the filesystem after reboot:

    /dev/sdc    /backupdestination    xfs    defaults 0 0

    or if you want to store backups on NFS share then it will look like this (where 10.50.1.28 is your host):

    10.50.1.28:/example_nfs_share /backupdestination nfs defaults  0 0
  6. Check if the fstab entry is OK and mount the filesystem:

    mount /backupdestination
  7. Log in to the vPlus web UI.

  8. Go to Backup Destinations.

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

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

  11. You have to decide if your backup destination is a separate entity from the staging space.

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

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

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

      • In Storage paths type /vprotect_data/backups, where you point to a subdirectory (i.e. backups on your staging space path, i.e. /vprotect_data).

  12. Save the configuration.