Muokkaa

Jaa


Change the disk configuration for SAP Deployment Automation Framework

By default, SAP Deployment Automation Framework defines the disk configuration for SAP systems. As needed, you can change the default configuration by providing a custom disk configuration JSON file.

Tip

When possible, it's a best practice to increase the disk size instead of adding more disks.

HANA databases

The table shows the default disk configuration for HANA systems.

Size VM SKU OS disk Data disks Log disks HANA shared User SAP Backup
Default Standard_D8s_v3 E6 (64 GB) P20 (512 GB) P20 (512 GB) E20 (512 GB) E6 (64 GB) E20 (512 GB)
S4DEMO Standard_E32ds_v4 P10 (128 GB) P10x4 (128 GB) P10x3 (128 GB) P20 (512 GB) P20 (512 GB)
M32ts Standard_M32ts P6 (64 GB) P6x4 (64 GB) P10x3 (128 GB) P20 (512 GB) P6 (64 GB) P20 (512 GB)
M32ls Standard_M32ls P6 (64 GB) P6x4 (64 GB) P10x3 (128 GB) P20 (512 GB) P6 (64 GB) P20 (512 GB)
M64ls Standard_M64ls P6 (64 GB) P10x4 (128 GB) P10x3 (128 GB) P20 (512 GB) P6 (64 GB) P30 (1024 GB)
M64s Standard_M64s P10 (128 GB) P15x4 (256 GB) P15x3 (256 GB) P30 (1024 GB) P6 (64 GB) P30 (1024 GB)
M64ms Standard_M64ms P6 (64 GB) P20x4 (512 GB) P15x3 (256 GB) P30 (1024 GB) P6 (64 GB) P30x2 (1024 GB)
M128s Standard_M128s P10 (128 GB) P20x4 (512 GB) P15x3 (256 GB) P30 (1024 GB) P6 (64 GB) P30x2 (1024 GB)
M128ms Standard_M128m P10 (128 GB) P30x4 (1024 GB) P15x3 (256 GB) P30 (1024 GB) P6 (64 GB) P30x4 (1024 GB)
M208s_v2 Standard_M208s_v2 P10 (128 GB) P30x4 (1024 GB) P15x3 (256 GB) P30 (1024 GB) P6 (64 GB) P40x3 (2048 GB)
M208ms_v2 Standard_M208ms_v2 P10 (128 GB) P40x4 (2048 GB) P15x3 (256 GB) P30 (1024 GB) P6 (64 GB) P40x3 (2048 GB)
M416s_v2 Standard_M416s_v2 P10 (128 GB) P40x4 (2048 GB) P15x3 (256 GB) P30 (1024 GB) P6 (64 GB) P40x3 (2048 GB)
M416ms_v2 Standard_M416m_v2 P10 (128 GB) P50x4 (4096 GB) P15x3 (256 GB) P30 (1024 GB) P6 (64 GB) P50x4 (4096 GB)
E20ds_v4 Standard_E20ds_v4 P6 (64 GB) P10x3 (128 GB) Ultra (80 GB) P15 (256 GB) P6 (64 GB) P15 (256 GB)
E20ds_v5 Standard_E20ds_v5 P6 (64 GB) P10x3 (128 GB) Ultra (80 GB) P15 (256 GB) P6 (64 GB) P15 (256 GB)
E32ds_v4 Standard_E32ds_v4 P6 (64 GB) P10x3 (128 GB) Ultra (128 GB) P15 (256 GB) P6 (64 GB) P15 (256 GB)
E32ds_v5 Standard_E32ds_v5 P6 (64 GB) P10x3 (128 GB) Ultra (128 GB) P15 (256 GB) P6 (64 GB) P15 (256 GB)
E48ds_v4 Standard_E48ds_v4 P6 (64 GB) P15x3 (256 GB) Ultra (192 GB) P20 (512 GB) P6 (64 GB) P15 (256 GB)
E48ds_v5 Standard_E48ds_v4 P6 (64 GB) P15x3 (256 GB) Ultra (192 GB) P20 (512 GB) P6 (64 GB) P15 (256 GB)
E64ds_v3 Standard_E64ds_v3 P6 (64 GB) P15x3 (256 GB) Ultra (220 GB) P20 (512 GB) P6 (64 GB) P15 (256 GB)
E64ds_v4 Standard_E64ds_v4 P6 (64 GB) P15x3 (256 GB) Ultra (256 GB) P20 (512 GB) P6 (64 GB) P15 (256 GB)
E64ds_v5 Standard_E64ds_v5 P6 (64 GB) P15x3 (256 GB) Ultra (256 GB) P20 (512 GB) P6 (64 GB) P15 (256 GB)
E96ds_v5 Standard_E96ds_v4 P6 (64 GB) P15x3 (256 GB) Ultra (256 GB) P20 (512 GB) P6 (64 GB) P15 (256 GB)

