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

Formatting a Disk

Scenarios

The data disks of SAP S/4HANA nodes can be used only after they are formatted and attached to required directories. This section describes how to format the data disk on the active ASCS node within an AZ in the HA deployment. The shared disk of the active ASCS node needs to be formatted based on Table 3.

  • On the ECS homepage, choose to view the hard disk initialization information.
  • In the cross-AZ scenario, create three ECSs and attach a SCSI disk to each ECS. Use Internet Small Computer System Interface (iSCSI) to create a shared disk. In this scenario, disks do not need to be formatted. The SAP S/4HANA deployment scenarios are diversified. You need to format disks based on the actual deployment scenario.

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 from the NAT server.
  2. Based on Table 3, run the following commands to format disks:

    mkfs.xfs /dev/sdb

    mkfs.xfs /dev/sdc

    Do not format the partition sda.

    The formatting takes a period of time. Observe the system running status and do not exit.

  3. Attach the disks to the required directory.

    Create the /usr/sap/A01/ASCS00 directory on the active ASCS node and run the following command:

    mount /dev/sdb /usr/sap/A01/ASCS00

    Create the /usr/sap/A01/ERS10 directory on the standby ASCS node and run the following command:

    mount /dev/sdc /usr/sap/A01/ERS10

    A01 is the SID of SAP S/4HANA, 00 is the Instance Number of ASCS, and 10 is the Instance Number of ERS.

  4. Save the changes and exit.