Attaching the Shared and Backup Volumes

Scenarios

Attach the shared and backup volumes 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 all SAP HANA nodes to attach shared and backup volumes to them.

    1. Run the following commands to create the /hana/shared and /hana/backup directories:

      mkdir -p /hana/shared

      mkdir -p /hana/backup

    2. Run the following commands to assign permissions to /shared and /backup:

      chmod -R 777 /hana/shared

      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/shared -rw,intr,nolock,rsize=32768,wsize=32768,timeo=14,vers=3 10.0.5.103:/shared

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

    5. Check whether autofs has been attached to the shared and backup directories.

      systemctl restart autofs

      Run the following commands to check whether the /hana/shared and /hana/backup directories have been attached properly:

      ls /hana/shared

      ls /hana/backup

      df -h

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

      systemctl enable autofs