SAP 배포 자동화 프레임워크의 디스크 구성 변경

기본적으로 SAP 배포 자동화 프레임워크는 SAP 시스템에 대한 디스크 구성을 정의합니다. 필요에 따라 사용자 지정 디스크 구성 JSON 파일을 제공하여 기본 구성을 변경할 수 있습니다.

가능하면 디스크를 추가하는 대신 디스크 크기를 늘리는 것이 좋습니다.

HANA 데이터베이스

테이블에는 HANA 시스템의 기본 디스크 구성이 표시됩니다.

크기 VM SKU OS 디스크 데이터 디스크 로그 디스크 HANA shared 사용자 SAP Backup
기본값 Standard_D8s_v3 E6(64GB) P20(512GB) P20(512GB) E20(512GB) E6(64GB) E20(512GB)
S4DEMO Standard_E32ds_v4 P10(128GB) P10x4(128GB) P10x3(128GB) P20(512GB) P20(512GB)
M32ts Standard_M32ts P6(64GB) P6x4(64GB) P10x3(128GB) P20(512GB) P6(64GB) P20(512GB)
M32ls Standard_M32ls P6(64GB) P6x4(64GB) P10x3(128GB) P20(512GB) P6(64GB) P20(512GB)
M64ls Standard_M64ls P6(64GB) P10x4(128GB) P10x3(128GB) P20(512GB) P6(64GB) P30(1024GB)
M64s Standard_M64s P10(128GB) P15x4(256GB) P15x3(256GB) P30(1024GB) P6(64GB) P30(1024GB)
M64ms Standard_M64ms P6(64GB) P20x4(512GB) P15x3(256GB) P30(1024GB) P6(64GB) P30x2(1024GB)
M128s Standard_M128s P10(128GB) P20x4(512GB) P15x3(256GB) P30(1024GB) P6(64GB) P30x2(1024GB)
M128ms Standard_M128m P10(128GB) P30x4(1024GB) P15x3(256GB) P30(1024GB) P6(64GB) P30x4(1024GB)
M208s_v2 Standard_M208s_v2 P10(128GB) P30x4(1024GB) P15x3(256GB) P30(1024GB) P6(64GB) P40x3(2048GB)
M208ms_v2 Standard_M208ms_v2 P10(128GB) P40x4(2048GB) P15x3(256GB) P30(1024GB) P6(64GB) P40x3(2048GB)
M416s_v2 Standard_M416s_v2 P10(128GB) P40x4(2048GB) P15x3(256GB) P30(1024GB) P6(64GB) P40x3(2048GB)
M416ms_v2 Standard_M416m_v2 P10(128GB) P50x4(4096GB) P15x3(256GB) P30(1024GB) P6(64GB) P50x4(4096GB)
E20ds_v4 Standard_E20ds_v4 P6(64GB) P10x3(128GB) Ultra(80GB) P15(256GB) P6(64GB) P15(256GB)
E20ds_v5 Standard_E20ds_v5 P6(64GB) P10x3(128GB) Ultra(80GB) P15(256GB) P6(64GB) P15(256GB)
E32ds_v4 Standard_E32ds_v4 P6(64GB) P10x3(128GB) Ultra(128GB) P15(256GB) P6(64GB) P15(256GB)
E32ds_v5 Standard_E32ds_v5 P6(64GB) P10x3(128GB) Ultra(128GB) P15(256GB) P6(64GB) P15(256GB)
E48ds_v4 Standard_E48ds_v4 P6(64GB) P15x3(256GB) Ultra(192GB) P20(512GB) P6(64GB) P15(256GB)
E48ds_v5 Standard_E48ds_v4 P6(64GB) P15x3(256GB) Ultra(192GB) P20(512GB) P6(64GB) P15(256GB)
E64ds_v3 Standard_E64ds_v3 P6(64GB) P15x3(256GB) Ultra(220GB) P20(512GB) P6(64GB) P15(256GB)
E64ds_v4 Standard_E64ds_v4 P6(64GB) P15x3(256GB) Ultra(256GB) P20(512GB) P6(64GB) P15(256GB)
E64ds_v5 Standard_E64ds_v5 P6(64GB) P15x3(256GB) Ultra(256GB) P20(512GB) P6(64GB) P15(256GB)
E96ds_v5 Standard_E96ds_v4 P6(64GB) P15x3(256GB) Ultra(256GB) P20(512GB) P6(64GB) P15(256GB)

