[MCOL-426] Upgrade install fails when soft-links are used Created: 2016-11-30  Updated: 2017-01-09  Resolved: 2017-01-09

Status: Closed
Project: MariaDB ColumnStore
Component/s: installation
Affects Version/s: None
Fix Version/s: 1.0.6

Type: Bug Priority: Major
Reporter: David Hill (Inactive) Assignee: David Hill (Inactive)
Resolution: Not a Bug Votes: 0
Labels: community


 Description   

If a softlink is setup at this below location when an install is done, but then an upgrade is done later, the soft-link is lost causing the upgrade install to fail.

soft-link location:
/usr/local/mariadb

So need to determine when the softlink is lost and try to prevent...

upgrade:

rpm -e ...
rpm -ivh ....

OR

rpm -Uvh ...



 Comments   
Comment by David Hill (Inactive) [ 2016-12-01 ]

link is lost during the erase

[root@virtualbox-centos7 ~]# ll /usr/local/
total 0
drwxr-xr-x. 2 root root 6 Aug 12 2015 bin
drwxr-xr-x. 2 root root 6 Aug 12 2015 etc
drwxr-xr-x. 2 root root 6 Aug 12 2015 games
drwxr-xr-x. 2 root root 6 Aug 12 2015 include
drwxr-xr-x. 2 root root 6 Aug 12 2015 lib
drwxr-xr-x. 2 root root 6 Aug 12 2015 lib64
drwxr-xr-x. 2 root root 6 Aug 12 2015 libexec
lrwxrwxrwx. 1 root root 14 Dec 1 12:15 mariadb -> /home/mariadb/
drwxr-xr-x. 2 root root 6 Aug 12 2015 sbin
drwxr-xr-x. 5 root root 46 Jul 1 10:03 share
drwxr-xr-x. 2 root root 6 Aug 12 2015 src
[root@virtualbox-centos7 ~]#
[root@virtualbox-centos7 ~]# ./package_erase

Mariab Columnstore uninstall completed
warning: /usr/local/mariadb/columnstore/etc/Columnstore.xml saved as /usr/local/mariadb/columnstore/etc/Columnstore.xml.rpmsave
[root@virtualbox-centos7 ~]# ll /usr/local/
total 0
drwxr-xr-x. 2 root root 6 Aug 12 2015 bin
drwxr-xr-x. 2 root root 6 Aug 12 2015 etc
drwxr-xr-x. 2 root root 6 Aug 12 2015 games
drwxr-xr-x. 2 root root 6 Aug 12 2015 include
drwxr-xr-x. 2 root root 6 Aug 12 2015 lib
drwxr-xr-x. 2 root root 6 Aug 12 2015 lib64
drwxr-xr-x. 2 root root 6 Aug 12 2015 libexec
drwxr-xr-x. 2 root root 6 Aug 12 2015 sbin
drwxr-xr-x. 5 root root 46 Jul 1 10:03 share
drwxr-xr-x. 2 root root 6 Aug 12 2015 src
[root@virtualbox-centos7 ~]#

Comment by David Hill (Inactive) [ 2016-12-01 ]

the datax soft-link gets maintained..

thought is it update install docs to have user use binary package if they need to use /usr/local softlink

Comment by David Hill (Inactive) [ 2017-01-09 ]

Investigation showed that the softlink at the base install level /usr/local/mariadb is being done by the rpm command when the erase is done. This is standard with all rpm package install.

So this means that it's invalid to do a softlink at base level and use the rpms to install.

So if the need is to continue to have the softlink at base install level /usr/local/mariadb, then you would need to change to use from using and installing rpm packages to using a binary package...

Generated at Thu Feb 08 02:20:59 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.