Migrate elasticsearch data from the manager to the search node #14690
-
Version2.4.150 Installation MethodSecurity Onion ISO image Descriptionconfiguration Installation TypeDistributed Locationon-prem with Internet access Hardware SpecsExceeds minimum requirements CPU32 RAM128 Storage for /98 Storage for /nsm192 Network Traffic Collectionspan port Network Traffic Speeds1Gbps to 10Gbps StatusYes, all services on all nodes are running OK Salt StatusNo, there are no failures LogsYes, there are additional clues in /opt/so/log/ (please provide detail below) DetailHi, i want to move the Elasticsearch data from the manager to the search node. As mentioned in the documentation the manager node has the "data" Role after installation. Later on, i installed the search node and added it successful to the grid. fatal exception while booting Elasticsearch At the end of the error there is also a hint "Use 'elasticsearch-node repurpose' tool to clean up" What are the correct steps to migrate the data from the manager to the search node thank you in advance Guidelines
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You need to migrate off the existing elastic data using the following command via the CLI on your manager node:
With "manager_ip" being your manager's IP, so "x.x.x.x". This will probably take some time based on how much elastic data is on your manager. You can check the progress by running:
The location of the shards will be on the far right column. Make sure that all the shards have moved from the manager node to the search node. Once all your data is off the manager, you can now remove the data role from your manager node via SOC per the documentation. |
Beta Was this translation helpful? Give feedback.
-
Thank you! This worked for me. However i had to change the number_of_replicas to 0 for the elastalert_error index to completley remove all shards from my manager. After that, i removed the data role and now elasticsearch on manager comes up and is running again. |
Beta Was this translation helpful? Give feedback.
You need to migrate off the existing elastic data using the following command via the CLI on your manager node:
sudo so-elasticsearch-query _cluster/settings -d '{"transient": {"cluster.routing.allocation.exclude._ip": "manager_ip" } }' -XPUT
With "manager_ip" being your manager's IP, so "x.x.x.x".
This will probably take some time based on how much elastic data is on your manager. You can check the progress by running:
sudo so-elasticsearch-query _cat/shards
The location of the shards will be on the far right column. Make sure that all the shards have moved from the manager node to the search node.
Once all your data is off the manager, you can now remove the data role from your manager …