# Restart elasticsearch issue

**URL:** <https://discuss.elastic.co/t/restart-elasticsearch-issue/89266>\
**Category:** Elasticsearch\
**Created:** [June 13, 2017, 8:42pm UTC](https://discuss.elastic.co/t/restart-elasticsearch-issue/89266 "2017-06-13T20:42:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ximeng\_Zhao](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ximeng_zhao/32/15775_2.png) [@Ximeng\_Zhao](https://discuss.elastic.co/u/Ximeng_Zhao)\
**Post date:** [June 13, 2017, 8:42pm UTC](https://discuss.elastic.co/t/restart-elasticsearch-issue/89266/1 "2017-06-13T20:42:51Z")

</div>

Hi all,

When I restart to run elasticsearch \<version=5.2.2\>, it gives me some error here.

[2017-06-13T16:09:30,700][INFO][o.e.n.Node] [] initializing ...  
[2017-06-13T16:09:30,790][WARN][o.e.b.ElasticsearchUncaughtExceptionHandler] [] uncaught exception in thread [main]  
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: failed to obtain node locks, tried [[/datab/mastertest]] with lock id [0]; maybe these locations are not writable or multiple nodes were started without increasing [node.max\_local\_storage\_nodes] (was [1])?  
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:125) ~[elasticsearch-5.2.2.jar:5.2.2]  
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:112) ~[elasticsearch-5.2.2.jar:5.2.2]  
at org.elasticsearch.cli.SettingCommand.execute(SettingCommand.java:54) ~[elasticsearch-5.2.2.jar:5.2.2]  
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:122) ~[elasticsearch-5.2.2.jar:5.2.2]  
at org.elasticsearch.cli.Command.main(Command.java:88) ~[elasticsearch-5.2.2.jar:5.2.2]  
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:89) ~[elasticsearch-5.2.2.jar:5.2.2]  
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:82) ~[elasticsearch-5.2.2.jar:5.2.2]  
Caused by: java.lang.IllegalStateException: failed to obtain node locks, tried [[/datab/mastertest]] with lock id [0]; maybe these locations are not writable or multiple nodes were started without increasing [node.max\_local\_storage\_nodes] (was [1])?  
at org.elasticsearch.env.NodeEnvironment.(NodeEnvironment.java:260) ~[elasticsearch-5.2.2.jar:5.2.2]  
at org.elasticsearch.node.Node.(Node.java:252) ~[elasticsearch-5.2.2.jar:5.2.2]  
at org.elasticsearch.node.Node.(Node.java:232) ~[elasticsearch-5.2.2.jar:5.2.2]  
at org.elasticsearch.bootstrap.Bootstrap$6.(Bootstrap.java:241) ~[elasticsearch-5.2.2.jar:5.2.2]  
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:241) ~[elasticsearch-5.2.2.jar:5.2.2]  
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:333) ~[elasticsearch-5.2.2.jar:5.2.2]  
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:121) ~[elasticsearch-5.2.2.jar:5.2.2]  
... 6 more

I found the way to solve this problem, just remove the folder called nodes under /datab. But by doing this, it will lose all my stored indices on elasticsearch. Is there any way that I can keep my indices on ES ? Here's my elasticsearch.yml, thanks.

network.host: 172.31.21.47  
node.master: true  
node.data: true  
[cluster.name](http://cluster.name): mastertest  
action.auto\_create\_index: true  
bootstrap.system\_call\_filter: false  
path.logs: /mnt/volume/logs  
path.data: /datab  
discovery.zen.ping.unicast.hosts: ["172.31.21.47:9300"]

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 13, 2017, 11:58pm UTC](https://discuss.elastic.co/t/restart-elasticsearch-issue/89266/2 "2017-06-13T23:58:36Z")

</div>

> [@Ximeng\_Zhao](#):
>
> org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: failed to obtain node locks, tried [[/datab/mastertest]] with lock id [0]; maybe these locations are not writable or multiple nodes were started without increasing [node.max\_local\_storage\_nodes] (was [1])?

Is this path an external mount?

---

<div class="post-metadata">

**Author:** ![Ximeng\_Zhao](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ximeng_zhao/32/15775_2.png) [@Ximeng\_Zhao](https://discuss.elastic.co/u/Ximeng_Zhao)\
**Post date:** [June 14, 2017, 1:19am UTC](https://discuss.elastic.co/t/restart-elasticsearch-issue/89266/3 "2017-06-14T01:19:35Z")

</div>

Yes, I set path.data: /datab in the elasticsearch.yml.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 14, 2017, 6:14am UTC](https://discuss.elastic.co/t/restart-elasticsearch-issue/89266/4 "2017-06-14T06:14:41Z")

</div>

Is it NFS?

---

<div class="post-metadata">

**Author:** ![Ximeng\_Zhao](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ximeng_zhao/32/15775_2.png) [@Ximeng\_Zhao](https://discuss.elastic.co/u/Ximeng_Zhao)\
**Post date:** [June 14, 2017, 2:32pm UTC](https://discuss.elastic.co/t/restart-elasticsearch-issue/89266/5 "2017-06-14T14:32:59Z")

</div>

I used Centos 6.7 and not sure if it's NFS.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 12, 2017, 2:33pm UTC](https://discuss.elastic.co/t/restart-elasticsearch-issue/89266/6 "2017-07-12T14:33:01Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
