How to Upgrade Xpand
This page describes how to upgrade Xpand. If you have any questions, please contact MariaDB Support.
All nodes must be online. The output of
clx statshould indicate a cluster status of
Confirm that the upgrade package you have is compatible with your current version of Xpand, including the OS version
Review the list of Upgrade Alerts included in the Release Notes
All upgrades should be run as the Xpand daemon user (
Passwordless SSH authentication must be configured for the Xpand daemon user (
xpand). To verify this, confirm that the clx command returns successfully with no passwords requested:
/opt/clustrix/bin/clx cmd date
Ensure that the clocks are synchronized between nodes.
The Xpand upgrade packages will upgrade the database and XpandGUI. The upgrade should be run from a single node and will upgrade all nodes in the cluster.
Performing an upgrade will incur a short period of downtime.
Xpand does not support downgrades.
To perform the upgrade:
Copy the upgrade package to a single Xpand node
(Optional) if you are using a non-default ssh port, set an environment variable. In the following example, the alternate port is 1234:
Run the upgrade as the database daemon user (e.g.,
xpand). If the database has been installed with
rootuser only, then run the upgrade as
root. In the following example, the version being installed is 6.0.1:
sudo su xpand ./xpand-xpdnode-6.0.1-upgrade.sh install
This will upgrade every node in the cluster. While the upgrade is in progress, there is a brief period during which the database is unavailable.
Because of an issue with the mariadb/mysql client, the command
sudo -u xpand COMMANDdoes not use the correct user for sql logins and the upgrade will fail with an error. To upgrade successfully you must sudo to a command shell as the
sudo su xpandor log in as that user directly).
Once the database portion of the upgrade is complete, the cluster is online. The UI portion of the upgrade will continue but the database is available. To verify that the upgrade has succeeded successfully, examine the value for
+--------------------+ | @@clustrix_version | +--------------------+ | Xpand-6.0.1 | +--------------------+
Caveats for Upgrade
Upgrades cannot be run on clusters in read-only mode