Attaching the Backup Volume

Scenarios

Attach the backup volume on NFS servers to SAP HANA nodes. If you use SFS Turbo to provide shared file storage, skip this section. For details about how to mount the backup volumes, see section Formatting a Disk in the SAP HANA User Guide.

Procedure

  1. Log in to the active SAP HANA node and attach the backup volume to the active SAP HANA node.

    1. Run the following command to create the /hana/backup directory:

      mkdir -p /hana/backup

    2. Run the following command to assign permissions to /backup:

      chmod -R 777 /hana/backup

    3. Add the following content to the end of the /etc/auto.master file:
      /- /etc/hananfs.direct
    4. Create and edit the /etc/hananfs.direct file.

      vi /etc/hananfs.direct

      Add a sharing record. In this example, the floating IP address of the NFS server is 10.0.5.103.

      /hana/backup -rw,intr,rsize=32768,wsize=32768,timeo=14,vers=3 10.0.5.103:/backup

    5. Check whether autofs has been attached to the backup directory.

      systemctl restart autofs

      Run the following commands to check whether the /hana/backup directory has been attached properly:

      ls /hana/backup

      df -h

    6. Enable automatic start of the autofs service during system startup.

      systemctl enable autofs

  2. Log in to the standby SAP HANA node, repeat the preceding steps, and attach the backup volume to the standby SAP HANA node.