diff --git a/docs/about-xtrabackup.md b/docs/about-xtrabackup.md index d0a4484fa..9aaec5ae8 100644 --- a/docs/about-xtrabackup.md +++ b/docs/about-xtrabackup.md @@ -30,6 +30,8 @@ Percona’s enterprise-grade commercial [MySQL Support :octicons-link-external-1 Percona XtraBackup can back up data from InnoDB, XtraDB, MyISAM, and MyRocks tables on MySQL {{vers}} servers as well as Percona Server for MySQL {{vers}}. +To create a backup of Percona Server for MySQL 9.7.4-4 databases with vector indexes, use Percona XtraBackup 9.7.2-3 or higher. For details, see [Minimum Percona XtraBackup version for server features](server-backup-version-comparison.md#minimum-percona-xtrabackup-version-for-server-features). + Percona XtraBackup supports the MyRocks storage engine. Percona XtraBackup copies all MyRocks files on every backup. Incremental backups for MyRocks are not truly incremental: each one copies all MyRocks files, whether or not those files were already in a full or earlier incremental backup. ## Where to go next diff --git a/docs/faq.md b/docs/faq.md index cf32eb7f1..9e74c403c 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -60,3 +60,14 @@ Percona XtraBackup will not be able to take a consistent backup. Retry the backu * To block all DDL operations, use the `--lock-ddl` option that issues `LOCK TABLES FOR BACKUP`. +## Are backups of a database with vector indexes taken with Percona XtraBackup 9.7.2-2 valid? + +No. Percona Server for MySQL 9.7.4-4 adds the vector (HNSW) index. If the server has vector indexes, Percona XtraBackup 9.7.2-2 creates invalid backups. The backup and prepare steps can still succeed, so do not trust these backups. + +To get a valid backup, upgrade Percona XtraBackup to 9.7.2-3 or higher and take the backup again. For details, see [Minimum Percona XtraBackup version for server features](server-backup-version-comparison.md#minimum-percona-xtrabackup-version-for-server-features). + +## Can I import an exported tablespace of a table with a vector index? + +No. With Percona XtraBackup 9.7.2-3 or higher, `--prepare --export` succeeds and creates the `.cfg` file. You cannot import the tablespace because vector index support is at the minimum viable product (MVP) stage. + +For a table with `VECTOR` columns and no vector index, `--prepare --export` and the import of the exported tablespace work starting with Percona XtraBackup 9.7.2-3. diff --git a/docs/index.md b/docs/index.md index fe67ef983..e455f21c2 100644 --- a/docs/index.md +++ b/docs/index.md @@ -75,7 +75,11 @@ Incremental backups for MyRocks are not optimized. Each time you run an incremen InnoDB tables are locked while copying non-InnoDB data. +Percona XtraBackup 9.7.2-2 creates invalid backups of Percona Server for MySQL 9.7.4-4 databases with vector indexes. Use Percona XtraBackup 9.7.2-3 or higher. + !!! admonition "See also" [Dependency compatibility and limitations](update-curl-utility.md) + + [Server version and backup version comparison](server-backup-version-comparison.md) diff --git a/docs/server-backup-version-comparison.md b/docs/server-backup-version-comparison.md index 5288198b7..aee220132 100644 --- a/docs/server-backup-version-comparison.md +++ b/docs/server-backup-version-comparison.md @@ -5,6 +5,8 @@ record, can cause older versions of Percona XtraBackup to fail. To ensure that you can back up and restore your data, use a Percona XtraBackup version that is equal to your source server major version. This means if you use Percona XtraBackup {{vers}}.x, you can safely back up the source server from {{vers}}.x to {{vers}}.xx. +Some server features require a minimum Percona XtraBackup patch version. See [Minimum Percona XtraBackup version for server features](#minimum-percona-xtrabackup-version-for-server-features). + !!! admonition "See also" [How XtraBackup works](how-xtrabackup-works.md) @@ -42,3 +44,27 @@ When you override the parameter, the following events can happen: * Creates a corrupted backup * Backup successful + +## Minimum Percona XtraBackup version for server features + +Some server features add redo log record types. A Percona XtraBackup version without support for the record type cannot create a backup of a database with the feature. + +| Server version | Feature | Minimum Percona XtraBackup version | +| -------------- | ------- | ---------------------------------- | +| Percona Server for MySQL 9.7.4-4 | Vector index | 9.7.2-3 | + +### Vector index + +Percona Server for MySQL 9.7.4-4 adds the vector (HNSW) index. Starting with Percona XtraBackup 9.7.2-3, Percona XtraBackup handles vector indexes. To back up a Percona Server for MySQL 9.7.4-4 database with vector indexes, use Percona XtraBackup 9.7.2-3 or higher. + +The `VECTOR` data type is available in all Percona Server for MySQL 9.7 releases. Percona XtraBackup backs up and restores tables with `VECTOR` columns and no vector index. + +The export and import of tablespaces depend on the table: + +* For a table with `VECTOR` columns and no vector index, `--prepare --export` and the import of the exported tablespace work starting with Percona XtraBackup 9.7.2-3. + +* For a table with a vector index, `--prepare --export` succeeds and creates the `.cfg` file. You cannot import the tablespace because vector index support is at the minimum viable product (MVP) stage. + +!!! warning + + If the server has vector indexes, do not trust backups taken with Percona XtraBackup 9.7.2-2. These backups are invalid. The backup and prepare steps can still succeed. To get a valid backup, upgrade Percona XtraBackup to 9.7.2-3 or higher and take the backup again. diff --git a/docs/xtrabackup-exit-codes.md b/docs/xtrabackup-exit-codes.md index b65567005..0f399b2ba 100644 --- a/docs/xtrabackup-exit-codes.md +++ b/docs/xtrabackup-exit-codes.md @@ -1,5 +1,5 @@ # xtrabackup exit codes -The *xtrabackup* binary exits with the traditional success value of 0 after a backup when no error occurs. If an error occurs during the backup, the exit value is 1. +The *xtrabackup* binary exits with the traditional success value of 0 after a backup when no error occurs. Any non-zero exit value means that an error occurred. -In certain cases, the exit value can be something other than 0 or 1, due to the command-line option code included from the *MySQL* libraries. An unknown command-line option, for example, will cause an exit code of 255. +The exact non-zero value depends on the error. The command-line option code from the *MySQL* libraries sets some of these values. For example, an unknown command-line option causes an exit code of 255.