From: Eric Bollengier Date: Fri, 21 May 2021 07:25:57 +0000 (+0200) Subject: Enhance the update_mysql_tables script X-Git-Tag: Release-11.0.3~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da51606be54a4b6464df1a849a1739c1ff5fb7e3;p=thirdparty%2Fbacula.git Enhance the update_mysql_tables script Thanks to Phil, these changes allow the script to be retried (after making corrections) if it fails for any reason. --- diff --git a/bacula/src/cats/update_mysql_tables.in b/bacula/src/cats/update_mysql_tables.in index 31c73a2e0..a929fdd06 100644 --- a/bacula/src/cats/update_mysql_tables.in +++ b/bacula/src/cats/update_mysql_tables.in @@ -154,6 +154,12 @@ if [ "$DBVERSION" -eq 15 -o "$DBVERSION" -eq 16 ]; then SKIP1018=1 fi +# If running on a Galera cluster, YOU MUST BRING THE CLUSTER DOWN TO A +# SINGLE NODE before performing this migration (and preferably also +# disable Galera temporarily) because the schema rewrites will almost +# certainly exceed the hard limits on Galera writeset size (128K maximum +# rows or 4GB total writeset size, whichever comes first). + if mysql --skip-reconnect $* <