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
- Log in to all SAP HANA nodes to attach shared and backup volumes to them.
- Run the following commands to create the /hana/shared and /hana/backup directories:
mkdir -p /hana/shared
mkdir -p /hana/backup
- Run the following commands to assign permissions to /shared and /backup:
chmod -R 777 /hana/shared
chmod -R 777 /hana/backup
- Add the following content to the end of the /etc/auto.master file:
/- /etc/hananfs.direct
- 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
- 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
- Enable automatic start of the autofs service during system startup.
systemctl enable autofs
- Run the following commands to create the /hana/shared and /hana/backup directories:
Last Article: Configuring HA on NFS Servers
Next Article: Formatting DESS Disks
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.