I would like to run a copy of PROD Indexer servers’ VMs in another site (DR setup) without mapping Cold Storage, to validate environment readiness.
Could you please advise if any of the below approaches are suitable, or if there are other recommended options?
Option A -Take VM snapshot or backup copy of PROD indexers.
Deploy in test site without mounting cold storage disks.
Before starting Splunk, edit /opt/splunk/etc/system/local/indexes.conf (or deployment-specific conf path):
Hash out/remove coldPath entries for each index.
Splunk will start and treat the indexes as having only hot/warm storage.
========================================================================================================================================================
Option B – OPTIMISTIC_ABOUT_FILE_LOCKING = 1
Impact: Unknown
================================================================================================================================================================
Option C – Temporary Cold Storage + Increase maxWarmDBCount
It's not obvious for me what is your goal. "Validate environment readiness" to do what? If this is a test of DR procedure, without cold you don't have full DR.
Normally you can run without cold (but you still have to have it defined) when running with SmartStore - then your hot/warm storage is hot/cache and the "cold" data is stored in Smartstore.
But you still need coldPath defined and accessible.
Of course you might point your server to an empty directory in which case you'll simply lose your previously-indexed-elsewhere data. So this is not a full DR if you do that - you've already lost much of your data.
So what is your actual use case?
Hi @Nraj87
Im confused by the two options B here so assume the second is option C and not an extension of the first B!
Its also worth noting that this isnt a typical way of operating Splunk - if you want a DR backup then you should look at a multisite cluster. Please see https://help.splunk.com/en/splunk-enterprise/administer/manage-indexers-and-indexer-clusters/9.4/ove...for more info.
Specifically answering your question though...
Based on the docs, Splunkd does not start if an index lacks a valid 'coldPath'. therefore Option A is not possible.
Option B sounds like its using coldPath that doesnt exist - The docs suggest a 'valid' coldPath which might mean that checks are made to the paths existence, regardless of the file lock checking, therefore I do not think this would work either.
That leaves the 3rd option (C) as the remaining viable solution.
🌟 Did this answer help you? If so, please consider:
Your feedback encourages the volunteers in this community to continue contributing