Creating a filesystem for application data backups

This procedure requires one unused device or partition, or a remote file server that is compatible with XFS.

Use this procedure create an XFS filesystem on a device or partition, or to mount a remote filesystem, for application data backups.

  1. Log in to the target host as root, or as a user with superuser privileges.
  2. Optional: Identify the target device or partition for the filesystem to create, if necessary.
    Skip this step if you are using a remote file server.
    lsblk -ap --output=NAME,SIZE,TYPE,FSTYPE,MOUNTPOINT
  3. Optional: Create an XFS filesystem, if necessary.
    Skip this step if you are using a remote file server.
    Replace Storage with the path of the target device or partition:
    mkfs.xfs Storage
  4. Create an entry in the /etc/fstab file.

    Replace File-System-Specification with one of the following values:

    • the path of the device or partition used in the previous step
    • the remote server specification
    echo "File-System-Specification \
      /opt/serviced/var/backups xfs defaults 0 0" >> /etc/fstab
  5. Create the mount point for backup data.
    mkdir -p /opt/serviced/var/backups
  6. Mount the filesystem, and then verify it mounted correctly.
    mount -a && mount | grep backups
    Example result:
    /dev/sdb3 on /opt/serviced/var/backups type xfs (rw,relatime,seclabel,attr2,inode64,noquota)