Linux provider change question

Primary tabs

Hi -

If you have Cache installed on a Cent OS machine, and you want to switch the OS to Red Hat 7, and your Caché is installed on a non-OS drive, do you need to reinstall Caché?

I don't think so, but I wanted to check

  • 0
  • 0
  • 158
  • 2
  • 0

Comments

Cache installation procedure also writes to following system directories:

htong@amd4dual:/home/htong># ls -l /usr/local/etc
total 1
drwxr-xr-x 2 root root 832 2015-03-31 08:51 cachesys
htong@amd4dual:/home/htong># ls -l /usr/bin/ccontrol
lrwxrwxrwx 1 root root 32 2011-01-19 15:47 /usr/bin/ccontrol -> /usr/local/etc/cachesys/ccontrol
htong@amd4dual:/home/htong># ls -l /usr/bin/csession
lrwxrwxrwx 1 root root 32 2012-04-06 13:07 /usr/bin/csession -> /usr/local/etc/cachesys/csession

Please copy them to a safe location before upgrading, and copy them back after upgrading.

By the way, Red Hat 7 will have very small default /proc/sys/kernel/shmmax and shmall values, you need to reset them after upgrading, otherwise your Cache instance won't be able to allocate shared memory.

 

Just FYI, you can install Caché in one location, all you have to do is

 

Before run cinstall script on Linux, export following environment variables ( you should export the same env variables in your .bash_profile)

 

# export CACHESYS=/home/htong/cache2015/etc/cachesys

# export PATH=$PATH:$CACHESYS

 

 

Then you kick off cinstall (please note, you may either become root, or remain as yourself, in my case, just as htong) the Caché installation script will run (it will write cache.reg, iscagent and other libs to the directory specified by env variable CACHESYS) and will make either root or yourself as the owner of the instance. During install, you specify /home/htong/cache2015 as the location to install Caché.

 

After that you will have everything you need in one location, in my case, /home/htong/cache2015.

 

Better yet, you really don't need root to install and run Caché anymore, when I installed Caché 2015 as htong, after installation, I can do ccontrol stop CACHE as htong, then I just create a tar.gz file of entire /home/htong/cache2015 directory, I can copy the tar.gz file to any machine, and recreate my Caché instance just tar vxf it.

 

From: wwsaleseng-admin@intersystems.com [mailto:wwsaleseng-admin@intersystems.com] On Behalf Of Luca Ravazzolo
Sent: Wednesday, November 11, 2015 9:16 AM
To: Chip Gore; wwsaleseng
Subject: Re: OS Upgrade question... (Posted on Community and email list)

 

We have exe in /usr/bin

Until the time we will offer one single root dir for our install you’re better off re-installing than figuring out all the dispersed pieces…

 

Kind Regards

 

Luca

Luca Ravazzolo

Product Manager | InterSystems

http://www.interSystems.com

https://learning.intersystems.com

http://docs.intersstems.com

T: +39 349-41.74.235

E: luca.ravazzolo@intersystems.com