AnyDB databases

The table shows the default disk configuration for AnyDB systems.

Size VM SKU OS disk Data disks Log disks
Default Standard_E4s_v3 P6 (64 GB) P15 (256 GB) P10 (128 GB)
200 GB Standard_E4s_v3 P6 (64 GB) P15 (256 GB) P10 (128 GB)
500 GB Standard_E8s_v3 P6 (64 GB) P20 (512 GB) P15 (256 GB)
1 TB Standard_E16s_v3 P10(128 GB) P20x2 (512 GB) P15x2 (256 GB)
2 TB Standard_E32s_v3 P10(128 GB) P30x2 (1024 GB) P20x2 (512 GB)
5 TB Standard_M64ls P10(128 GB) P30x5 (1024 GB) P20x2 (512 GB)
10 TB Standard_M64s P10(128 GB) P40x5 (2048 GB) P20x2 (512 GB)
15 TB Standard_M64s P10(128 GB) P50x4 (4096 GB) P20x2 (512 GB)
20 TB Standard_M64s P10(128 GB) P50x5 (4096 GB) P20x2 (512 GB)
30 TB Standard_M128s P10(128 GB) P50x8 (4096 GB) P40x2 (2048 GB)
40 TB Standard_M128s P10(128 GB) P50x10 (4096 GB) P40x2 (2048 GB)
50 TB Standard_M128s P10(128 GB) P50x13 (4096 GB) P40x2 (2048 GB)

Custom sizing file

You can define the disk sizing for an SAP system by using a custom sizing JSON file. The file is grouped in four sections: db, app, scs, and web. Each section contains a list of disk configuration names. For example, for the database tier, the names might be M32ts or M64s.

These sections contain the information for the default virtual machine size and the list of disks to be deployed for each tier.

Create a file by using the structure shown in the following code sample. Save the file in the same folder as the parameter file for the system. For instance, use XO1_sizes.json. Then define the parameter custom_disk_sizes_filename in the parameter file. For example, use custom_disk_sizes_filename = "XO1_db_sizes.json".

Tip

The path to the disk configuration needs to be relative to the folder that contains the tfvars file.

The following sample code is an example configuration file. It defines three data disks (LUNs 0, 1, and 2), a log disk (LUN 9, using the Ultra SKU), and a backup disk (LUN 13). The application tier servers (application, central services, and web dispatchers) are deployed with just a single sap data disk.

The three data disks are striped by using LVM. The log disk and the backup disk are each mounted as a single disk.

