Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Moving Backups to an NFS

You must ensure that the JSA appliance can connect with the NFS server.

You can configure Network File System (NFS) for a stand-alone JSA appliance, or a JSA appliance that you are making the primary host in an HA deployment.

Note:

Maintain a local copy (backup.nfs) of your backup on your system so if the NFS mount fails the backups are still available. Monitor the directory that holds the local backups carefully to ensure the directory you use to hold your backups doesn't cause any disk storage issues.

Warning:

If you use NFS or a Windows share for offboard storage, your system can lock and cause an outage. This practice is not supported by JSA.

Even though the risk is low with a Linux OS, ransomware can encrypt all mounted remote drives. If you use an NFS mount, you can reduce your risk by mounting only the NFS drive while you copy data from a local drive to the NFS-mounted drive. Then, remove the NFS-mounted drive for daily operations.

If you choose to use NFS anyway, NFS can be used only for daily backup data, such as the /store/ backup directory. You cannot use NFS for storing active data, which includes the PostgreSQL and ariel databases. If you do use NFS, it might cause database corruption or performance issues.

  1. Run nightly backups to the local drive, /store/backup.
  2. Using SSH, log in to JSA host as the root user.
  3. Start NFS services by typing the following commands:
  4. Add the following line to the /etc/fstab file.

    nfsserver:/nfs/export/path /store/backup nfs rw,soft,intr,noac 0 0

    You might need to adjust the settings for the NFS mount point to accommodate your configuration.

  5. Move your backup files from the existing directory to a temporary location by typing the following commands:
  6. Create a new backup directory by typing the following command:
  7. Set the permissions for the NFS volume by typing the following command:
  8. Mount the NFS volume by typing the following command:

    The root user must have read and write access to the mounted NFS volume because the hostcontext process runs as root user.

    Use the local copy of your backup that you created. See NOTE.

  9. Verify that /store/backup is mounted by typing the following command:
  10. Copy the backup files from the temporary location to the NFS volume by typing the following command:
  11. Verify the files by typing the following commands:

    If you see differences between the files, stop and determine the reason. One reason might be that your copy filled the destination partition, or another reason might be that there was a network outage during your copy procedure.

  12. After you verify the copy procedure was successful, remove the backup.local directory by typing the following commands:

    When you remove the backup.local directory, you prevent the local partition from filling.

    If you are setting up NFS for a new HA deployment, follow the instructions in Configuring a mount point for a secondary HA host for your secondary HA appliance.