AnyDB 데이터베이스

테이블에는 AnyDB 시스템의 기본 디스크 구성이 표시됩니다.

크기 VM SKU OS 디스크 데이터 디스크 로그 디스크
기본값 Standard_E4s_v3 P6(64GB) P15(256GB) P10(128GB)
200GB Standard_E4s_v3 P6(64GB) P15(256GB) P10(128GB)
500GB Standard_E8s_v3 P6(64GB) P20(512GB) P15(256GB)
1TB Standard_E16s_v3 P10(128GB) P20x2(512GB) P15x2(256GB)
2TB Standard_E32s_v3 P10(128GB) P30x2(1024GB) P20x2(512GB)
5TB Standard_M64ls P10(128GB) P30x5(1024GB) P20x2(512GB)
10TB Standard_M64s P10(128GB) P40x5(2048GB) P20x2(512GB)
15TB Standard_M64s P10(128GB) P50x4(4096GB) P20x2(512GB)
20TB Standard_M64s P10(128GB) P50x5(4096GB) P20x2(512GB)
30TB Standard_M128s P10(128GB) P50x8(4096GB) P40x2(2048GB)
40TB Standard_M128s P10(128GB) P50x10(4096GB) P40x2(2048GB)
50TB Standard_M128s P10(128GB) P50x13(4096GB) P40x2(2048GB)

사용자 지정 크기 조정 파일

사용자 지정 크기 조정 JSON 파일을 사용하여 SAP 시스템의 디스크 크기를 정의할 수 있습니다. 파일은 db, app, scsweb 네 개의 섹션으로 그룹화됩니다. 각 섹션에는 디스크 구성 이름 목록이 포함되어 있습니다. 예를 들어 데이터베이스 계층의 경우 이름은 M32ts 또는 M64s일 수 있습니다.

이러한 섹션에는 기본 가상 머신 크기 정보와 각 계층에 배포할 디스크 목록이 포함됩니다.

다음 코드 샘플에 표시된 구조를 사용하여 파일을 만듭니다. 시스템의 매개 변수 파일과 동일한 폴더에 파일을 저장합니다. 예를 들어 XO1_sizes.json을(를) 사용합니다. 그런 다음, 매개 변수 파일에서 custom_disk_sizes_filename 매개 변수를 정의합니다. 예를 들면 custom_disk_sizes_filename = "XO1_db_sizes.json"를 사용합니다.

디스크 구성 경로는 tfvars 파일이 포함된 폴더를 기준으로 해야 합니다.

다음 샘플 코드는 구성 파일의 예제입니다. 3개의 데이터 디스크(LUN 0, 1 및 2), 로그 디스크(Ultra SKU를 사용하는 LUN 9) 및 백업 디스크(LUN 13)를 정의합니다. 애플리케이션 계층 서버(애플리케이션, 중앙 서비스 및 웹 디스패처)는 단일 sap 데이터 디스크를 사용하여 배포됩니다.

3개의 데이터 디스크는 LVM을 사용하여 스트라이프됩니다. 로그 디스크와 백업 디스크는 각각 단일 디스크로 탑재됩니다.

{
  "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
        }

      ]
    }
  }
}

기존 시스템에 추가 디스크 추가

이미 배포된 시스템에 디스크를 추가해야 하는 경우 JSON 구조에 새 블록을 추가할 수 있습니다. 이 블록에 특성 append를 포함하고 값을 true로 설정합니다. 예를 들어 다음 샘플 코드에서 마지막 블록에는 특성 "append" : true,가 포함되어 있습니다. 마지막 블록은 코드의 첫 번째 "data" 블록에 이미 구성된 데이터베이스 계층에 새 디스크를 추가합니다.

{
  "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
        }

      ]
    }
  }
}

다음 단계