Formatting Disks Attached to an SAP Application Node

Scenarios

The data disks of SAP application nodes can be used only after they are formatted and attached to required directories. The section describes how to initialize the hard disks of an SAP NetWeaver node in the standard deployment mode. Table 1 lists the file system planning.

Table 1 File systems planned for the standard deployment mode of SAP NetWeaver nodes

Mount Point

File System Type

Description

/usr/sap

ext3

Specifies the directory which is used to store SAP application files. The directory capacity is at least 30 GB.

/sapmnt

ext3

Specifies the SAPMNT directory. The directory capacity is at least 10 GB.

On the ECS homepage, choose Learn more > Quick Start > Initializing an EVS Disk (Linux) and you can view the hard disk initialization information.

Procedure

  1. Log in to an SAP NetWeaver node.
  2. Format the disk.

    1. Run the following command to query the disk to be formatted:

      fdisk -l

      Information similar to the following is displayed:

      ... Disk /dev/sde doesn't contain a valid partition table
    2. Format the disk and attach it to the specified directory based on information provided in Table 1.

      Run the following command to format the disk (taking the dev/sde disk as an example):

      fdisk /dev/sde

    1. Enter n and press Enter to create partitions.
    1. Enter P and press Enter.

      Creating a primary partition is used as an example.

      Information similar to the following is displayed:

      Partition number (1-4, default 1):
    2. Enter the primary partition ID and press Enter.

      Primary partition ID 1 is used as an example.

      Information similar to the following is displayed:

      ... First sector (2048-259715199, default 2048):
    3. Press Enter.

      The default start cylinder number is used as an example.

      Information similar to the following is displayed:

      ... Using default value 2048 Last sector, +sectors or +sizeM or +size{K,M,G}(2048-259715199, default 2048):

      Press Enter.

      The default end cylinder number is used as an example.

      Information similar to the following is displayed:

      .... Using default value 209715199  Command (m for help):
    4. Enter w and press Enter.

      Enter the partition result into the partition table to complete partition creation.

    1. Format the new partition based on the disk format.

      The command for formatting a disk in the ext3 format is mkfs.ext3. For example, to format /dev/sde1 in ext3 format, run the following command:

      mkfs -t ext3 /dev/sde1

      Formatting the partition requires a period of time. During this time, observe the system running status and do not exit the system.

    2. Run the mkdir /sapmnt command to create the /sapmnt directory.
    1. Attach the disk to the /sapmnt directory.

      mount -t ext3 /dev/sde1 /sapmnt

    2. Run the following command to modify the fstab file:

      vi /etc/fstab

    1. Enter the path information.

      Enter the path based on site requirements. In the distributed deployment mode, the NFS server is used. You need to configure the shared directory on the NFS server to /etc/fstab, as shown in Figure 1.

      The information configured in the /etc/fstab file is in the following format:

      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.

      Figure 1 Modifying the fstab file

      After you complete editing, press Esc, enter :x, and press Enter to exit the file.

  3. After formatting the disk, run the following commands to check the disk status:

    mount -a (Mount all disks configured in /etc/fstab to the specified directory.)

    df -h (displays the attachment point directories.)

    Run the following command to assign permissions to /sapmnt:

    chmod -R 777 /sapmnt