Access official resources from Carbon Black experts
All Versions of Cb Response
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
cb-redis handles master-minion stat communication.
diff /etc/cb/redis.conf /etc/cb/redis.conf.rpmnew
cp /etc/cb/redis.conf /etc/cb/redis.conf.bakDATE
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/
mv /etc/cb/redis.conf.rpmnew /etc/cb/redis.conf.5.2.changes
cb-datastore (Incoming data) configuration (Java/Tomcat)
cb-solr (Primary data store) configuration (Java/Tomcat)
diff /etc/cb/datastore/tomcat6.conf /etc/cb/datastore/tomcat6.conf.rpmnew
diff /etc/cb/solr/tomcat6.conf /etc/cb/solr/tomcat6.conf.rpmnew
The original files shouldn't need to be modified.
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
Master configuration file for NGINX (HTTP reverse proxy to internal daemons)
diff /etc/cb/nginx/cb-nginx.conf /etc/cb/nginx/cb-nginx.conf.rpmnew
cp /etc/cb/nginx/cb-nginx.conf /etc/cb/nginx/cb-nginx.conf.bakDATE
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;
mv /etc/cb/nginx/cb-nginx.conf.rpmnew /etc/cb/nginx/cb-nginx.conf.5.2.changes
Follow standard upgrade procedure described here: