• SAP HANA

saphana
  1. Help Center
  2. SAP HANA
  3. User Guide (Single Node)
  4. Deployment
  5. Creating ECSs
  6. Creating a NAT Server

Creating a NAT Server

Scenarios

In SAP HANA systems, you must create an ECS for deploying the NAT server. You can visit the NAT server and then switch to an SAP HANA node using SSH for fault diagnose and location.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner of the management console and select a region and project.
  3. On the system homepage, choose Computing > Elastic Cloud Server to switch to the Elastic Cloud Server page.
  4. Click Create ECS on the right. A page for creating ECSs is displayed.
  5. Configure the parameters listed in Table 1.

    Table 1 ECS parameters

    Parameter

    Description

    Region

    Specifies the region where ECSs are located. Choose a region as required.

    All ECSs in the SAP HANA system must be within the same region.

    AZ

    Specifies the AZ where ECSs are located. Choose an AZ as required.

    Specifications

    Select All generations and General-purpose.

    s1.medium (1 vCPU and 4 GB memory capacity) or higher

    Image

    Select Public Image and an image as required.

    Disk

    40 GB system disk

    For details about disk requirements, see section Other Nodes.

    VPC

    Use the VPC in section Applying for a Subnet and Configuring a Security Group.

    Security Group

    Use the security group in section Applying for a Subnet and Configuring a Security Group.

    NIC

    Select the correct NIC based on Network Planning.

    EIP

    Select Automatically Assign.

    Bandwidth

    This parameter is configured only after an elastic IP address is bound to an ECS. This parameter specifies the communication channel bandwidth of the used EIP. Set the parameter as required, for example, 30 Mbit/s.

    Login Mode

    Select Key pair. An SSH key certificate is used for authenticating users who attempt to log in to ECSs. To create a key pair, click View Key Pair and then click Create Key Pair on the Key Pair page.

    Ensure that the HANA ECSs/ECSs where SAP HANA, SAP HANA Studio, and NAT servers are to be deployed use the same key. Otherwise, SAP HANA installation will fail.

    NOTE:

    If you choose an existing SSH key certificate from the drop-down list, make sure that you have saved the certificate locally. Otherwise, you may fail to log in to the HANA ECS or ECS.

    If you want to create an SSH key pair, do as follows:

    Click View Key Pair. On the Key Pair page that is displayed, click Create Key Pair, specify the key pair name, and click OK. In the Information dialog box that is displayed, click OK. Then, you can query and save the private key.

    Auto Recovery

    Set Auto Recovery to Enable.

    User Data Injection

    This parameter is displayed only after you click Configure now next to Advanced Settings.

    Assign permissions to user root in user data injection mode so that the user can log in to an ECS using a private key through SSH.

    Select Text and enter the following content in the text box to assign permissions to user root so that the user can log in to an ECS using a private key through SSH:

    #cloud-config

    disable_root: false

    runcmd:

    - sed -i 's/^PermitRootLogin.*$/PermitRootLogin without-password/' /etc/ssh/sshd_config

    - sed -i '/^KexAlgorithms.*$/d' /etc/ssh/sshd_config

    - service sshd restart

    When you enter the preceding content, pay attention to the line feed between texts, which must be consistent with the following screenshot.

    ECS Group

    This parameter is displayed only after you click Configure now next to Advanced Settings.

    Do not configure it in this scenario.

    Tag

    This parameter is displayed only after you click Configure now next to Advanced Settings.

    A tag, including a key and a value, identifies an ECS. This parameter is optional.

    Agency Name

    This parameter is displayed only after you click Configure now next to Advanced Settings.

    Do not configure it in this scenario.

    ECS Name

    Specifies the ECS name. The name contains a maximum of 13 characters.

    Quantity

    1

  6. Click Create Now. On the page that is displayed, click Submit.
  7. The system returns to the Elastic Cloud Server page. Check the status of the created task in Task Status on the right of the page.

    After the ECS is created, you can view the ECS from the ECS list on the right of the page.