• SAP HANA

saphana
  1. Help Center
  2. SAP HANA
  3. Automatic Deployment User Guide
  4. Single-Node Deployment Without HA Required
  5. Operation Instructions (Deployment Using the CLI)
  6. Creating an ECS

Creating an ECS

Scenarios

Create an ECS to automatically install SAP HANA.

Procedure

  1. Run the following command to create an SAP HANA node using SAP-HANA-BaseNode-HanaNode.template:

    Specify the following parameters as required:

    key_name: key pair name queried in section Creating a Key Pair

    hana_flavor and hana_image: specify based on section Data Planning and actual requirements

    hana_network: network ID queried in section 2.1.5.4 Creating a Network and Subnet

    hana_subnet: subnet ID queried in section 2.1.5.4 Creating a Network and Subnet

    availability_zone: AZ planned at the site

    security_group: ID of the SAP HANA node security group queried in section Creating a Security Group

    heat --insecure stack-create -f SAP-HANA-BaseNode-HanaNode.template -P "key_name=saphana-key-SR6om7;hana_flavor=e1.xlarge;hana_image=SUSE11sp4HANA;hana_subnet=e0b71df5-6c56-476e-8f6a-976588488a84;hana_network=24879c3d-5f71-46ce-86ec-7a12f78c5775;hana_cidr=10.0.3.0/24;availability_zone=eu-de-01;security_group=b3c2d488-a949-4763-9bb9-c83909c47b53;sys_vol_size=100;sys_vol_type=uh-l1;data_volume_size=100;data_volume_type=uh-l1;share_volume_size=100;share_volume_type=uh-l1;log_volume_size=100;log_volume_type=uh-l1;backup_volume_size=100;backup_volume_type=uh-l1;hana_system_id=S01;agency_name=DataProviderAccess;hana_instance_num=01;hana_sar_package_url=http://obs.otc-tsi.de/obs-sap/hana/software/sps11/112/hdb/linux_x86_64_hdb.sar;hana_sar_tool_url=http://obs.otc-tsi.de/obs-sap/hana/software/sps11/112/sapcar/linux_x86_64_sapcar.zip;hana_init_script_url=http://obs.otc-tsi.de/obs-sap/hana/cfgandscript/scripts.zip;system_passwd=Admin@123;sidadm_passwd=Admin@123;sapadm_passwd=Admin@123" saphanan-hana-node

    Table 1 lists the parameters in SAP-HANA-BaseNode-HanaNode.template that need to be input.

    NOTE:

    Enter all the parameters based on actual requirements. If the parameter is not specified, enter the default value.

    Table 1 Parameters involved for creating a HANA ECS

    Parameter

    Description

    Default Value

    key_name

    Key pair name

    N/A

    hana_flavor

    ECS flavor

    N/A

    hana_image

    OS image name or ID (SUSE Linux Enterprise Server 11.4 or 12.1)

    N/A

    hana_network

    Network

    N/A

    hana_subnet

    Subnet name or ID

    N/A

    availability_zone

    AZ

    N/A

    security_group

    Security group

    N/A

    hana_cidr

    Subnet network segment

    N/A

    sys_vol_size

    OS disk size

    100

    sys_vol_type

    OS disk type (For details about disk requirements, see section Data Planning.)

    uh-l1

    data_volume_size

    Data disk size

    110

    data_volume_type

    Data disk type (For details about disk requirements, see section Data Planning.)

    uh-l1

    share_volume_size

    Shared disk size

    120

    share_volume_type

    Shared disk type (For details about disk requirements, see section Data Planning.)

    uh-l1

    log_volume_size

    Log disk size

    130

    log_volume_type

    Log disk type (For details about disk requirements, see section Data Planning.)

    uh-l1

    backup_volume_size

    Backup disk size

    140

    backup_volume_type

    Backup disk type (For details about disk requirements, see section Data Planning.)

    uh-l1

    hana_system_id

    SAP HANA system ID

    The ID contains three characters. The first one must be an uppercase letter and the latter two can be uppercase letters or digits conforming to SAP requirements with no specific characters.

    S01

    hana_instance_num

    SAP HANA instance number

    The value is an integer ranging from 00 to 97.

    01

    hana_sar_package_url

    SAP HANA installation package URL in the OBS bucket

    http://obs.otc-tsi.de/obs-sap/hana/software/sps11/112/hdb/linux_x86_64_hdb.sar

    agency_name

    Agency name

    When ECSs access the public cloud platform, they obtain a temporary access credential from the agency.

    Before using the agency, log in to the public cloud management console as the tenant administrator and create the DataproviderAccess agency.

    NOTE:

    The process is as follows: Log in to the public cloud management console and choose Management & Deployment > Identity and Access Management. On the left side of the page, choose Agency. Then, click Create Agency on the right side of the page.

    The parameters are as follows:

    • Agency NameDataProviderAccess
    • Agency TypeCloud service
    • Cloud ServiceECS/BMS
    • Validity Period: Retain the default setting.
    • Rights: Select the region where the target ECS is located and configure the Tenant Guest permission for the ECS.

    DataProviderAccess

    hana_sar_tool_url

    SAR decompressing tool URL in the OBS bucket

    http://obs.otc-tsi.de/obs-sap/hana/software/sps11/112/sapcar/linux_x86_64_sapcar.zip

    hana_init_script_url

    SAP HANA initialization script

    http://obs.otc-tsi.de/obs-sap/hana/cfgandscript/scripts.zip

    system_passwd

    Password of SAP HANA administrator

    The password contains at least eight characters, including one digit, one uppercase letter, and one lowercase letter as a minimum.

    N/A

    sidadm_passwd

    Password of SAP HANA OS user <sid>adm

    The password contains at least eight characters, including one digit, one uppercase letter, and one lowercase letter as a minimum.

    -

    sapadm_passwd

    Password of SAP Host Agent OS user sapadm

    The password contains at least eight characters, including one digit, one uppercase letter, and one lowercase letter as a minimum.

    -

  2. Run the following command to check whether the stack has been successfully created and record the HANA ECS ID and NIC ID:

    heat --insecure stack-show saphanan-hana-node

    • If the value of stack_status is CREATE_COMPLETE, the stack is successfully created.
    • In the outputs field, if the value of output_key is hana_server, the value of output_value above it is the ECS ID. If the value of output_key is hana_node_ip, the value of output_value is the NIC IP address.
    Figure 1 Checking the ECS ID and NIC IP address of the SAP HANA node
    Figure 2 Checking the creation status of the SAP HANA node

  3. Run the following command to create an ECS for the NAT server:

    heat --insecure stack-create -f SAP-HANA-BaseNode-NatServer.template -P "key_name=saphana-key-SR6om7;nat_flavor=s1.medium;nat_image=SUSE11sp4HANA;nat_network=24879c3d-5f71-46ce-86ec-7a12f78c5775;nat_subnet=e0b71df5-6c56-476e-8f6a-976588488a84;sys_vol_size=100;sys_vol_type=SATA;availability_zone=eu-de-01;security_group=15cb2190-9cf5-46b8-aa31-1f6725712296" saphana-nat-server

  4. Run the following command to check whether the stack has been successfully created and record the NAT server ECS ID and NIC ID:

    heat --insecure stack-show saphana-nat-server

    • If the value of stack_status is CREATE_COMPLETE, the stack is successfully created.
    • In the outputs field, if the value of output_key is nat_server, the value of output_value above it is the ECS ID. If the value of output_key is nat_port, the value of output_value is the NIC ID.
    Figure 3 Checking the NAT server ECS

  5. Run the following command to create an ECS for SAP HANA Studio:

    heat --insecure stack-create -f SAP-HANA-BaseNode-HanaStudio.template -P "key_name=saphana-key-SR6om7;studio_flavor=s1.medium;studio_image=Public-windows2008-cloudinit-GPU;studio_network=24879c3d-5f71-46ce-86ec-7a12f78c5775;studio_subnet=24879c3d-5f71-46ce-86ec-7a12f78c5775;sys_vol_size=100;sys_vol_type=SATA;availability_zone=eu-de-01;security_group=bc1e62e9-3613-43ab-9bde-0c983cc90d76" saphana-hana-studio

    Specify the following parameters as required:

    NOTE:

    When SAP HANA Studio is deployed on a single ECS, it is not automatically initialized. You need to download the SAP HANA Studio installation package from the OBS bucket and install it manually. Alternatively, you can add the new SAP HANA system to an existing SAP HANA Studio.

  6. Run the following command to check whether the stack has been successfully created and record the SAP HANA Studio ECS ID and NIC ID:

    heat --insecure stack-show saphana-hana-studio

    • If the value of stack_status is CREATE_COMPLETE, the stack is successfully created.
    • In the outputs field, if the value of output_key is studio_server, the value of output_value above it is the ECS ID. If the value of output_key is studio_port, the value of output_value is the NIC ID.
    Figure 4 Checking SAP HANA Studio ECS