Note
For V4.0.0, this parameter is available starting with V4.0.0.
Description
log_disk_size specifies the size of the redo log disk, which is the total amount of log disk space available for the current OBServer node.
Privilege requirements
Query the parameter
The
systenant and all user tenants can query this parameter by using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify the parameter
Only the
systenant can modify this parameter. User tenants cannot modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | Varchar |
| Default value | 0, with MB as the default unit. You must specify the unit when you configure this parameter. |
| Value range | [0M, +∞) |
| Modifiable | Yes. You can use the ALTER SYSTEM SET statement to modify the parameter. |
| Effective upon OBServer node restart | No. The setting takes effect immediately. |
Considerations
- When the value of this parameter is 0, the system will allocate log disk space based on the value of the
log_disk_percentageparameter. For more information about thelog_disk_percentageparameter, see log_disk_percentage. - When an OBServer node starts, it preallocates a sufficient number of log files. For example, if you configure
log_disk_size = 100 G, the OBServer node will preallocate 100 G of log files as the log file pool during its first startup. - When creating a tenant unit on an OBServer node, sufficient log disk space is reserved for the unit. If the remaining log disk space (total available space minus allocated space) does not meet the unit's specifications, the tenant unit creation will fail.
Examples
Set the size of the redo log disk to 40 G.
obclient> ALTER SYSTEM SET log_disk_size='40G';
