Running out of space on main disk - will altering path.data help?


#1

Hey all.

I have a running single node ES that is running out of disk space. If I add another drive to the machine, format it and add it to the path.data so I have the line:

path.data["/var/lib/elasticsearch/data", "/new/drive/mountpoint"]

in the config file, will Elasticsearch start putting data on the new drive instead of the old drive thats running out of space?

Or, would it be better to move the data in /var/lib/elasticsearch/data to the new larger drive and change the path.data to

path.data["/new.drive/mountpoint"]

Would ES pick up the new data path and carry on as normal or do I have to do some voodoo magic to get it running again? :smiley:

Thanks for any advice!


Running out of space in /var/lib/elasticsearch
#2

Okay - figured out that it is easier than I thought thanks to these two documents:

  1. https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-dir-layout.html

and

  1. How to move Data and Logs to new directory?

All running again!


(system) #3