Node lock error in elasticsearch


#1

I installed ES 5.1.1 on cluster of 3 nodes , while kept almost all configurations as default.
when trying to upgrade ES to 5.5.0 I get this WARN:

[WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: failed to obtain node locks, tried [[/opt/elasticsearch-5.5.0/data/elasticsearch]] with lock id [0]; maybe these locations are not writable or multiple nodes were started without increasing [node.max_local_storage_nodes] (was [1])?

The only solution so far is to erase elastic volume after using ES 5.1 and recreate it when upgrade to 5.5 .
Is there any way to overcome this problem without losing data?