<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to upgrade Mongo in Splunk 9.0.0? in Installation</title>
    <link>https://community.splunk.com/t5/Installation/How-to-upgrade-Mongo-in-Splunk-9-0-0/m-p/633952#M12445</link>
    <description>&lt;P&gt;It doesn't appear that the "serverVersion" value is available with this command even with the verbose tag in splunk versions 8.X&lt;/P&gt;</description>
    <pubDate>Thu, 09 Mar 2023 21:30:17 GMT</pubDate>
    <dc:creator>haraksin</dc:creator>
    <dc:date>2023-03-09T21:30:17Z</dc:date>
    <item>
      <title>How to upgrade Mongo in Splunk 9.0.0?</title>
      <link>https://community.splunk.com/t5/Installation/How-to-upgrade-Mongo-in-Splunk-9-0-0/m-p/603185#M11666</link>
      <description>&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.0/Admin/MigrateKVstore#Upgrade_KV_store_server_to_version_4.2" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.0/Admin/MigrateKVstore#Upgrade_KV_store_server_to_version_4.2&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Upgraded Splunk Enterprise version 9.0.0 from 8.2.5&lt;/P&gt;
&lt;P&gt;Looking to see how to upgrade mongo from 4.0 to 4.2 on a single instance deployment.&amp;nbsp; During the Splunk Enterprise upgrade the migration to wiredTiger failed due to lack of disk space, the upgrade still continued and made the first hop of the mongo upgrade from version 3.6 to 4.0, it looks like after version 4.0 it tried to do the engine migration but couldn't because the lack of available disk space and therefore didn't do the last hop to version 4.2 of mongo.&amp;nbsp; We have since fixed the disk space issue and were able to complete the engine migration to wiredTiger, however don't know how to bump up the mongo version to 4.2.&amp;nbsp; The above link is for upgrading mongo in a cluster but not on a single instance, when looking at the options in splunk help kvstore I don't see anything for upgrading mongo either for a single instance, tried splunk start-shcluster-upgrade kvstore -version 4.2 -isDryRun true but of course it detected it wasn't a searchhead cluster.&amp;nbsp; Lastly trying to understand the difference in the output of mongo versionsbetween kvstore-status command versus splunk cmd mongod -version, clearly pulling from two different places.&lt;BR /&gt;&lt;BR /&gt;[App Key Value Store migration] Starting migrate-kvstore.&lt;BR /&gt;Created version file path=/opt/splunk/var/run/splunk/kvstore_upgrade/versionFile36&lt;BR /&gt;Started standalone KVStore update, start_time="2022-06-22 15:21:46".&lt;BR /&gt;[App Key Value Store migration] Checking if migration is needed. Upgrade type 1. This can take up to 600seconds.&lt;BR /&gt;[App Key Value Store migration] Migration is not required.&lt;BR /&gt;Created version file path=/opt/splunk/var/run/splunk/kvstore_upgrade/versionFile40&lt;BR /&gt;Not enough space to upgrade KVStore (or backup). You will need requiredBytes=3107201024 bytes, but KV Store DB filesystem only has availableBytes=2286272512&lt;BR /&gt;[App Key Value Store migration] Starting migrate-kvstore.&lt;BR /&gt;[App Key Value Store migration] Storage Engine hasn't been migrated to wireTiger. Cannot upgrade to service(42)&lt;/P&gt;
&lt;P&gt;[splunk ~/var/run/splunk/kvstore_upgrade]$ splunk show kvstore-status --verbose |grep serverVersion&lt;BR /&gt;serverVersion : 4.0.24&lt;BR /&gt;[splunk ~/var/run/splunk/kvstore_upgrade]$&lt;/P&gt;
&lt;P&gt;[splunk ~/var/run/splunk/kvstore_upgrade]$ splunk cmd mongod -version&lt;BR /&gt;db version v4.2.17-linux-splunk-v3&lt;BR /&gt;git version: be089838c55d33b6f6039c4219896ee4a3cd704f&lt;BR /&gt;OpenSSL version: OpenSSL 1.0.2zd-fips 15 Mar 2022&lt;BR /&gt;allocator: tcmalloc&lt;BR /&gt;modules: none&lt;BR /&gt;build environment:&lt;BR /&gt;distmod: rhel62&lt;BR /&gt;distarch: x86_64&lt;BR /&gt;target_arch: x86_64&lt;BR /&gt;[splunk ~/var/run/splunk/kvstore_upgrade]$&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 16:21:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/How-to-upgrade-Mongo-in-Splunk-9-0-0/m-p/603185#M11666</guid>
      <dc:creator>amartin6</dc:creator>
      <dc:date>2022-06-24T16:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to upgrade Mongo in Splunk 9.0.0?</title>
      <link>https://community.splunk.com/t5/Installation/How-to-upgrade-Mongo-in-Splunk-9-0-0/m-p/603267#M11673</link>
      <description>&lt;P&gt;You may want to contact support for assistance.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jun 2022 16:27:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/How-to-upgrade-Mongo-in-Splunk-9-0-0/m-p/603267#M11673</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-06-25T16:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to upgrade Mongo in Splunk 9.0.0?</title>
      <link>https://community.splunk.com/t5/Installation/How-to-upgrade-Mongo-in-Splunk-9-0-0/m-p/603856#M11686</link>
      <description>&lt;P&gt;We were able to upgrade mongo via the migrate command, thought it was only for the engine:&lt;/P&gt;&lt;P&gt;[splunk@ ~]$ splunk migrate migrate-kvstore&lt;BR /&gt;[App Key Value Store migration] Starting migrate-kvstore.&lt;BR /&gt;[App Key Value Store migration] Checking if migration is needed. Upgrade type 2. This can take up to 600seconds.&lt;BR /&gt;[App Key Value Store migration] Migration is not required.&lt;BR /&gt;Created version file path=/opt/splunk/var/run/splunk/kvstore_upgrade/versionFile42&lt;BR /&gt;Finished standalone KVStore update, stop_time="2022-06-29 13:41:29".&lt;BR /&gt;[splunk@ ~]$&lt;BR /&gt;&lt;BR /&gt;[splunk@ ~]$ splunk show kvstore-status --verbose |grep serverVersion&lt;BR /&gt;serverVersion : 4.2.17&lt;BR /&gt;[splunk@ ~]$&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 19:58:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/How-to-upgrade-Mongo-in-Splunk-9-0-0/m-p/603856#M11686</guid>
      <dc:creator>amartin6</dc:creator>
      <dc:date>2022-06-29T19:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to upgrade Mongo in Splunk 9.0.0?</title>
      <link>https://community.splunk.com/t5/Installation/How-to-upgrade-Mongo-in-Splunk-9-0-0/m-p/627276#M12271</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/197825"&gt;@amartin6&lt;/a&gt;&lt;/P&gt;&lt;P&gt;I am facing the same issue&amp;nbsp; and following are my versions.&lt;/P&gt;&lt;P&gt;./splunk cmd mongod -version&lt;BR /&gt;db version v4.2.17-linux-splunk-v4&lt;BR /&gt;git version: be089838c55d33b6f6039c4219896ee4a3cd704f&lt;BR /&gt;OpenSSL version: OpenSSL 1.0.2zf-fips 21 Jun 2022&lt;BR /&gt;allocator: tcmalloc&lt;BR /&gt;modules: none&lt;BR /&gt;build environment:&lt;BR /&gt;distmod: rhel62&lt;/P&gt;&lt;P&gt;distarch: x86_64&lt;BR /&gt;target_arch: x86_64&lt;/P&gt;&lt;P&gt;/splunk show kvstore-status --verbose |grep serverVersion&lt;BR /&gt;serverVersion : 4.0.24&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I am getting the following message.&lt;/P&gt;&lt;P&gt;Failed to migrate KV Store storage engine to WiredTiger. This prevented running the latest version of KV Store. Migrate KV Store storage engine to WiredTiger and then upgrade KV Store. The Mmapv1 engine is deprecated. Learn more.&lt;/P&gt;&lt;P&gt;Starting migrate-kvstore.&lt;BR /&gt;[App Key Value Store migration] Storage Engine hasn't been migrated to wireTiger. Cannot upgrade to service(42)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea what configuration i need to place in server.conf to fix this issue?[currently we are in splunk 9.0.3 version]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 17:00:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/How-to-upgrade-Mongo-in-Splunk-9-0-0/m-p/627276#M12271</guid>
      <dc:creator>indreshdowjones</dc:creator>
      <dc:date>2023-01-16T17:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to upgrade Mongo in Splunk 9.0.0?</title>
      <link>https://community.splunk.com/t5/Installation/How-to-upgrade-Mongo-in-Splunk-9-0-0/m-p/627277#M12272</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help here?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 17:02:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/How-to-upgrade-Mongo-in-Splunk-9-0-0/m-p/627277#M12272</guid>
      <dc:creator>indreshdowjones</dc:creator>
      <dc:date>2023-01-16T17:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to upgrade Mongo in Splunk 9.0.0?</title>
      <link>https://community.splunk.com/t5/Installation/How-to-upgrade-Mongo-in-Splunk-9-0-0/m-p/627282#M12275</link>
      <description>&lt;P&gt;We were prevented from migrating to the new engine: wiredTiger when we didn't have enough storage, once we cleaned up some disk space we were able to go back and run this after the upgrade to 9.x:&amp;nbsp;&lt;SPAN&gt;splunk migrate migrate-kvstore (for standalone nodes), you'll get a message like this if you run it manually:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ERROR: Not enough space to upgrade KVStore, you will need requiredBytes=102776856576 bytes, but KV Store DB filesystem only has availableBytes=32339398656&lt;BR /&gt;&lt;BR /&gt;We also completed the migration manually of some kvstores to the new wiredTiger engine but forgot to remove the storageEngineMigration=true line from the server.conf, also run a btool and make sure you don't have the engine hardcoded: splunk btool server list --debug |grep -i engine, wiredTiger is the default in 9.x&lt;/P&gt;&lt;P&gt;A helpful doc: &lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.3/Admin/MigrateKVstore" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.3/Admin/MigrateKVstore&lt;/A&gt;&lt;/P&gt;&lt;P&gt;[splunk@ ~]$ splunk show kvstore-status --verbose |grep -i engine&lt;BR /&gt;storageEngine : wiredTiger&lt;BR /&gt;[splunk@~]$&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the engine is set to mmapv1 it won't be able to upgrade to 4.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 17:38:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/How-to-upgrade-Mongo-in-Splunk-9-0-0/m-p/627282#M12275</guid>
      <dc:creator>amartin6</dc:creator>
      <dc:date>2023-01-16T17:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to upgrade Mongo in Splunk 9.0.0?</title>
      <link>https://community.splunk.com/t5/Installation/How-to-upgrade-Mongo-in-Splunk-9-0-0/m-p/633952#M12445</link>
      <description>&lt;P&gt;It doesn't appear that the "serverVersion" value is available with this command even with the verbose tag in splunk versions 8.X&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 21:30:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/How-to-upgrade-Mongo-in-Splunk-9-0-0/m-p/633952#M12445</guid>
      <dc:creator>haraksin</dc:creator>
      <dc:date>2023-03-09T21:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to upgrade Mongo in Splunk 9.0.0?</title>
      <link>https://community.splunk.com/t5/Installation/How-to-upgrade-Mongo-in-Splunk-9-0-0/m-p/633963#M12447</link>
      <description>&lt;P&gt;Its a new field in&amp;nbsp;&lt;SPAN&gt;splunk show kvstore-status --verbose but I don't recall what version of either the kvstore or Splunk that it was introduced&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 23:06:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/How-to-upgrade-Mongo-in-Splunk-9-0-0/m-p/633963#M12447</guid>
      <dc:creator>amartin6</dc:creator>
      <dc:date>2023-03-09T23:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to upgrade Mongo in Splunk 9.0.0?</title>
      <link>https://community.splunk.com/t5/Installation/How-to-upgrade-Mongo-in-Splunk-9-0-0/m-p/648069#M13007</link>
      <description>&lt;P&gt;Unfortunately the --verbose flag doesn't provide the &lt;STRONG&gt;serverVersion&lt;/STRONG&gt; key/value pair either in 8.2.1&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 17:29:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/How-to-upgrade-Mongo-in-Splunk-9-0-0/m-p/648069#M13007</guid>
      <dc:creator>haraksin</dc:creator>
      <dc:date>2023-06-23T17:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to upgrade Mongo in Splunk 9.0.0?</title>
      <link>https://community.splunk.com/t5/Installation/How-to-upgrade-Mongo-in-Splunk-9-0-0/m-p/651024#M13083</link>
      <description>&lt;P&gt;For anyone following/interested.&amp;nbsp; I had to perform the migrate kvstore commands twice to get to version 4.2.17.&amp;nbsp; Not sure why but the initial run gave the same output as the answer except this line:&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;Created version file path=/opt/splunk/var/run/splunk/kvstore_upgrade/versionFile40".&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Upon running it a second time I got the correct output:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Created version file path=/opt/splunk/var/run/splunk/kvstore_upgrade/versionFile42"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 15:37:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/How-to-upgrade-Mongo-in-Splunk-9-0-0/m-p/651024#M13083</guid>
      <dc:creator>coreyCLI</dc:creator>
      <dc:date>2023-07-18T15:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to upgrade Mongo in Splunk 9.0.0?</title>
      <link>https://community.splunk.com/t5/Installation/How-to-upgrade-Mongo-in-Splunk-9-0-0/m-p/651030#M13084</link>
      <description>&lt;P&gt;Have you tried:&amp;nbsp;&lt;SPAN&gt;splunk cmd mongod -version&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 16:06:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/How-to-upgrade-Mongo-in-Splunk-9-0-0/m-p/651030#M13084</guid>
      <dc:creator>amartin6</dc:creator>
      <dc:date>2023-07-18T16:06:14Z</dc:date>
    </item>
  </channel>
</rss>