{
  "db" : {
    "Default": {
      "compute": {
        "vm_size"                 : "Standard_E20ds_v4",
        "swap_size_gb"            : 2
      },
      "storage": [
        {
          "name"                  : "os",
          "count"                 : 1,
          "disk_type"             : "Premium_LRS",
          "size_gb"               : 128,
          "caching"               : "ReadWrite"
        },
        {
          "name"                  : "data",
          "count"                 : 3,
          "disk_type"             : "Premium_LRS",
          "size_gb"               : 256,
          "caching"               : "ReadWrite",
          "write_accelerator"     : false,
          "lun_start"             : 0
        },
        {
          "name"                  : "log",
          "count"                 : 1,
          "disk_type"             : "UltraSSD_LRS",
          "size_gb": 512,
          "disk-iops-read-write"  : 2048,
          "disk-mbps-read-write"  : 8,
          "caching"               : "None",
          "write_accelerator"     : false,
          "lun_start"             : 9
        },
        {
          "name"                  : "backup",
          "count"                 : 1,
          "disk_type"             : "Premium_LRS",
          "size_gb"               : 256,
          "caching"               : "ReadWrite",
          "write_accelerator"     : false,
          "lun_start"             : 13
        }

      ]
    }
  },
  "app" : {
    "Default": {
      "compute": {
        "vm_size"                 : "Standard_D4s_v3"
      },
      "storage": [
        {
          "name"                  : "os",
          "count"                 : 1,
          "disk_type"             : "Premium_LRS",
          "size_gb"               : 128,
          "caching"               : "ReadWrite"
        },
        {
          "name"                  : "sap",
          "count"                 : 1,
          "disk_type"             : "Premium_LRS",
          "size_gb"               : 128,
          "caching"               : "ReadWrite",
          "write_accelerator"     : false,
          "lun_start"             : 0
        }

      ]
    }
  },
  "scs" : {
    "Default": {
      "compute": {
        "vm_size"                 : "Standard_D4s_v3"
      },
      "storage": [
        {
          "name"                  : "os",
          "count"                 : 1,
          "disk_type"             : "Premium_LRS",
          "size_gb"               : 128,
          "caching"               : "ReadWrite"
        },
        {
          "name"                  : "sap",
          "count"                 : 1,
          "disk_type"             : "Premium_LRS",
          "size_gb"               : 128,
          "caching"               : "ReadWrite",
          "write_accelerator"     : false,
          "lun_start"             : 0
        }

      ]
    }
  },
  "web" : {
    "Default": {
      "compute": {
        "vm_size"                 : "Standard_D4s_v3"
      },
      "storage": [
        {
          "name"                  : "os",
          "count"                 : 1,
          "disk_type"             : "Premium_LRS",
          "size_gb"               : 128,
          "caching"               : "ReadWrite"
        },
        {
          "name"                  : "sap",
          "count"                 : 1,
          "disk_type"             : "Premium_LRS",
          "size_gb"               : 128,
          "caching"               : "ReadWrite",
          "write_accelerator"     : false,
          "lun_start"             : 0
        }

      ]
    }
  }
}

Add extra disks to an existing system

If you need to add disks to an already deployed system, you can add a new block to your JSON structure. Include the attribute append in this block, and set the value to true. For example, in the following sample code, the last block contains the attribute "append" : true,. The last block adds a new disk to the database tier, which is already configured in the first "data" block in the code.

{
  "db" : {
    "Default": {
      "compute": {
        "vm_size"                 : "Standard_D4s_v3",
        "swap_size_gb"            : 2
      },
      "storage": [
        {
          "name"                  : "os",
          "count"                 : 1,
          "disk_type"             : "Premium_LRS",
          "size_gb"               : 128,
          "caching"               : "ReadWrite"
        },
        {
          "name"                  : "data",
          "count"                 : 3,
          "disk_type"             : "Premium_LRS",
          "size_gb"               : 256,
          "caching"               : "ReadWrite",
          "write_accelerator"     : false,
          "start_lun"             : 0
        },
        {
          "name"                  : "log",
          "count"                 : 1,
          "disk_type"             : "UltraSSD_LRS",
          "size_gb": 512,
          "disk-iops-read-write"  : 2048,
          "disk-mbps-read-write"  : 8,
          "caching"               : "None",
          "write_accelerator"     : false,
          "start_lun"             : 9
        },
        {
          "name"                  : "backup",
          "count"                 : 1,
          "disk_type"             : "Premium_LRS",
          "size_gb"               : 256,
          "caching"               : "ReadWrite",
          "write_accelerator"     : false,
          "start_lun"             : 13
        }
        ,
        {
          "name"                  : "data",
          "count"                 : 1,
          "disk_type"             : "Premium_LRS",
          "size_gb"               : 256,
          "caching"               : "ReadWrite",
          "write_accelerator"     : false,
          "append"                : true,
          "start_lun"             : 4
        }

      ]
    }
  }
}

Next step