The columnar disk storage format is unchanged between InfiniDB 4.X and MariaDB ColumnStore allowing for a software upgrade on the same system. This document outlines an approach to perform the upgrade.
If you are wanted to migrate the data from an InfiniDB system to a separate MariaDB ColumnStore system, then please follow the Migration Guide:
https://mariadb.com/kb/en/mariadb/migrating-from-infinidb-4x-to-mariadb-columnstore
NOTE: the MySQL engine type of 'infinidb' is still supported in the MariaDB ColumnStore, so tables created as 'infinidb' will continue to work. But it is recommend that all new tables use be created using the engine type of 'columnstore'. If you do not recreate the tables you will get warnings in the MariaDB server log file that the FRM file is inconsistent and the typecode is incorrect. These warnings can be ignored.
During the install of the MariaDB Columnstore packages, make sure you following the steps show in the prepare guide, like installing the dependency packages.
https://mariadb.com/kb/en/mariadb/preparing-for-columnstore-installation/
Note: Calpont.xml and my.cnf modifications you manually made are not automatically carried forward on an upgrade. These modifications will need to be incorporated back into Columnstore.xml and my.cnf once the upgrade has occurred.
The previous configuration file will be saved as /usr/local/Calpont/etc/Calpont.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
This file can be removed after the upgrade is complete.
Upgrade MariaDB ColumnStore as user root on the server designated as PM1:
# cc getsystemnetwork # cc getstorageconfig
# cc shutdownsystem y
# tar -zxf mariadb-columnstore-1.x.x-1-centos#.x86_64.rpm.tar.gz
# rpm -e --nodeps $(rpm -qa | grep '^infinidb')
This step should remove the InfiniDB alias's from the /root/.bashrc file. But double check that file and if the alais still exist, edit the file manually to remove them.
# mkdir -p /usr/local/mariadb/columnstore # mv /usr/local/Calpont/* /usr/local/mariadb/columnstore/.
# sed -i 's/Calpont/mariadb\/columnstore/' /usr/local/mariadb/columnstore/data1/systemFiles/dbrm/BRM_saves_current
# rpm -ivh mariadb-columnstore-*1.x.x*rpm
https://mariadb.com/kb/en/mariadb/installing-and-configuring-mariadb-columnstore/
https://mariadb.com/kb/en/mariadb/installing-and-configuring-a-multi-server-columnstore-system/
# /usr/local/mariadb/columnstore/bin/postConfigure
Upgrade MariaDB ColumnStore as user root on the server designated as PM1:
# cc getsystemnetwork # cc getstorageconfig
# cc shutdownsystem y
# /usr/local/mariadb/columnstore/bin/pre-uninstall
This step should remove the InfiniDB alias's from the /root/.bashrc file. But double check that file and if the alais still exist, edit the file manually to remove them.
# mkdir -p /usr/local/mariadb/columnstore # mv /usr/local/Calpont/* /usr/local/mariadb/columnstore/.
# sed -i 's/Calpont/mariadb\/columnstore/' /usr/local/mariadb/columnstore/data1/systemFiles/dbrm/BRM_saves_current
# tar -zxvf -mariadb-columnstore-1.x.x-1.x86_64.bin.tar.gz
# /usr/local/mariadb/columnstore/bin/post-install
https://mariadb.com/kb/en/mariadb/installing-and-configuring-mariadb-columnstore/
https://mariadb.com/kb/en/mariadb/installing-and-configuring-a-multi-server-columnstore-system/
# /usr/local/mariadb/columnstore/bin/postConfigure
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.x.x-1.amd64.deb.tar.gz (DEB 64-BIT) to the server where you are installing MariaDB ColumnStore.
# cc getsystemnetwork # cc getstorageconfig
# cc shutdownsystem y
# tar -zxf mariadb-columnstore-1.x.x-1.amd64.deb.tar.gz
# cd /root/ # dpkg -r infinidb*deb # dpkg -P infinidb*deb
This step should remove the InfiniDB alias's from the /root/.bashrc file. But double check that file and if the alais still exist, edit the file manually to remove them.
# mkdir -p /usr/local/mariadb/columnstore # mv /usr/local/Calpont/* /usr/local/mariadb/columnstore/.
# sed -i 's/Calpont/mariadb\/columnstore/' /usr/local/mariadb/columnstore/data1/systemFiles/dbrm/BRM_saves_current
# cd /root/ # dpkg -i mariadb-columnstore*.deb
https://mariadb.com/kb/en/mariadb/installing-and-configuring-mariadb-columnstore/
https://mariadb.com/kb/en/mariadb/installing-and-configuring-a-multi-server-columnstore-system/
# /usr/local/mariadb/columnstore/bin/postConfigure
Install MariaDB ColumnStore as user root on the server designated as PM1:
mariadb-columnstore-1.x.x-1.x86_64.bin.tar.gz (Binary 64-BIT)to the server where you are installing MariaDB ColumnStore.
# cc getsystemnetwork # cc getstorageconfig
# cc shutdownsystem y
# $HOME/Calpont/bin/pre-uninstall -i /$HOME/Calpont
This step should remove the InfiniDB alias's from the /root/.bashrc file. But double check that file and if the alais still exist, edit the file manually to remove them.
# mkdir -p $HOME/mariadb/columnstore # mv $HOME/Calpont/* $HOME/mariadb/columnstore/.
# sed -i 's/Calpont/mariadb\/columnstore/' $HOME/mariadb/columnstore/data1/systemFiles/dbrm/BRM_saves_current
# tar -zxvf -mariadb-columnstore-1.x.x-1.x86_64.bin.tar.gz
# $HOME/mariadb/columnstore/bin/post-install -i /home/guest/mariadb/columnstore
https://mariadb.com/kb/en/mariadb/installing-and-configuring-mariadb-columnstore/
https://mariadb.com/kb/en/mariadb/installing-and-configuring-a-multi-server-columnstore-system/
# $HOME/mariadb/columnstore/bin/postConfigure -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/upgrade-from-infinidb-4x-to-mariadb-columnstore/