Skip to content

Conversation

@janlindstrom
Copy link

…th/to' and datafile is larger than datadir space

Problem is that default path for SST is datadir and if there is not enough space for all datafiles it fails.

In this patch wsrep_sst_tmp_dir configuration parameter is introduced. User can now configure path where SST transfers datafiles in joiner while operation is running. Additionally, if available transfer size is compared to available disk space and if not necessary big error is produced. When transfer is completed MariaBackup will move datafiles to their correct locations.

Current rules for wsrep_sst_tmp_dir

  • can be nullptr or empty and will not be used
  • must be existing path and directory or not used
  • may not be same as datadir or not used
  • if total SST payload available it should have enough available space
  • similar to current behaviour temporal .sst directory is created on path and this directory is removed after SST has finished

…th/to' and datafile is larger than datadir space

Problem is that default path for SST is datadir and if there is not
enough space for all datafiles it fails.

In this patch wsrep_sst_tmp_dir configuration parameter is introduced.
User can now configure path where SST transfers datafiles in joiner
while operation is running. Additionally, if available transfer
size is compared to available disk space and if not necessary
big error is produced. When transfer is completed MariaBackup
will move datafiles to their correct locations.

Current rules for wsrep_sst_tmp_dir
* can be nullptr or empty and will not be used
* must be existing path and directory or not used
* may not be same as datadir or not used
* if total SST payload available it should have enough available space
* similar to current behaviour temporal .sst directory is created
on path and this directory is removed after SST has finished
@janlindstrom janlindstrom self-assigned this Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants