Reputation: 705
I have two path.data:
path.data: ["/datassd/elasticsearch", "/data/elasticsearch"]
but one is quite small and always full, I want to not use it anymore and to only use one.
is it possible to
Thanks for your help, or any tips, it's easy to add one datapath but I can't find how to not use one.
Upvotes: 1
Views: 162
Reputation: 2179
stop elasticsearch service
remove the small data.path config.
cp -r /datassd/elasticsearch/nodes/0/indices/* /data/elasticsearch/nodes/0/indices/
start elasticsearch service
use dangling API and Import API to import indices again:
https://www.elastic.co/guide/en/elasticsearch/reference/master/dangling-indices-list.html https://www.elastic.co/guide/en/elasticsearch/reference/master/dangling-index-import.html
Upvotes: 1