Rate This Document
Findability
Accuracy
Completeness
Readability

"not enough disk space" Displayed During the OceanBase Cluster Startup

Symptom

The following message is displayed when the OceanBase cluster is started:

not enough disk space.

Key Process and Cause Analysis

During the OceanBase cluster deployment, ensure that enough space is reserved for the directories of the following parameters when configuring the YAML file. If the reserved space is not enough, this error is reported.

    datafile_size: 300G # Maximum size of the data file
    log_disk_size: 300G # Maximum size of the log file
  • The drive space for data_dir must be greater than the value of datafile_size.
  • The drive space for redo_dir must be greater than the value of log_disk_size.

Conclusion and Solution

Modify the YAML configuration file used for the OceanBase deployment. In the configuration file, specify data_dir and redo_dir to a drive with enough space.

  1. Open the YAML configuration file, for example, example.yaml.
    vi example.yaml
  2. Press i to enter the insert mode and modify data_dir and redo_dir as follows:
        data_dir: /sata/data
        redo_dir: /sata/redo

    Modify the following parameters as required:

    • /sata/data is the path for storing data files.
    • /sata/redo is the path for storing log files.
  3. Press Esc, type :wq!, and press Enter to save the file and exit.