Move Elasticsearch data ( disk space used 100% )

When you see abnormal error messages from elastic search. And you don't understand what's going on… Try to check if you have enough disk space. We see the already common problem.
You can perform displacement fairly quickly with the following commands. No index rebuild needed just restart Elasticsearch. 

df -h

Move Elasticsearch data


cp -r /var/lib/elasticsearch . 

Update path in configuration file. 

vim /etc/elasticsearch/elasticsearch.yml



chown -R elasticsearch:elasticsearch /media/edrive2T/elasticsearch

service elasticsearch restart

service elasticsearch status