Updated on 2022-03-04 GMT+08:00

Attaching an SFS Turbo File System to an ECS

Scenarios

In the HA deployment scenario, you need to mount the created SFS Turbo file system to an ECS. For details, see Table 4.

Prerequisites

  • You have created a file system and have obtained the shared path of the file system.
  • The IP addresses of the DNS server used to resolve the file system domain name have been configured on the ECS.

Procedure

  1. Use PuTTY to log in to the NAT server with an EIP bound. Ensure that user root and the key file (.ppk file) are used for authentication. Then, use SSH to switch to the active ASCS node.
  2. Run the following command to check whether the NFS software package has been installed:

    rpm -qa|grep nfs

  3. If the package has not been installed, run the following command:

    zypper install nfs-client

  4. Run the following command to check whether the domain name in the file system shared path can be resolved:

    nslookup File system domain name

  5. Run the following command to create a local path for attaching the file system based on Table 4:

    mkdirLocal path

    For example, run the command mkdir /sapmnt.

  6. Run the following command to attach the file system to the active ASCS node. Repeat this operation to attach three file systems to the active ASCS node.

    mount -t nfs Shared path Local path

  7. Run the following command to view the attached file systems:

    mount -l

  8. Log in to the standby ASCS node as user root. Repeat steps 2 to 7 to attach the three file systems to the standby ASCS node.
  9. Write the disk attaching information to the /etc/fstab file so that disks can be automatically attached when the VM is restarted.

    vi /etc/fstab

  10. Enter the path information.

    Enter the path based on the actual condition.

    • The /etc/fstab format is Disk ID or partition Attached directory Disk format defaults 0 0.
    • In the preceding format, The recommended value of the last field fs_passno is 0. In this case, the disk can be attached to the other instance if required.
    • Do not write the attaching information of partitions sdb and sdc to the fstab file because the two partitions will be automatically attached when the HA function of SAP S/4HANA is configured. Otherwise, the VM may fail to be restarted. Write the attaching information of other partitions to the fstab file.

    An example is provided as follows:

    Shared path    /sapmnt              nfs    defaults 0 0
    Shared path    /usr/sap/A01/SYS     nfs    defaults 0 0
    Shared path    /sapcd               nfs    defaults 0 0

    Save the changes and exit.