One change that was made for 1.2.0 is to have the default install type by postConfigure to be Non-Distributed from Distributed in the 1.1.X releases. But this doesnt effect upgrades. It will perform the upgraded based on how to previous 1.1.x package was installed. If it was install as Distributed, then the upgrade will also be done as Distributed. Same goes for Non-Distributed.
Note: Columnstore.xml modifications you manually made are not automatically carried forward on an upgrade. These modifications will need to be incorporated back into .XML once the upgrade has occurred.
The previous configuration file will be saved as /usr/local/mariadb/columnstore/etc/Columnstore.xml.rpmsave.
If you have specified a root database password (which is good practice), then you must configure a .my.cnf file with user credentials for the upgrade process to use. Create a .my.cnf file in the user home directory with 600 file permissions with the following content (updating PASSWORD as appropriate):
[mysqladmin] user = root password = PASSWORD
If there is a root user password in the MariaDB server Database, remember to setup the Password Configuration file on each User Module and Performance Module that has User Modules functionality.
Also make sure that the file .my.cnf doesn't exist if no password is setup.
As noted on the Preparing guide, you can installing MariaDB ColumnStore with the use of soft-links. If you have the softlinks be setup at the Data Directory Levels, like mariadb/columnstore/data and mariadb/columnstore/dataX, then your upgrade will happen without any issues. In the case where you have a softlink at the top directory, like /usr/local/mariadb, you will need to upgrade using the binary package. If you updating using the rpm package and tool, this softlink will be deleted when you perform the upgrade process and the upgrade will fail.
Upgrade MariaDB ColumnStore as user root on the server designated as PM1:
Download the package mariadb-columnstore-1.2.0-1-centos#.x86_64.rpm.tar.gz to the PM1 server where you are installing MariaDB ColumnStore. Shutdown the MariaDB ColumnStore system:
# mcsadmin shutdownsystem y
# tar -zxf mariadb-columnstore-1.2.0-1-centos#.x86_64.rpm.tar.gz
# rpm -e --nodeps $(rpm -qa | grep '^mariadb-columnstore') # rpm -ivh mariadb-columnstore-*1.2.0*rpm
# /usr/local/mariadb/columnstore/bin/postConfigure -u
For RPM Upgrade, the previous configuration file will be saved as:
/usr/local/mariadb/columnstore/etc/Columnstore.xml.rpmsave
The system can be upgrade when it was previously installed from the Package Repositories. This will need to be run on each module in the system
Additional information can be found in this document on how to setup and install using the 'yum' package repo command:
https://mariadb.com/kb/en/library/installing-mariadb-ax-from-the-package-repositories
Upgrade MariaDB ColumnStore as user root on the server designated as PM1:
Shutdown the MariaDB ColumnStore system:
# mcsadmin shutdownsystem y
# yum remove mariadb-columnstore*
# yum --enablerepo=mariadb-columnstore clean metadata # yum install mariadb-columnstore*
NOTE: On the non-pm1 module, start the columnstore service
# /usr/local/mariadb/columnstore/bin/columnstore start
# /usr/local/mariadb/columnstore/bin/postConfigure -u -n
For RPM Upgrade, the previous configuration file will be saved as:
/usr/local/mariadb/columnstore/etc/Columnstore.xml.rpmsave
Upgrade MariaDB ColumnStore as user root on the server designated as PM1:
# mcsadmin shutdownsystem y
# /usr/local/mariadb/columnstore/bin/pre-uninstall
# tar -zxvf mariadb-columnstore-1.2.0-1.x86_64.bin.tar.gz
# /usr/local/mariadb/columnstore/bin/post-install
# /usr/local/mariadb/columnstore/bin/postConfigure -u
A DEB upgrade would be done on a system that supports DEBs like Debian or Ubuntu systems.
Upgrade MariaDB ColumnStore as user root on the server designated as PM1:
mariadb-columnstore-1.2.0-1.amd64.deb.tar.gz
(DEB 64-BIT) to the server where you are installing MariaDB ColumnStore.
# mcsadmin shutdownsystem y
# tar -zxf mariadb-columnstore-1.2.0-1.amd64.deb.tar.gz
# cd /root/ # dpkg -r $(dpkg --list | grep 'mariadb-columnstore' | awk '{print $2}') # dpkg --install mariadb-columnstore-*1.2.0-1*deb
# /usr/local/mariadb/columnstore/bin/postConfigure -u
The system can be upgrade when it was previously installed from the Package Repositories. This will need to be run on each module in the system
Additional information can be found in this document on how to setup and install using the 'apt-get' package repo command:
https://mariadb.com/kb/en/library/installing-mariadb-ax-from-the-package-repositories
Upgrade MariaDB ColumnStore as user root on the server designated as PM1:
Shutdown the MariaDB ColumnStore system:
# mcsadmin shutdownsystem y
# apt-get remove mariadb-columnstore*
# apt-get update # sudo apt-get install mariadb-columnstore*
NOTE: On the non-pm1 module, start the columnstore service
# /usr/local/mariadb/columnstore/bin/columnstore start
# /usr/local/mariadb/columnstore/bin/postConfigure -u -n
For RPM Upgrade, the previous configuration file will be saved as:
/usr/local/mariadb/columnstore/etc/Columnstore.xml.rpmsave
Upgrade MariaDB ColumnStore as user root on the server designated as PM1:
mariadb-columnstore-1.2.0-1.x86_64.bin.tar.gz (Binary 64-BIT)to the server where you are installing MariaDB ColumnStore.
# mcsadmin shutdownsystem y
# $HOME/mariadb/columnstore/bin/pre-uninstall --installdir=/home/guest/mariadb/columnstore
# tar -zxvf mariadb-columnstore-1.2.0-1.x86_64.bin.tar.gz
# $HOME/mariadb/columnstore/bin/post-install --installdir=/home/guest/mariadb/columnstore
# $HOME/mariadb/columnstore/bin/postConfigure -u -i /home/guest/mariadb/columnstore
© 2019 MariaDB
Licensed under the Creative Commons Attribution 3.0 Unported License and the GNU Free Documentation License.
https://mariadb.com/kb/en/mariadb-columnstore-software-upgrade-116-ga-to-120-alpha/