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.
Limitations
Query the parameter
In the
systenant or a user tenant, you can execute theSHOW PARAMETERSstatement to query the parameter or query theGV$OB_PARAMETERSview for the parameter.Modify the parameter
You can modify the parameter only in the
systenant.
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, 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.
Examples
Set the size of the log disk where redo logs are stored to 40 GB.
obclient> ALTER SYSTEM SET log_disk_size='40G';