Threat Report: Exposing Malware in Linux-Based Multi-Cloud Environments | Download Now

Upgrading to 5.2 with a Custom Datastore Directory

Upgrading to 5.2 with a Custom Datastore Directory

Version

All Versions of Cb Response

Topic

If you have a custom datastore directory in your Cb Response Configuration, you will likely see a message while running /usr/share/cb/cbupgrade stating that .rpmnew files have been created and these settings need to be moved over before the upgrade can complete. This solution helps understand how to migrate these changes.

These .rpmnew files might need to be migrated on the minion:

/etc/cb/redis.conf 

/etc/cb/datastore/tomcat6.conf  

/etc/cb/nginx/cb-nginx.conf

/etc/cb/nginx/conf.d/cb.conf

/etc/cb/solr/tomcat6.conf

These .rpmnew files might need to be migrated on the master:

/etc/cb/redis.conf

/etc/cb/nginx/cb-nginx.conf

/etc/cb/nginx/conf.d/cb.conf

Warning: This guide details general configuration changes that needed to be made and your process may differ. Please confirm that no additional changes need to be made by comparing the two files.

Here is a general guide if you come across additional files that need to be changed:

Upgrading to a new Cb Response Version

/etc/cb/redis.conf

cb-redis handles master-minion stat communication.

Review Differences

diff /etc/cb/redis.conf /etc/cb/redis.conf.rpmnew

Backup Original

cp /etc/cb/redis.conf /etc/cb/redis.conf.bakDATE

Common Changes

Replace dir /var/cb/redis/ with custom data store directory at the end of the SNAPSHOTTING section

# The working directory.

#

# The DB will be written inside this directory, with the filename specified

# above using the 'dbfilename' configuration directive.

#

# The Append Only File will also be created inside this directory.

#

# Note that you must specify a directory here, not a file name.

dir /var/cb/redis/

Rename .rpmnew file

mv /etc/cb/redis.conf.rpmnew /etc/cb/redis.conf.5.2.changes

/etc/cb/datastore/tomcat6.conf and /etc/cb/solr/tomcat6.conf

cb-datastore (Incoming data) configuration (Java/Tomcat)

cb-solr (Primary data store) configuration (Java/Tomcat)

Review Differences

diff /etc/cb/datastore/tomcat6.conf /etc/cb/datastore/tomcat6.conf.rpmnew

diff /etc/cb/solr/tomcat6.conf /etc/cb/solr/tomcat6.conf.rpmnew

Common Changes

The original files shouldn't need to be modified.

Rename .rpmnew file

mv /etc/cb/datastore/tomcat6.conf.rpmnew /etc/cb/datastore/tomcat6.conf.5.2.changes

mv /etc/cb/solr/tomcat6.conf.rpmnew /etc/cb/solr/tomcat6.conf.5.2.changes

/etc/cb/nginx/cb-nginx.conf

Master configuration file for NGINX (HTTP reverse proxy to internal daemons)

Review Differences

diff /etc/cb/nginx/cb-nginx.conf /etc/cb/nginx/cb-nginx.conf.rpmnew

Backup Original

cp /etc/cb/nginx/cb-nginx.conf /etc/cb/nginx/cb-nginx.conf.bakDATE

Common Changes

Add this line:

deamon off

Modified this line:

'$status $body_bytes_sent "$http_referer" '

to

'$status $body_bytes_sent "$http_referer" "$server_name" '

Add this line:

server_names_hash_bucket_size 128;

Rename .rpmnew file

mv /etc/cb/nginx/cb-nginx.conf.rpmnew /etc/cb/nginx/cb-nginx.conf.5.2.changes

/etc/cb/nginx/conf.d/cb.conf

Follow standard upgrade procedure described here:

5.2 Nginx Configuration Changes

Labels (1)
Was this article helpful? Yes No
No ratings
Article Information
Author:
Creation Date:
‎10-19-2016
Views:
686
Contributors