Upgrading to a new Version - rpmnew files
search cancel

Upgrading to a new Version - rpmnew files

book

Article ID: 291829

calendar_today

Updated On:

Products

Carbon Black EDR (formerly Cb Response)

Issue/Introduction

  • If there are any custom settings in the EDR Configuration, 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 may be seen. This solution helps understand how to migrate these changes.

Environment

  • EDR: All Supported Versions

Resolution

 1. Before make any changes, backup the original configuration file. For Example:

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

2. Determine the differences between the files

    A. Lines unique to the first file are displayed with a greater than sign (>) at their start, while lines unique to the second file start with a less than sign (<).

diff config.conf config.conf.rpmnew

    B. Display two files in columns:

diff -y config.conf config.conf.rpmnew

    C. Display context around differences:

diff -c config.conf config.conf.rpmnew

3. Once changes have been migrated over, rename the config.rpmnew file as config.VERSION.changes

mv config.conf.rpmnew config.conf.VERSION.changes

4. Once all .rpmnew changes have been migrated and the files renamed, run the upgrade utility:

/usr/share/cb/cbupgrade

Additional Information

For more information on .rpmnew files check out this link: Dealing with .rpmnew and .rpmsave files | Linux.com | The source for Linux information

  • If seeing /etc/cb/solr/core_conf/cbevents/conf/solrconfig.xml.template then it's possible to keep the original and rename the .rpmnew file. These changes were made to address performance issues on the server. 
    • Verify that these are the only differences between the two files:
      • solrconfig.xml.template:
<int name="maxMergeAtOnce">10</int>

<int name="segmentsPerTier">10</int>
  • solrconfig.xml.template.rpmnew:
<int name="maxMergeAtOnce">12</int>

<int name="segmentsPerTier">24</int>
  • Rename the .rpmnew file:
mv /etc/cb/solr/core_conf/cbevents/conf/solrconfig.xml.template.rpmnew /etc/cb/solr/core_conf/cbevents/conf/solrconfig.xml.template.VERSION.default