根據預設, SAP 部署自動化架構 會定義 SAP 系統的磁碟組態。 視需要,您可以藉由提供自定義磁碟組態 JSON 檔案來變更預設組態。
小提示
可能的話,最好增加磁碟大小,而不是新增更多磁碟。
HANA 資料庫
下表顯示 HANA 系統的預設磁碟組態。
| 大小 | VM 型號 | 作業系統磁碟 | 數據磁碟 | 記錄磁碟 | HANA 共用 | 使用者 SAP | 備份 |
|---|---|---|---|---|---|---|---|
| 預設 | 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(標準型E32ds v4) | P10 (128 GB) | P10x4 (128 GB) | P10x3 (128 GB) | P20 (512 GB) | P20 (512 GB) | |
| M32ts | 標準 M32ts | P6 (64 GB) | P6x4 (64 GB) | P10x3 (128 GB) | P20 (512 GB) | P6 (64 GB) | P20 (512 GB) |
| M32ls | 標準 M32ls | P6 (64 GB) | P6x4 (64 GB) | P10x3 (128 GB) | P20 (512 GB) | P6 (64 GB) | P20 (512 GB) |
| M64ls | 標準 M64ls | P6 (64 GB) | P10x4 (128 GB) | P10x3 (128 GB) | P20 (512 GB) | P6 (64 GB) | P30 (1024 GB) |
| M64s | 標準 M64s | P10 (128 GB) | P15x4 (256 GB) | P15x3 (256 GB) | P30 (1024 GB) | P6 (64 GB) | P30 (1024 GB) |
| M64ms | 標準 M64ms | P6 (64 GB) | P20x4 (512 GB) | P15x3 (256 GB) | P30 (1024 GB) | P6 (64 GB) | P30x2 (1024 GB) |
| M128s | 標準 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 | 標準 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(標準型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 | 標準 E48ds_v4 | P6 (64 GB) | P15x3 (256 GB) | Ultra (192 GB) | P20 (512 GB) | P6 (64 GB) | P15 (256 GB) |
| E48ds_v5 | 標準 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 資料庫
下表顯示 AnyDB 系統的預設磁碟組態。
| 大小 | VM 型號 | 作業系統磁碟 | 數據磁碟 | 記錄磁碟 |
|---|---|---|---|---|
| 預設 | 標準 E4s_v3 | P6 (64 GB) | P15 (256 GB) | P10 (128 GB) |
| 200 GB | 標準 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 | 標準 M64ls | P10(128 GB) | P30x5 (1024 GB) | P20x2 (512 GB) |
| 10 結核病 | 標準 M64s | P10(128 GB) | P40x5 (2048 GB) | P20x2 (512 GB) |
| 15 TB | 標準 M64s | P10(128 GB) | P50x4 (4096 GB) | P20x2 (512 GB) |
| 20 TB(兆字節) | 標準 M64s | P10(128 GB) | P50x5 (4096 GB) | P20x2 (512 GB) |
| 30 TB | 標準 M128s | P10(128 GB) | P50x8 (4096 GB) | P40x2 (2048 GB) |
| 40TB | 標準 M128s | P10(128 GB) | P50x10 (4096 GB) | P40x2 (2048 GB) |
| 50 TB | 標準 M128s | P10(128 GB) | P50x13 (4096 GB) | P40x2 (2048 GB) |
自定義大小檔案
您可以使用自訂大小 JSON 檔案來定義 SAP 系統的磁碟大小調整。 檔案會分組在四個區段中: db、 app、 scs和 web。 每個區段都包含磁碟組態名稱的清單。 例如,針對資料庫層,名稱可能是 M32ts 或 M64s。
這些區段包含預設虛擬機大小的資訊,以及要針對每一層部署的磁碟清單。
使用下列程式代碼範例所示的結構建立檔案。 將檔案儲存在與系統參數檔案相同的資料夾中。 例如,使用 XO1_sizes.json。 然後在參數檔案中定義 參數 custom_disk_sizes_filename 。 例如,使用 custom_disk_sizes_filename = "XO1_db_sizes.json"。
小提示
磁碟配置的路徑必須相對於裝有 tfvars 檔案的資料夾。
下列範例程式代碼是範例組態檔。 它會定義三個數據磁碟(LUN 0、1 和 2)、記錄磁碟(LUN 9,使用 Ultra SKU),以及備份磁碟(LUN 13)。 應用層伺服器(應用程式、中央服務和 Web 發送器)只會部署單 sap 一數據磁碟。
三個資料磁碟使用 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
}
]
}
}
}