Deployment Architecture

How to remove a search head from the cluster when the VM is already deleted?

hettervik
Builder

Hi,

We had some search heads in a cluster, running on VMs. A couple of the VMs were deleted without properly removing the search heads from the search head cluster first. Now, Splunk is complaining that it can't reach some of the search heads in the cluster. When we try to remove them from the cluster, Splunk won't do it since it gets no reply from the search heads (obviously, since the VMs are deleted).

How to we "force" the search heads out of the search head cluster when the search heads no longer exist?

Cheers.

0 Karma
1 Solution

hettervik
Builder

The solution was to run the "splunk resync kvstore" command, as linked to from the following thread:

https://answers.splunk.com/answers/513239/remove-reference-to-host-in-mongodb.html

View solution in original post

0 Karma

hettervik
Builder

The solution was to run the "splunk resync kvstore" command, as linked to from the following thread:

https://answers.splunk.com/answers/513239/remove-reference-to-host-in-mongodb.html

0 Karma

somesoni2
Revered Legend

Can you to transfer the captaincy to different search head using method in below link? That might reset the SHC member list on the captain.
http://docs.splunk.com/Documentation/Splunk/6.5.2/DistSearch/Transfercaptain#Change_the_captain

No restart required, so no outage as such.

muebel
SplunkTrust
SplunkTrust

Hi hettervi, Schedule a brief outage window and shutdown all remaining search heads in the cluster. Once they are all down, start them back up, one by one. I believe this will resolve the issue of the "down" hosts.

Please let me know if this answers your question! 😄

hettervik
Builder

Thank you, we'll try it out! Do you know if this will remove stored references to the deleted search head VMs in the KV Store as well?

0 Karma

muebel
SplunkTrust
SplunkTrust

I don't expect it would have any process to run through and remove any history of the SH, but it shouldn't matter. If any issues persist, it would have to involve Splunk support as it would be something fundamental to the way Splunk works, and they'd have to work out enhancement requests to improve it in future versions.

That being said, I'd be really surprised if this had any lasting effect on the cluster once you've restarted everything.

Please accept this answer if it works out for you 😄 (in any case let me know how it works out)

0 Karma

hettervik
Builder

Unfortunately it didn't solve the problem with the KV Store. We'll create a ticket for Splunk Support. I'll update my question here when we find a solution. 🙂

0 Karma

3no
Communicator

muebel
SplunkTrust
SplunkTrust

These instructions require the members to have splunk running, and either be available at the command line, or otherwise have the management port available.

For the case in questions, the members no longer exist, and so can't have these commands run against them.

Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...