你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
默认情况下, SAP 部署自动化框架 定义 SAP 系统的磁盘配置。 根据需要,可以通过提供自定义磁盘配置 JSON 文件来更改默认配置。
小窍门
如果可能,最佳做法是增加磁盘大小,而不是添加更多磁盘。
HANA 数据库
下表显示了 HANA 系统的默认磁盘配置。
| 尺寸 | 虚拟机产品编号 | 操作系统磁盘 | 数据磁盘 | 日志磁盘 | 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 | 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 数据库
下表显示了 AnyDB 系统的默认磁盘配置。
| 尺寸 | 虚拟机产品编号 | 操作系统磁盘 | 数据磁盘 | 日志磁盘 |
|---|---|---|---|---|
| 违约 | 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兆字节 | 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 兆字节 | 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) |
自定义大小调整文件
可以使用自定义大小调整 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,使用超级 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
}
]
}
}
}