Note
This parameter was introduced in OceanBase Database V4.0.0.
Description
log_disk_size specifies the size of the log disk where redo logs are stored, namely, the total space of the log disk available for the current OBServer node.
Attributes
| Attribute | Description |
|---|---|
| Type | Varchar |
| Default value | 0. You must specify the unit. By default, MB is used. |
| Value range | [0M, +∞) |
| Modifiable | Yes. You can use the ALTER SYSTEM SET statement to modify the parameter. |
| Effective upon OBServer node restart | No |
Considerations
- If you set this parameter to
0, the log disk space is allocated based on the value oflog_disk_percentage. For more information aboutlog_disk_percentage, see log_disk_percentage. - When an OBServer node is started, a specified log disk space is allocated. For example, if
log_disk_sizeis set to100G, 100 GB of log disk space is allocated for the log file pool when the OBServer node is started for the first time. - When you create a tenant unit on an OBServer node, sufficient log disk space is reserved for the unit. If the remaining local log disk space (total available log disk space - allocated space) is not enough, the tenant unit cannot be created.
Example
obclient> ALTER SYSTEM SET log_disk_size=40G;