MariaDB ColumnStore software upgrade 1.1.6 GA to 1.1.7 GA

MariaDB ColumnStore software upgrade 1.1.6 GA to 1.1.7 GA

Additional Dependency Packages exist for 1.1.7, so make sure you install those based on the "Preparing for ColumnStore Installation" Guide.

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

Additional Library Install: Jemalloc

Note: This release introduces a dependency on the jemalloc os library to resolve some memory management issues that can lead to memory leaks. On each ColumnStore you must install jemalloc:

For CentOS:

yum install epel-release
yum install jemalloc

For Ubuntu and Debian:

apt-get install libjemalloc1

For SLES:

zypper addrepo https://download.opensuse.org/repositories/network:cluster/SLE_12_SP3/network:cluster.repo
zypper refresh
zypper install jemalloc

Choosing the type of upgrade

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.

Root User Installs

Upgrading MariaDB ColumnStore using RPMs tar package

Upgrade MariaDB ColumnStore as user root on the server designated as PM1:

Download the package mariadb-columnstore-1.1.7-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
  • Unpack the tarball, which will generate a set of RPMs that will reside in the /root/ directory.
# tar -zxf mariadb-columnstore-1.1.7-1-centos#.x86_64.rpm.tar.gz
  • Upgrade the RPMs. The MariaDB ColumnStore software will be installed in /usr/local/.
# rpm -e --nodeps $(rpm -qa | grep '^mariadb-columnstore')
# rpm -ivh mariadb-columnstore-*1.1.7*rpm
  • Run postConfigure using the upgrade option, which will utilize the configuration from the Columnstore.xml.rpmsave
# /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

Upgrading MariaDB ColumnStore using RPM Package Repositories

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
  • Uninstall MariaDB ColumnStore Packages
# yum remove mariadb-columnstore*
  • Install MariaDB ColumnStore Packages
# 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
  • Run postConfigure using the upgrade and non-distributed options, which will utilize the configuration from the Columnstore.xml.rpmsave
# /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

Initial download/install of MariaDB ColumnStore binary package

Upgrade MariaDB ColumnStore as user root on the server designated as PM1:

  • Download the package into the /usr/local directory -mariadb-columnstore-1.1.7-1.x86_64.bin.tar.gz (Binary 64-BIT)to the server where you are installing MariaDB ColumnStore.
  • Shutdown the MariaDB ColumnStore system:
# mcsadmin shutdownsystem y
  • Run pre-uninstall script
# /usr/local/mariadb/columnstore/bin/pre-uninstall
  • Unpack the tarball, in the /usr/local/ directory.
# tar -zxvf mariadb-columnstore-1.1.7-1.x86_64.bin.tar.gz
  • Run post-install scripts
# /usr/local/mariadb/columnstore/bin/post-install
  • Run postConfigure using the upgrade option, which will utilize the configuration from the Columnstore.xml,rpmsave
# /usr/local/mariadb/columnstore/bin/postConfigure -u

Upgrading MariaDB ColumnStore using the DEB package

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:

  • Download the package into the /root directory

mariadb-columnstore-1.1.7-1.amd64.deb.tar.gz

(DEB 64-BIT) to the server where you are installing MariaDB ColumnStore.

  • Shutdown the MariaDB ColumnStore system:
# mcsadmin shutdownsystem y
  • Unpack the tarball, which will generate DEBs.
# tar -zxf mariadb-columnstore-1.1.7-1.amd64.deb.tar.gz
  • Remove and install all MariaDB ColumnStore debs
# cd /root/
# dpkg -r  $(dpkg --list | grep 'mariadb-columnstore' | awk '{print $2}')

# dpkg --install mariadb-columnstore-*1.1.7-1*deb
  • Run postConfigure using the upgrade option, which will utilize the configuration from the Columnstore.xml,rpmsave
# /usr/local/mariadb/columnstore/bin/postConfigure -u

Upgrading MariaDB ColumnStore using DEB Package Repositories

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
  • Uninstall MariaDB ColumnStore Packages
# apt-get remove mariadb-columnstore*
  • Install MariaDB ColumnStore Packages
# 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
  • Run postConfigure using the upgrade and non-distributed options, which will utilize the configuration from the Columnstore.xml.rpmsave
# /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

Non-Root User Installs

Initial download/install of MariaDB ColumnStore binary package

Upgrade MariaDB ColumnStore as user root on the server designated as PM1:

  • Download the package into the /home/'non-root-user" directory

mariadb-columnstore-1.1.7-1.x86_64.bin.tar.gz (Binary 64-BIT)to the server where you are installing MariaDB ColumnStore.

  • Shutdown the MariaDB ColumnStore system:
# mcsadmin shutdownsystem y
  • Run pre-uninstall script
# $HOME/mariadb/columnstore/bin/pre-uninstall --installdir=/home/guest/mariadb/columnstore
  • Unpack the tarball, which will generate the $HOME/ directory.
# tar -zxvf mariadb-columnstore-1.1.7-1.x86_64.bin.tar.gz
  • Run post-install scripts
# $HOME/mariadb/columnstore/bin/post-install --installdir=/home/guest/mariadb/columnstore
  • Run postConfigure using the upgrade option, which will utilize the configuration from the Columnstore.xml,rpmsave
# $HOME/mariadb/columnstore/bin/postConfigure -u -i /home/guest/mariadb/columnstore

Running the mysql_upgrade script

As part of the upgrade process, the user is required to run the mysql_upgrade script on all of the following nodes.

  • User Modules on a system configured with separate User and Performance Modules
  • Performance Modules on a system configured with separate User and Performance Modules and Local Query Feature is enabled
  • Performance Modules on a system configured with combined User and Performance Modules

mysql_upgrade should be run once the upgrade has been completed.

This is an example of how it run on a root user install:

/usr/local/mariadb/columnstore/mysql/bin/mysql_upgrade --defaults-file=/usr/local/mariadb/columnstore/mysql/my.cnf --force

This is an example of how it run on a non-root user install, assuming ColumnStore is installed under the user's home directory:

$HOME/mariadb/columnstore/mysql/bin/mysql_upgrade --defaults-file=$HOME/mariadb/columnstore/mysql/my.cnf --force
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.