# Moving data directory

**URL:** <https://discuss.elastic.co/t/moving-data-directory/10791>\
**Category:** Elasticsearch\
**Created:** [February 19, 2013, 5:22am UTC](https://discuss.elastic.co/t/moving-data-directory/10791 "2013-02-19T05:22:41Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![j\_barrett\_strausser](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/j_barrett_strausser/32/2484_2.png) [@j\_barrett\_strausser](https://discuss.elastic.co/u/j_barrett_strausser)\
**Post date:** [February 19, 2013, 5:22am UTC](https://discuss.elastic.co/t/moving-data-directory/10791/1 "2013-02-19T05:22:41Z")

</div>

Apologies for the simple question.

What would be the procedure for moving the data from the current data  
directory to a new directory ? Can I simple 'cp /old/data /new/data'  
without worrying about corruption someplace?

Is the only configuration point really

path:  
logs: /var/log/elasticsearch  
data: /var/data/elasticsearch

Thanks

-b

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 19, 2013, 6:27am UTC](https://discuss.elastic.co/t/moving-data-directory/10791/2 "2013-02-19T06:27:52Z")

</div>

On a stopped Elasticsearch node, yes.

You can test it on a _test_ cluster.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 19 févr. 2013 à 06:22, [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com) a écrit :

Apologies for the simple question.

What would be the procedure for moving the data from the current data directory to a new directory ? Can I simple 'cp /old/data /new/data' without worrying about corruption someplace?

Is the only configuration point really

path:  
logs: /var/log/elasticsearch  
data: /var/data/elasticsearch

Thanks

-b

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![j\_barrett\_strausser](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/j_barrett_strausser/32/2484_2.png) [@j\_barrett\_strausser](https://discuss.elastic.co/u/j_barrett_strausser)\
**Post date:** [February 19, 2013, 4:49pm UTC](https://discuss.elastic.co/t/moving-data-directory/10791/3 "2013-02-19T16:49:28Z")

</div>

Bit of a snag

My data directory was previously ( I assume it was at least)

/var/lib/elasticsearch with

../graylog2  
../elasticsearch

being the child items

I wanted to move them to /bigdata/elasticsearch/data so I copied each  
directory over ending up with

/bigdata/elasticsearch/data/graylog2 and  
/bigdata/elasticsearch/data/elasticsearch

I then chowned /big/data/elasticsearch to elasticsearch:elasticsearch and  
make the chmod.

In my elasticsearch.yml I pointed path.data to /bigdata/elasticsearch/data

Running /etc/init.d/elasticsearch results in a failed start.

I'm sure I messed something trivial up. Nothing in /var/log/elasticsearch  
is being helpful though.

-barrett

On Tue, Feb 19, 2013 at 1:27 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> On a stopped Elasticsearch node, yes.
> 
> You can test it on a _test_ cluster.
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 19 févr. 2013 à 06:22, [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com) a écrit :
> 
> Apologies for the simple question.
> 
> What would be the procedure for moving the data from the current data  
> directory to a new directory ? Can I simple 'cp /old/data /new/data'  
> without worrying about corruption someplace?
> 
> Is the only configuration point really
> 
> path:  
> logs: /var/log/elasticsearch  
> data: /var/data/elasticsearch
> 
> Thanks
> 
> -b
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--

> **[bearrito - Overview](https://github.com/bearrito)**
>
> bearrito has 89 repositories available. Follow their code on GitHub.

@barrettsmash

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 19, 2013, 4:59pm UTC](https://discuss.elastic.co/t/moving-data-directory/10791/4 "2013-02-19T16:59:13Z")

</div>

graylog2 and elasticsearch dirs are relative to cluster names.

I think you first started a cluster using defaults and then move the cluster name to graylog2, don't you?

That said, what does logs are telling?  
How did you start Elasticsearch?

Are you sure that path are not set externally (in a launch script ?). I mean that your modifications in elasticsearch.yml are probably not read as a script already defines paths.

Does it help?

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 19 févr. 2013 à 17:49, "j.barrett strausser" [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com) a écrit :

> Bit of a snag
> 
> My data directory was previously ( I assume it was at least)
> 
> /var/lib/elasticsearch with
> 
> ../graylog2  
> ../elasticsearch
> 
> being the child items
> 
> I wanted to move them to /bigdata/elasticsearch/data so I copied each directory over ending up with
> 
> /bigdata/elasticsearch/data/graylog2 and /bigdata/elasticsearch/data/elasticsearch
> 
> I then chowned /big/data/elasticsearch to elasticsearch:elasticsearch and make the chmod.
> 
> In my elasticsearch.yml I pointed path.data to /bigdata/elasticsearch/data
> 
> Running /etc/init.d/elasticsearch results in a failed start.
> 
> I'm sure I messed something trivial up. Nothing in /var/log/elasticsearch is being helpful though.
> 
> -barrett
> 
> On Tue, Feb 19, 2013 at 1:27 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:  
> On a stopped Elasticsearch node, yes.
> 
> You can test it on a _test_ cluster.
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 19 févr. 2013 à 06:22, [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com) a écrit :
> 
> Apologies for the simple question.
> 
> What would be the procedure for moving the data from the current data directory to a new directory ? Can I simple 'cp /old/data /new/data' without worrying about corruption someplace?
> 
> Is the only configuration point really
> 
> path:  
> logs: /var/log/elasticsearch  
> data: /var/data/elasticsearch
> 
> Thanks
> 
> -b
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --
> 
> [bearrito (Barrett Strausser) · GitHub](https://github.com/bearrito)  
> @barrettsmash
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![j\_barrett\_strausser](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/j_barrett_strausser/32/2484_2.png) [@j\_barrett\_strausser](https://discuss.elastic.co/u/j_barrett_strausser)\
**Post date:** [February 19, 2013, 5:09pm UTC](https://discuss.elastic.co/t/moving-data-directory/10791/5 "2013-02-19T17:09:02Z")

</div>

For the record I am on

Ubunutu 12.10 running the deb found at :  
[http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.4.deb](http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.4.deb)  
I had no issues starting or indexing prior to changing the path.data to the  
new path. If I comment it out (revert to default) ES starts up again.

Correct on the first question. I realize I could essentially get rid of the  
elasticsearch directory inside of /data

I don't see any output in /var/log/elasticsearch.

I am starting ES via /etc/init.d/elasticsearch start

If it wasn't respecting the paths in the .yml then I assume it would still  
start as it should use the default paramaters.

-b

On Tue, Feb 19, 2013 at 11:59 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> graylog2 and elasticsearch dirs are relative to cluster names.
> 
> I think you first started a cluster using defaults and then move the  
> cluster name to graylog2, don't you?
> 
> That said, what does logs are telling?  
> How did you start Elasticsearch?
> 
> Are you sure that path are not set externally (in a launch script ?). I  
> mean that your modifications in elasticsearch.yml are probably not read as  
> a script already defines paths.
> 
> Does it help?
> 
> --  
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> 
> Le 19 févr. 2013 à 17:49, "j.barrett strausser" \<  
> [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com)\> a écrit :
> 
> Bit of a snag
> 
> My data directory was previously ( I assume it was at least)
> 
> /var/lib/elasticsearch with
> 
> ../graylog2  
> ../elasticsearch
> 
> being the child items
> 
> I wanted to move them to /bigdata/elasticsearch/data so I copied each  
> directory over ending up with
> 
> /bigdata/elasticsearch/data/graylog2 and  
> /bigdata/elasticsearch/data/elasticsearch
> 
> I then chowned /big/data/elasticsearch to elasticsearch:elasticsearch and  
> make the chmod.
> 
> In my elasticsearch.yml I pointed path.data to /bigdata/elasticsearch/data
> 
> Running /etc/init.d/elasticsearch results in a failed start.
> 
> I'm sure I messed something trivial up. Nothing in /var/log/elasticsearch  
> is being helpful though.
> 
> -barrett
> 
> On Tue, Feb 19, 2013 at 1:27 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> 
> > On a stopped Elasticsearch node, yes.
> > 
> > You can test it on a _test_ cluster.
> > 
> > --  
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 19 févr. 2013 à 06:22, [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com) a écrit :
> > 
> > Apologies for the simple question.
> > 
> > What would be the procedure for moving the data from the current data  
> > directory to a new directory ? Can I simple 'cp /old/data /new/data'  
> > without worrying about corruption someplace?
> > 
> > Is the only configuration point really
> > 
> > path:  
> > logs: /var/log/elasticsearch  
> > data: /var/data/elasticsearch
> > 
> > Thanks
> > 
> > -b
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --
> 
> [bearrito (Barrett Strausser) · GitHub](https://github.com/bearrito)  
> @barrettsmash
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--

> **[bearrito - Overview](https://github.com/bearrito)**
>
> bearrito has 89 repositories available. Follow their code on GitHub.

@barrettsmash

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 19, 2013, 5:12pm UTC](https://discuss.elastic.co/t/moving-data-directory/10791/6 "2013-02-19T17:12:03Z")

</div>

## Can you paste here your path\*\*\* lines ?

David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 19 févr. 2013 à 18:09, "j.barrett strausser" [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com) a écrit :

> For the record I am on
> 
> Ubunutu 12.10 running the deb found at : [http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.4.deb](http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.4.deb)  
> I had no issues starting or indexing prior to changing the path.data to the new path. If I comment it out (revert to default) ES starts up again.
> 
> Correct on the first question. I realize I could essentially get rid of the elasticsearch directory inside of /data
> 
> I don't see any output in /var/log/elasticsearch.
> 
> I am starting ES via /etc/init.d/elasticsearch start
> 
> If it wasn't respecting the paths in the .yml then I assume it would still start as it should use the default paramaters.
> 
> -b
> 
> On Tue, Feb 19, 2013 at 11:59 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:  
> graylog2 and elasticsearch dirs are relative to cluster names.
> 
> I think you first started a cluster using defaults and then move the cluster name to graylog2, don't you?
> 
> That said, what does logs are telling?  
> How did you start Elasticsearch?
> 
> Are you sure that path are not set externally (in a launch script ?). I mean that your modifications in elasticsearch.yml are probably not read as a script already defines paths.
> 
> Does it help?
> 
> --  
> David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
> @dadoonet | @elasticsearchfr | @scrutmydocs
> 
> Le 19 févr. 2013 à 17:49, "j.barrett strausser" [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com) a écrit :
> 
> > Bit of a snag
> > 
> > My data directory was previously ( I assume it was at least)
> > 
> > /var/lib/elasticsearch with
> > 
> > ../graylog2  
> > ../elasticsearch
> > 
> > being the child items
> > 
> > I wanted to move them to /bigdata/elasticsearch/data so I copied each directory over ending up with
> > 
> > /bigdata/elasticsearch/data/graylog2 and /bigdata/elasticsearch/data/elasticsearch
> > 
> > I then chowned /big/data/elasticsearch to elasticsearch:elasticsearch and make the chmod.
> > 
> > In my elasticsearch.yml I pointed path.data to /bigdata/elasticsearch/data
> > 
> > Running /etc/init.d/elasticsearch results in a failed start.
> > 
> > I'm sure I messed something trivial up. Nothing in /var/log/elasticsearch is being helpful though.
> > 
> > -barrett
> > 
> > On Tue, Feb 19, 2013 at 1:27 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:  
> > On a stopped Elasticsearch node, yes.
> > 
> > You can test it on a _test_ cluster.
> > 
> > --  
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 19 févr. 2013 à 06:22, [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com) a écrit :
> > 
> > Apologies for the simple question.
> > 
> > What would be the procedure for moving the data from the current data directory to a new directory ? Can I simple 'cp /old/data /new/data' without worrying about corruption someplace?
> > 
> > Is the only configuration point really
> > 
> > path:  
> > logs: /var/log/elasticsearch  
> > data: /var/data/elasticsearch
> > 
> > Thanks
> > 
> > -b
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --
> > 
> > [bearrito (Barrett Strausser) · GitHub](https://github.com/bearrito)  
> > @barrettsmash
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --
> 
> [bearrito (Barrett Strausser) · GitHub](https://github.com/bearrito)  
> @barrettsmash
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![j\_barrett\_strausser](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/j_barrett_strausser/32/2484_2.png) [@j\_barrett\_strausser](https://discuss.elastic.co/u/j_barrett_strausser)\
**Post date:** [February 19, 2013, 5:22pm UTC](https://discuss.elastic.co/t/moving-data-directory/10791/7 "2013-02-19T17:22:54Z")

</div>

#################################### Paths  
####################################

# Path to directory containing configuration (this file and logging.yml):

# 

# path.conf: /path/to/conf

# Path to directory where to store index data allocated for this node.

# 

path.data: /bigdata/elasticsearch/data

# 

# Can optionally include more than one location, causing data to be striped

across

# the locations (a la RAID 0) on a file level, favouring locations with

most free

# space on creation. For example:

# 

# path.data: /path/to/data1,/path/to/data2

# Path to temporary files:

# 

# path.work: /path/to/work

# Path to log files:

# 

# path.logs: /bigdata/elasticsearch/log

# Path to where plugins are installed:

# 

# path.plugins: /path/to/plugins

Running ls -la on /bigdata/elasticsearch/data gives

drwxrwxr-x 4 elasticsearch elasticsearch 4096 Feb 19 11:14 data

On Tue, Feb 19, 2013 at 12:12 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> Can you paste here your path\*\*\* lines ?
> 
> --  
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> 
> Le 19 févr. 2013 à 18:09, "j.barrett strausser" \<  
> [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com)\> a écrit :
> 
> For the record I am on
> 
> Ubunutu 12.10 running the deb found at :  
> [http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.4.deb](http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.4.deb)  
> I had no issues starting or indexing prior to changing the path.data to  
> the new path. If I comment it out (revert to default) ES starts up again.
> 
> Correct on the first question. I realize I could essentially get rid of  
> the elasticsearch directory inside of /data
> 
> I don't see any output in /var/log/elasticsearch.
> 
> I am starting ES via /etc/init.d/elasticsearch start
> 
> If it wasn't respecting the paths in the .yml then I assume it would still  
> start as it should use the default paramaters.
> 
> -b
> 
> On Tue, Feb 19, 2013 at 11:59 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> 
> > graylog2 and elasticsearch dirs are relative to cluster names.
> > 
> > I think you first started a cluster using defaults and then move the  
> > cluster name to graylog2, don't you?
> > 
> > That said, what does logs are telling?  
> > How did you start Elasticsearch?
> > 
> > Are you sure that path are not set externally (in a launch script ?). I  
> > mean that your modifications in elasticsearch.yml are probably not read as  
> > a script already defines paths.
> > 
> > Does it help?
> > 
> > --  
> > _David Pilato_ | _Technical Advocate_ | \*[Elasticsearch.com](http://Elasticsearch.com)[http://elasticsearch.com/](http://elasticsearch.com/)  
> > \*  
> > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> > | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> > 
> > Le 19 févr. 2013 à 17:49, "j.barrett strausser" \<  
> > [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com)\> a écrit :
> > 
> > Bit of a snag
> > 
> > My data directory was previously ( I assume it was at least)
> > 
> > /var/lib/elasticsearch with
> > 
> > ../graylog2  
> > ../elasticsearch
> > 
> > being the child items
> > 
> > I wanted to move them to /bigdata/elasticsearch/data so I copied each  
> > directory over ending up with
> > 
> > /bigdata/elasticsearch/data/graylog2 and  
> > /bigdata/elasticsearch/data/elasticsearch
> > 
> > I then chowned /big/data/elasticsearch to elasticsearch:elasticsearch and  
> > make the chmod.
> > 
> > In my elasticsearch.yml I pointed path.data to /bigdata/elasticsearch/data
> > 
> > Running /etc/init.d/elasticsearch results in a failed start.
> > 
> > I'm sure I messed something trivial up. Nothing in /var/log/elasticsearch  
> > is being helpful though.
> > 
> > -barrett
> > 
> > On Tue, Feb 19, 2013 at 1:27 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > 
> > > On a stopped Elasticsearch node, yes.
> > > 
> > > You can test it on a _test_ cluster.
> > > 
> > > --  
> > > David 😉  
> > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > 
> > > Le 19 févr. 2013 à 06:22, [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com) a écrit :
> > > 
> > > Apologies for the simple question.
> > > 
> > > What would be the procedure for moving the data from the current data  
> > > directory to a new directory ? Can I simple 'cp /old/data /new/data'  
> > > without worrying about corruption someplace?
> > > 
> > > Is the only configuration point really
> > > 
> > > path:  
> > > logs: /var/log/elasticsearch  
> > > data: /var/data/elasticsearch
> > > 
> > > Thanks
> > > 
> > > -b
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --
> > 
> > [bearrito (Barrett Strausser) · GitHub](https://github.com/bearrito)  
> > @barrettsmash
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --
> 
> [bearrito (Barrett Strausser) · GitHub](https://github.com/bearrito)  
> @barrettsmash
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--

> **[bearrito - Overview](https://github.com/bearrito)**
>
> Python,Go, Robotics, DevOps. bearrito has 100 repositories available. Follow their code on GitHub.

@barrettsmash

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 19, 2013, 5:27pm UTC](https://discuss.elastic.co/t/moving-data-directory/10791/8 "2013-02-19T17:27:37Z")

</div>

I just test that on 0.20.4 and have no problem moving dir.  
Perhaps you should log in DEBUG?

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 19 févr. 2013 à 18:22, "j.barrett strausser" [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com) a écrit :

> #################################### Paths ####################################
> 
> # Path to directory containing configuration (this file and logging.yml):
> 
> # 
> 
> # path.conf: /path/to/conf
> 
> # Path to directory where to store index data allocated for this node.
> 
> # 
> 
> path.data: /bigdata/elasticsearch/data
> 
> # 
> 
> # Can optionally include more than one location, causing data to be striped across
> 
> # the locations (a la RAID 0) on a file level, favouring locations with most free
> 
> # space on creation. For example:
> 
> # 
> 
> # path.data: /path/to/data1,/path/to/data2
> 
> # Path to temporary files:
> 
> # 
> 
> # path.work: /path/to/work
> 
> # Path to log files:
> 
> # 
> 
> # path.logs: /bigdata/elasticsearch/log
> 
> # Path to where plugins are installed:
> 
> # 
> 
> # path.plugins: /path/to/plugins
> 
> Running ls -la on /bigdata/elasticsearch/data gives
> 
> drwxrwxr-x 4 elasticsearch elasticsearch 4096 Feb 19 11:14 data
> 
> On Tue, Feb 19, 2013 at 12:12 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:  
> Can you paste here your path\*\*\* lines ?
> 
> --  
> David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
> @dadoonet | @elasticsearchfr | @scrutmydocs
> 
> Le 19 févr. 2013 à 18:09, "j.barrett strausser" [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com) a écrit :
> 
> > For the record I am on
> > 
> > Ubunutu 12.10 running the deb found at : [http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.4.deb](http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.4.deb)  
> > I had no issues starting or indexing prior to changing the path.data to the new path. If I comment it out (revert to default) ES starts up again.
> > 
> > Correct on the first question. I realize I could essentially get rid of the elasticsearch directory inside of /data
> > 
> > I don't see any output in /var/log/elasticsearch.
> > 
> > I am starting ES via /etc/init.d/elasticsearch start
> > 
> > If it wasn't respecting the paths in the .yml then I assume it would still start as it should use the default paramaters.
> > 
> > -b
> > 
> > On Tue, Feb 19, 2013 at 11:59 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:  
> > graylog2 and elasticsearch dirs are relative to cluster names.
> > 
> > I think you first started a cluster using defaults and then move the cluster name to graylog2, don't you?
> > 
> > That said, what does logs are telling?  
> > How did you start Elasticsearch?
> > 
> > Are you sure that path are not set externally (in a launch script ?). I mean that your modifications in elasticsearch.yml are probably not read as a script already defines paths.
> > 
> > Does it help?
> > 
> > --  
> > David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
> > @dadoonet | @elasticsearchfr | @scrutmydocs
> > 
> > Le 19 févr. 2013 à 17:49, "j.barrett strausser" [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com) a écrit :
> > 
> > > Bit of a snag
> > > 
> > > My data directory was previously ( I assume it was at least)
> > > 
> > > /var/lib/elasticsearch with
> > > 
> > > ../graylog2  
> > > ../elasticsearch
> > > 
> > > being the child items
> > > 
> > > I wanted to move them to /bigdata/elasticsearch/data so I copied each directory over ending up with
> > > 
> > > /bigdata/elasticsearch/data/graylog2 and /bigdata/elasticsearch/data/elasticsearch
> > > 
> > > I then chowned /big/data/elasticsearch to elasticsearch:elasticsearch and make the chmod.
> > > 
> > > In my elasticsearch.yml I pointed path.data to /bigdata/elasticsearch/data
> > > 
> > > Running /etc/init.d/elasticsearch results in a failed start.
> > > 
> > > I'm sure I messed something trivial up. Nothing in /var/log/elasticsearch is being helpful though.
> > > 
> > > -barrett
> > > 
> > > On Tue, Feb 19, 2013 at 1:27 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:  
> > > On a stopped Elasticsearch node, yes.
> > > 
> > > You can test it on a _test_ cluster.
> > > 
> > > --  
> > > David 😉  
> > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > 
> > > Le 19 févr. 2013 à 06:22, [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com) a écrit :
> > > 
> > > Apologies for the simple question.
> > > 
> > > What would be the procedure for moving the data from the current data directory to a new directory ? Can I simple 'cp /old/data /new/data' without worrying about corruption someplace?
> > > 
> > > Is the only configuration point really
> > > 
> > > path:  
> > > logs: /var/log/elasticsearch  
> > > data: /var/data/elasticsearch
> > > 
> > > Thanks
> > > 
> > > -b
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > 
> > > --
> > > 
> > > [bearrito (Barrett Strausser) · GitHub](https://github.com/bearrito)  
> > > @barrettsmash
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --
> > 
> > [bearrito (Barrett Strausser) · GitHub](https://github.com/bearrito)  
> > @barrettsmash
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --
> 
> [bearrito (Barrett Strausser) · GitHub](https://github.com/bearrito)  
> @barrettsmash
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![j\_barrett\_strausser](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/j_barrett_strausser/32/2484_2.png) [@j\_barrett\_strausser](https://discuss.elastic.co/u/j_barrett_strausser)\
**Post date:** [February 19, 2013, 5:28pm UTC](https://discuss.elastic.co/t/moving-data-directory/10791/9 "2013-02-19T17:28:49Z")

</div>

Let me figure out how to do that and I'll get back to you with the results.

Thanks for the help so far though.

-barrett

On Tue, Feb 19, 2013 at 12:27 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> I just test that on 0.20.4 and have no problem moving dir.  
> Perhaps you should log in DEBUG?
> 
> --  
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> 
> Le 19 févr. 2013 à 18:22, "j.barrett strausser" \<  
> [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com)\> a écrit :
> 
> #################################### Paths  
> ####################################
> 
> # Path to directory containing configuration (this file and logging.yml):
> 
> # 
> 
> # path.conf: /path/to/conf
> 
> # Path to directory where to store index data allocated for this node.
> 
> # 
> 
> path.data: /bigdata/elasticsearch/data
> 
> # 
> 
> # Can optionally include more than one location, causing data to be
> 
> striped across
> 
> # the locations (a la RAID 0) on a file level, favouring locations with
> 
> most free
> 
> # space on creation. For example:
> 
> # 
> 
> # path.data: /path/to/data1,/path/to/data2
> 
> # Path to temporary files:
> 
> # 
> 
> # path.work: /path/to/work
> 
> # Path to log files:
> 
> # 
> 
> # path.logs: /bigdata/elasticsearch/log
> 
> # Path to where plugins are installed:
> 
> # 
> 
> # path.plugins: /path/to/plugins
> 
> Running ls -la on /bigdata/elasticsearch/data gives
> 
> drwxrwxr-x 4 elasticsearch elasticsearch 4096 Feb 19 11:14 data
> 
> On Tue, Feb 19, 2013 at 12:12 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> 
> > Can you paste here your path\*\*\* lines ?
> > 
> > --  
> > _David Pilato_ | _Technical Advocate_ | \*[Elasticsearch.com](http://Elasticsearch.com)[http://elasticsearch.com/](http://elasticsearch.com/)  
> > \*  
> > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> > | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> > 
> > Le 19 févr. 2013 à 18:09, "j.barrett strausser" \<  
> > [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com)\> a écrit :
> > 
> > For the record I am on
> > 
> > Ubunutu 12.10 running the deb found at :  
> > [http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.4.deb](http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.4.deb)  
> > I had no issues starting or indexing prior to changing the path.data to  
> > the new path. If I comment it out (revert to default) ES starts up again.
> > 
> > Correct on the first question. I realize I could essentially get rid of  
> > the elasticsearch directory inside of /data
> > 
> > I don't see any output in /var/log/elasticsearch.
> > 
> > I am starting ES via /etc/init.d/elasticsearch start
> > 
> > If it wasn't respecting the paths in the .yml then I assume it would  
> > still start as it should use the default paramaters.
> > 
> > -b
> > 
> > On Tue, Feb 19, 2013 at 11:59 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > 
> > > graylog2 and elasticsearch dirs are relative to cluster names.
> > > 
> > > I think you first started a cluster using defaults and then move the  
> > > cluster name to graylog2, don't you?
> > > 
> > > That said, what does logs are telling?  
> > > How did you start Elasticsearch?
> > > 
> > > Are you sure that path are not set externally (in a launch script ?). I  
> > > mean that your modifications in elasticsearch.yml are probably not read as  
> > > a script already defines paths.
> > > 
> > > Does it help?
> > > 
> > > --  
> > > _David Pilato_ | _Technical Advocate_ | \*[Elasticsearch.com](http://Elasticsearch.com)[http://elasticsearch.com/](http://elasticsearch.com/)  
> > > \*  
> > > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> > > | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> > > 
> > > Le 19 févr. 2013 à 17:49, "j.barrett strausser" \<  
> > > [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com)\> a écrit :
> > > 
> > > Bit of a snag
> > > 
> > > My data directory was previously ( I assume it was at least)
> > > 
> > > /var/lib/elasticsearch with
> > > 
> > > ../graylog2  
> > > ../elasticsearch
> > > 
> > > being the child items
> > > 
> > > I wanted to move them to /bigdata/elasticsearch/data so I copied each  
> > > directory over ending up with
> > > 
> > > /bigdata/elasticsearch/data/graylog2 and  
> > > /bigdata/elasticsearch/data/elasticsearch
> > > 
> > > I then chowned /big/data/elasticsearch to elasticsearch:elasticsearch  
> > > and make the chmod.
> > > 
> > > In my elasticsearch.yml I pointed path.data to  
> > > /bigdata/elasticsearch/data
> > > 
> > > Running /etc/init.d/elasticsearch results in a failed start.
> > > 
> > > I'm sure I messed something trivial up. Nothing in  
> > > /var/log/elasticsearch is being helpful though.
> > > 
> > > -barrett
> > > 
> > > On Tue, Feb 19, 2013 at 1:27 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > > 
> > > > On a stopped Elasticsearch node, yes.
> > > > 
> > > > You can test it on a _test_ cluster.
> > > > 
> > > > --  
> > > > David 😉  
> > > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > > 
> > > > Le 19 févr. 2013 à 06:22, [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com) a écrit :
> > > > 
> > > > Apologies for the simple question.
> > > > 
> > > > What would be the procedure for moving the data from the current data  
> > > > directory to a new directory ? Can I simple 'cp /old/data /new/data'  
> > > > without worrying about corruption someplace?
> > > > 
> > > > Is the only configuration point really
> > > > 
> > > > path:  
> > > > logs: /var/log/elasticsearch  
> > > > data: /var/data/elasticsearch
> > > > 
> > > > Thanks
> > > > 
> > > > -b
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to the Google  
> > > > Groups "elasticsearch" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to the Google  
> > > > Groups "elasticsearch" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > 
> > > --
> > > 
> > > [bearrito (Barrett Strausser) · GitHub](https://github.com/bearrito)  
> > > @barrettsmash
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --
> > 
> > [bearrito (Barrett Strausser) · GitHub](https://github.com/bearrito)  
> > @barrettsmash
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --
> 
> [bearrito (Barrett Strausser) · GitHub](https://github.com/bearrito)  
> @barrettsmash
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--

> **[bearrito - Overview](https://github.com/bearrito)**
>
> bearrito has 89 repositories available. Follow their code on GitHub.

@barrettsmash

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![j\_barrett\_strausser](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/j_barrett_strausser/32/2484_2.png) [@j\_barrett\_strausser](https://discuss.elastic.co/u/j_barrett_strausser)\
**Post date:** [February 19, 2013, 5:43pm UTC](https://discuss.elastic.co/t/moving-data-directory/10791/10 "2013-02-19T17:43:28Z")

</div>

The level was already set at DEBUG in my logging.yml

On Tue, Feb 19, 2013 at 12:28 PM, j.barrett strausser \<  
[j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com)\> wrote:

> Let me figure out how to do that and I'll get back to you with the results.
> 
> Thanks for the help so far though.
> 
> -barrett
> 
> On Tue, Feb 19, 2013 at 12:27 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> 
> > I just test that on 0.20.4 and have no problem moving dir.  
> > Perhaps you should log in DEBUG?
> > 
> > --  
> > _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> > | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> > 
> > Le 19 févr. 2013 à 18:22, "j.barrett strausser" \<  
> > [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com)\> a écrit :
> > 
> > #################################### Paths  
> > ####################################
> > 
> > # Path to directory containing configuration (this file and logging.yml):
> > 
> > # 
> > 
> > # path.conf: /path/to/conf
> > 
> > # Path to directory where to store index data allocated for this node.
> > 
> > # 
> > 
> > path.data: /bigdata/elasticsearch/data
> > 
> > # 
> > 
> > # Can optionally include more than one location, causing data to be
> > 
> > striped across
> > 
> > # the locations (a la RAID 0) on a file level, favouring locations with
> > 
> > most free
> > 
> > # space on creation. For example:
> > 
> > # 
> > 
> > # path.data: /path/to/data1,/path/to/data2
> > 
> > # Path to temporary files:
> > 
> > # 
> > 
> > # path.work: /path/to/work
> > 
> > # Path to log files:
> > 
> > # 
> > 
> > # path.logs: /bigdata/elasticsearch/log
> > 
> > # Path to where plugins are installed:
> > 
> > # 
> > 
> > # path.plugins: /path/to/plugins
> > 
> > Running ls -la on /bigdata/elasticsearch/data gives
> > 
> > drwxrwxr-x 4 elasticsearch elasticsearch 4096 Feb 19 11:14 data
> > 
> > On Tue, Feb 19, 2013 at 12:12 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > 
> > > Can you paste here your path\*\*\* lines ?
> > > 
> > > --  
> > > _David Pilato_ | _Technical Advocate_ | \*[Elasticsearch.com](http://Elasticsearch.com)[http://elasticsearch.com/](http://elasticsearch.com/)  
> > > \*  
> > > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> > > | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> > > 
> > > Le 19 févr. 2013 à 18:09, "j.barrett strausser" \<  
> > > [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com)\> a écrit :
> > > 
> > > For the record I am on
> > > 
> > > Ubunutu 12.10 running the deb found at :  
> > > [http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.4.deb](http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.4.deb)  
> > > I had no issues starting or indexing prior to changing the path.data to  
> > > the new path. If I comment it out (revert to default) ES starts up again.
> > > 
> > > Correct on the first question. I realize I could essentially get rid of  
> > > the elasticsearch directory inside of /data
> > > 
> > > I don't see any output in /var/log/elasticsearch.
> > > 
> > > I am starting ES via /etc/init.d/elasticsearch start
> > > 
> > > If it wasn't respecting the paths in the .yml then I assume it would  
> > > still start as it should use the default paramaters.
> > > 
> > > -b
> > > 
> > > On Tue, Feb 19, 2013 at 11:59 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > > 
> > > > graylog2 and elasticsearch dirs are relative to cluster names.
> > > > 
> > > > I think you first started a cluster using defaults and then move the  
> > > > cluster name to graylog2, don't you?
> > > > 
> > > > That said, what does logs are telling?  
> > > > How did you start Elasticsearch?
> > > > 
> > > > Are you sure that path are not set externally (in a launch script ?). I  
> > > > mean that your modifications in elasticsearch.yml are probably not read as  
> > > > a script already defines paths.
> > > > 
> > > > Does it help?
> > > > 
> > > > --  
> > > > _David Pilato_ | _Technical Advocate_ | \*[Elasticsearch.com](http://Elasticsearch.com)[http://elasticsearch.com/](http://elasticsearch.com/)  
> > > > \*  
> > > > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> > > > | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> > > > 
> > > > Le 19 févr. 2013 à 17:49, "j.barrett strausser" \<  
> > > > [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com)\> a écrit :
> > > > 
> > > > Bit of a snag
> > > > 
> > > > My data directory was previously ( I assume it was at least)
> > > > 
> > > > /var/lib/elasticsearch with
> > > > 
> > > > ../graylog2  
> > > > ../elasticsearch
> > > > 
> > > > being the child items
> > > > 
> > > > I wanted to move them to /bigdata/elasticsearch/data so I copied each  
> > > > directory over ending up with
> > > > 
> > > > /bigdata/elasticsearch/data/graylog2 and  
> > > > /bigdata/elasticsearch/data/elasticsearch
> > > > 
> > > > I then chowned /big/data/elasticsearch to elasticsearch:elasticsearch  
> > > > and make the chmod.
> > > > 
> > > > In my elasticsearch.yml I pointed path.data to  
> > > > /bigdata/elasticsearch/data
> > > > 
> > > > Running /etc/init.d/elasticsearch results in a failed start.
> > > > 
> > > > I'm sure I messed something trivial up. Nothing in  
> > > > /var/log/elasticsearch is being helpful though.
> > > > 
> > > > -barrett
> > > > 
> > > > On Tue, Feb 19, 2013 at 1:27 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > > > 
> > > > > On a stopped Elasticsearch node, yes.
> > > > > 
> > > > > You can test it on a _test_ cluster.
> > > > > 
> > > > > --  
> > > > > David 😉  
> > > > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > > > 
> > > > > Le 19 févr. 2013 à 06:22, [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com) a écrit :
> > > > > 
> > > > > Apologies for the simple question.
> > > > > 
> > > > > What would be the procedure for moving the data from the current data  
> > > > > directory to a new directory ? Can I simple 'cp /old/data /new/data'  
> > > > > without worrying about corruption someplace?
> > > > > 
> > > > > Is the only configuration point really
> > > > > 
> > > > > path:  
> > > > > logs: /var/log/elasticsearch  
> > > > > data: /var/data/elasticsearch
> > > > > 
> > > > > Thanks
> > > > > 
> > > > > -b
> > > > > 
> > > > > --  
> > > > > You received this message because you are subscribed to the Google  
> > > > > Groups "elasticsearch" group.  
> > > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > > 
> > > > > --  
> > > > > You received this message because you are subscribed to the Google  
> > > > > Groups "elasticsearch" group.  
> > > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > 
> > > > --
> > > > 
> > > > [bearrito (Barrett Strausser) · GitHub](https://github.com/bearrito)  
> > > > @barrettsmash
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to the Google  
> > > > Groups "elasticsearch" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to the Google  
> > > > Groups "elasticsearch" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > 
> > > --
> > > 
> > > [bearrito (Barrett Strausser) · GitHub](https://github.com/bearrito)  
> > > @barrettsmash
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --
> > 
> > [bearrito (Barrett Strausser) · GitHub](https://github.com/bearrito)  
> > @barrettsmash
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --
> 
> [bearrito (Barrett Strausser) · GitHub](https://github.com/bearrito)  
> @barrettsmash

--

> **[bearrito - Overview](https://github.com/bearrito)**
>
> bearrito has 89 repositories available. Follow their code on GitHub.

@barrettsmash

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 19, 2013, 5:50pm UTC](https://discuss.elastic.co/t/moving-data-directory/10791/11 "2013-02-19T17:50:05Z")

</div>

Can Gist your logs?

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 19 févr. 2013 à 18:43, "j.barrett strausser" [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com) a écrit :

> The level was already set at DEBUG in my logging.yml
> 
> On Tue, Feb 19, 2013 at 12:28 PM, j.barrett strausser [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com) wrote:  
> Let me figure out how to do that and I'll get back to you with the results.
> 
> Thanks for the help so far though.
> 
> -barrett
> 
> On Tue, Feb 19, 2013 at 12:27 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:  
> I just test that on 0.20.4 and have no problem moving dir.  
> Perhaps you should log in DEBUG?
> 
> --  
> David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
> @dadoonet | @elasticsearchfr | @scrutmydocs
> 
> Le 19 févr. 2013 à 18:22, "j.barrett strausser" [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com) a écrit :
> 
> > #################################### Paths ####################################
> > 
> > # Path to directory containing configuration (this file and logging.yml):
> > 
> > # 
> > 
> > # path.conf: /path/to/conf
> > 
> > # Path to directory where to store index data allocated for this node.
> > 
> > # 
> > 
> > path.data: /bigdata/elasticsearch/data
> > 
> > # 
> > 
> > # Can optionally include more than one location, causing data to be striped across
> > 
> > # the locations (a la RAID 0) on a file level, favouring locations with most free
> > 
> > # space on creation. For example:
> > 
> > # 
> > 
> > # path.data: /path/to/data1,/path/to/data2
> > 
> > # Path to temporary files:
> > 
> > # 
> > 
> > # path.work: /path/to/work
> > 
> > # Path to log files:
> > 
> > # 
> > 
> > # path.logs: /bigdata/elasticsearch/log
> > 
> > # Path to where plugins are installed:
> > 
> > # 
> > 
> > # path.plugins: /path/to/plugins
> > 
> > Running ls -la on /bigdata/elasticsearch/data gives
> > 
> > drwxrwxr-x 4 elasticsearch elasticsearch 4096 Feb 19 11:14 data
> > 
> > On Tue, Feb 19, 2013 at 12:12 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:  
> > Can you paste here your path\*\*\* lines ?
> > 
> > --  
> > David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
> > @dadoonet | @elasticsearchfr | @scrutmydocs
> > 
> > Le 19 févr. 2013 à 18:09, "j.barrett strausser" [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com) a écrit :
> > 
> > > For the record I am on
> > > 
> > > Ubunutu 12.10 running the deb found at : [http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.4.deb](http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.4.deb)  
> > > I had no issues starting or indexing prior to changing the path.data to the new path. If I comment it out (revert to default) ES starts up again.
> > > 
> > > Correct on the first question. I realize I could essentially get rid of the elasticsearch directory inside of /data
> > > 
> > > I don't see any output in /var/log/elasticsearch.
> > > 
> > > I am starting ES via /etc/init.d/elasticsearch start
> > > 
> > > If it wasn't respecting the paths in the .yml then I assume it would still start as it should use the default paramaters.
> > > 
> > > -b
> > > 
> > > On Tue, Feb 19, 2013 at 11:59 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:  
> > > graylog2 and elasticsearch dirs are relative to cluster names.
> > > 
> > > I think you first started a cluster using defaults and then move the cluster name to graylog2, don't you?
> > > 
> > > That said, what does logs are telling?  
> > > How did you start Elasticsearch?
> > > 
> > > Are you sure that path are not set externally (in a launch script ?). I mean that your modifications in elasticsearch.yml are probably not read as a script already defines paths.
> > > 
> > > Does it help?
> > > 
> > > --  
> > > David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
> > > @dadoonet | @elasticsearchfr | @scrutmydocs
> > > 
> > > Le 19 févr. 2013 à 17:49, "j.barrett strausser" [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com) a écrit :
> > > 
> > > > Bit of a snag
> > > > 
> > > > My data directory was previously ( I assume it was at least)
> > > > 
> > > > /var/lib/elasticsearch with
> > > > 
> > > > ../graylog2  
> > > > ../elasticsearch
> > > > 
> > > > being the child items
> > > > 
> > > > I wanted to move them to /bigdata/elasticsearch/data so I copied each directory over ending up with
> > > > 
> > > > /bigdata/elasticsearch/data/graylog2 and /bigdata/elasticsearch/data/elasticsearch
> > > > 
> > > > I then chowned /big/data/elasticsearch to elasticsearch:elasticsearch and make the chmod.
> > > > 
> > > > In my elasticsearch.yml I pointed path.data to /bigdata/elasticsearch/data
> > > > 
> > > > Running /etc/init.d/elasticsearch results in a failed start.
> > > > 
> > > > I'm sure I messed something trivial up. Nothing in /var/log/elasticsearch is being helpful though.
> > > > 
> > > > -barrett
> > > > 
> > > > On Tue, Feb 19, 2013 at 1:27 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:  
> > > > On a stopped Elasticsearch node, yes.
> > > > 
> > > > You can test it on a _test_ cluster.
> > > > 
> > > > --  
> > > > David 😉  
> > > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > > 
> > > > Le 19 févr. 2013 à 06:22, [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com) a écrit :
> > > > 
> > > > Apologies for the simple question.
> > > > 
> > > > What would be the procedure for moving the data from the current data directory to a new directory ? Can I simple 'cp /old/data /new/data' without worrying about corruption someplace?
> > > > 
> > > > Is the only configuration point really
> > > > 
> > > > path:  
> > > > logs: /var/log/elasticsearch  
> > > > data: /var/data/elasticsearch
> > > > 
> > > > Thanks
> > > > 
> > > > -b
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > 
> > > > --
> > > > 
> > > > [bearrito (Barrett Strausser) · GitHub](https://github.com/bearrito)  
> > > > @barrettsmash
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > 
> > > --
> > > 
> > > [bearrito (Barrett Strausser) · GitHub](https://github.com/bearrito)  
> > > @barrettsmash
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --
> > 
> > [bearrito (Barrett Strausser) · GitHub](https://github.com/bearrito)  
> > @barrettsmash
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --
> 
> [bearrito (Barrett Strausser) · GitHub](https://github.com/bearrito)  
> @barrettsmash
> 
> --
> 
> [bearrito (Barrett Strausser) · GitHub](https://github.com/bearrito)  
> @barrettsmash
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![j\_barrett\_strausser](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/j_barrett_strausser/32/2484_2.png) [@j\_barrett\_strausser](https://discuss.elastic.co/u/j_barrett_strausser)\
**Post date:** [February 19, 2013, 7:15pm UTC](https://discuss.elastic.co/t/moving-data-directory/10791/12 "2013-02-19T19:15:58Z")

</div>

That is the log from a successful start, meaning ; I had my "new" data  
path commented out.  
Uncommenting the new data path results in no logs being put in the file.

> <https://github.com/bstrausser/elasticsearchdebug/blob/master/graylog2.log>

On Tue, Feb 19, 2013 at 12:50 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> Can Gist your logs?
> 
> --  
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> 
> Le 19 févr. 2013 à 18:43, "j.barrett strausser" \<  
> [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com)\> a écrit :
> 
> The level was already set at DEBUG in my logging.yml
> 
> On Tue, Feb 19, 2013 at 12:28 PM, j.barrett strausser \<  
> [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com)\> wrote:
> 
> > Let me figure out how to do that and I'll get back to you with the  
> > results.
> > 
> > Thanks for the help so far though.
> > 
> > -barrett
> > 
> > On Tue, Feb 19, 2013 at 12:27 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > 
> > > I just test that on 0.20.4 and have no problem moving dir.  
> > > Perhaps you should log in DEBUG?
> > > 
> > > --  
> > > _David Pilato_ | _Technical Advocate_ | \*[Elasticsearch.com](http://Elasticsearch.com)[http://elasticsearch.com/](http://elasticsearch.com/)  
> > > \*  
> > > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> > > | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> > > 
> > > Le 19 févr. 2013 à 18:22, "j.barrett strausser" \<  
> > > [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com)\> a écrit :
> > > 
> > > #################################### Paths  
> > > ####################################
> > > 
> > > # Path to directory containing configuration (this file and logging.yml):
> > > 
> > > # 
> > > 
> > > # path.conf: /path/to/conf
> > > 
> > > # Path to directory where to store index data allocated for this node.
> > > 
> > > # 
> > > 
> > > path.data: /bigdata/elasticsearch/data
> > > 
> > > # 
> > > 
> > > # Can optionally include more than one location, causing data to be
> > > 
> > > striped across
> > > 
> > > # the locations (a la RAID 0) on a file level, favouring locations with
> > > 
> > > most free
> > > 
> > > # space on creation. For example:
> > > 
> > > # 
> > > 
> > > # path.data: /path/to/data1,/path/to/data2
> > > 
> > > # Path to temporary files:
> > > 
> > > # 
> > > 
> > > # path.work: /path/to/work
> > > 
> > > # Path to log files:
> > > 
> > > # 
> > > 
> > > # path.logs: /bigdata/elasticsearch/log
> > > 
> > > # Path to where plugins are installed:
> > > 
> > > # 
> > > 
> > > # path.plugins: /path/to/plugins
> > > 
> > > Running ls -la on /bigdata/elasticsearch/data gives
> > > 
> > > drwxrwxr-x 4 elasticsearch elasticsearch 4096 Feb 19 11:14 data
> > > 
> > > On Tue, Feb 19, 2013 at 12:12 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > > 
> > > > Can you paste here your path\*\*\* lines ?
> > > > 
> > > > --  
> > > > _David Pilato_ | _Technical Advocate_ | \*[Elasticsearch.com](http://Elasticsearch.com)[http://elasticsearch.com/](http://elasticsearch.com/)  
> > > > \*  
> > > > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> > > > | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> > > > 
> > > > Le 19 févr. 2013 à 18:09, "j.barrett strausser" \<  
> > > > [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com)\> a écrit :
> > > > 
> > > > For the record I am on
> > > > 
> > > > Ubunutu 12.10 running the deb found at :  
> > > > [http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.4.deb](http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.4.deb)  
> > > > I had no issues starting or indexing prior to changing the path.data to  
> > > > the new path. If I comment it out (revert to default) ES starts up again.
> > > > 
> > > > Correct on the first question. I realize I could essentially get rid of  
> > > > the elasticsearch directory inside of /data
> > > > 
> > > > I don't see any output in /var/log/elasticsearch.
> > > > 
> > > > I am starting ES via /etc/init.d/elasticsearch start
> > > > 
> > > > If it wasn't respecting the paths in the .yml then I assume it would  
> > > > still start as it should use the default paramaters.
> > > > 
> > > > -b
> > > > 
> > > > On Tue, Feb 19, 2013 at 11:59 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > > > 
> > > > > graylog2 and elasticsearch dirs are relative to cluster names.
> > > > > 
> > > > > I think you first started a cluster using defaults and then move the  
> > > > > cluster name to graylog2, don't you?
> > > > > 
> > > > > That said, what does logs are telling?  
> > > > > How did you start Elasticsearch?
> > > > > 
> > > > > Are you sure that path are not set externally (in a launch script ?).  
> > > > > I mean that your modifications in elasticsearch.yml are probably not read  
> > > > > as a script already defines paths.
> > > > > 
> > > > > Does it help?
> > > > > 
> > > > > --  
> > > > > _David Pilato_ | _Technical Advocate_ | \*[Elasticsearch.com](http://Elasticsearch.com)[http://elasticsearch.com/](http://elasticsearch.com/)  
> > > > > \*  
> > > > > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> > > > > | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> > > > > 
> > > > > Le 19 févr. 2013 à 17:49, "j.barrett strausser" \<  
> > > > > [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com)\> a écrit :
> > > > > 
> > > > > Bit of a snag
> > > > > 
> > > > > My data directory was previously ( I assume it was at least)
> > > > > 
> > > > > /var/lib/elasticsearch with
> > > > > 
> > > > > ../graylog2  
> > > > > ../elasticsearch
> > > > > 
> > > > > being the child items
> > > > > 
> > > > > I wanted to move them to /bigdata/elasticsearch/data so I copied each  
> > > > > directory over ending up with
> > > > > 
> > > > > /bigdata/elasticsearch/data/graylog2 and  
> > > > > /bigdata/elasticsearch/data/elasticsearch
> > > > > 
> > > > > I then chowned /big/data/elasticsearch to elasticsearch:elasticsearch  
> > > > > and make the chmod.
> > > > > 
> > > > > In my elasticsearch.yml I pointed path.data to  
> > > > > /bigdata/elasticsearch/data
> > > > > 
> > > > > Running /etc/init.d/elasticsearch results in a failed start.
> > > > > 
> > > > > I'm sure I messed something trivial up. Nothing in  
> > > > > /var/log/elasticsearch is being helpful though.
> > > > > 
> > > > > -barrett
> > > > > 
> > > > > On Tue, Feb 19, 2013 at 1:27 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > > > > 
> > > > > > On a stopped Elasticsearch node, yes.
> > > > > > 
> > > > > > You can test it on a _test_ cluster.
> > > > > > 
> > > > > > --  
> > > > > > David 😉  
> > > > > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > > > > 
> > > > > > Le 19 févr. 2013 à 06:22, [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com) a écrit :
> > > > > > 
> > > > > > Apologies for the simple question.
> > > > > > 
> > > > > > What would be the procedure for moving the data from the current data  
> > > > > > directory to a new directory ? Can I simple 'cp /old/data /new/data'  
> > > > > > without worrying about corruption someplace?
> > > > > > 
> > > > > > Is the only configuration point really
> > > > > > 
> > > > > > path:  
> > > > > > logs: /var/log/elasticsearch  
> > > > > > data: /var/data/elasticsearch
> > > > > > 
> > > > > > Thanks
> > > > > > 
> > > > > > -b
> > > > > > 
> > > > > > --  
> > > > > > You received this message because you are subscribed to the Google  
> > > > > > Groups "elasticsearch" group.  
> > > > > > To unsubscribe from this group and stop receiving emails from it,  
> > > > > > send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > > > 
> > > > > > --  
> > > > > > You received this message because you are subscribed to the Google  
> > > > > > Groups "elasticsearch" group.  
> > > > > > To unsubscribe from this group and stop receiving emails from it,  
> > > > > > send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > > 
> > > > > --
> > > > > 
> > > > > [bearrito (Barrett Strausser) · GitHub](https://github.com/bearrito)  
> > > > > @barrettsmash
> > > > > 
> > > > > --  
> > > > > You received this message because you are subscribed to the Google  
> > > > > Groups "elasticsearch" group.  
> > > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > > 
> > > > > --  
> > > > > You received this message because you are subscribed to the Google  
> > > > > Groups "elasticsearch" group.  
> > > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > 
> > > > --
> > > > 
> > > > [bearrito (Barrett Strausser) · GitHub](https://github.com/bearrito)  
> > > > @barrettsmash
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to the Google  
> > > > Groups "elasticsearch" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to the Google  
> > > > Groups "elasticsearch" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > 
> > > --
> > > 
> > > [bearrito (Barrett Strausser) · GitHub](https://github.com/bearrito)  
> > > @barrettsmash
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --
> > 
> > [bearrito (Barrett Strausser) · GitHub](https://github.com/bearrito)  
> > @barrettsmash
> 
> --
> 
> [bearrito (Barrett Strausser) · GitHub](https://github.com/bearrito)  
> @barrettsmash
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--

> **[bearrito - Overview](https://github.com/bearrito)**
>
> bearrito has 89 repositories available. Follow their code on GitHub.

@barrettsmash

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![j\_barrett\_strausser](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/j_barrett_strausser/32/2484_2.png) [@j\_barrett\_strausser](https://discuss.elastic.co/u/j_barrett_strausser)\
**Post date:** [February 19, 2013, 9:27pm UTC](https://discuss.elastic.co/t/moving-data-directory/10791/13 "2013-02-19T21:27:58Z")

</div>

☹

Turned out to be a whitespace issue in my elastisearch.yaml.

I wish it had been easier to locate this issue.

In any case, I ended up doing the following in /etc/init.d/elasticsearch

On the start-stop-daemon command I modified the following

original :

--exec /bin/bash -- -c "$DAEMON $DAEMON\_ARGS"

modified:

--exec /bin/bash -- -c "$DAEMON $DAEMON\_ARGS \>  
/var/log/elasticsearch/startup.log 2\>&1"

I then saw the following error :

Setup Failed ...

- SettingsException[Failed to load settings from  
[file:/etc/elasticsearch/elasticsearch.yml]]  
ParserException[while parsing a block mapping; expected , but found BlockMappingStart]

which I recognized as a yaml error.

-barrett

On Tue, Feb 19, 2013 at 2:15 PM, j.barrett strausser \<  
[j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com)\> wrote:

> That is the log from a successful start, meaning ; I had my "new" data  
> path commented out.  
> Uncommenting the new data path results in no logs being put in the file.
> 
> [https://github.com/bstrausser/elasticsearchdebug/blob/master/graylog2.log](https://github.com/bstrausser/elasticsearchdebug/blob/master/graylog2.log)
> 
> On Tue, Feb 19, 2013 at 12:50 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> 
> > Can Gist your logs?
> > 
> > --  
> > _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> > | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> > 
> > Le 19 févr. 2013 à 18:43, "j.barrett strausser" \<  
> > [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com)\> a écrit :
> > 
> > The level was already set at DEBUG in my logging.yml
> > 
> > On Tue, Feb 19, 2013 at 12:28 PM, j.barrett strausser \<  
> > [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com)\> wrote:
> > 
> > > Let me figure out how to do that and I'll get back to you with the  
> > > results.
> > > 
> > > Thanks for the help so far though.
> > > 
> > > -barrett
> > > 
> > > On Tue, Feb 19, 2013 at 12:27 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > > 
> > > > I just test that on 0.20.4 and have no problem moving dir.  
> > > > Perhaps you should log in DEBUG?
> > > > 
> > > > --  
> > > > _David Pilato_ | _Technical Advocate_ | \*[Elasticsearch.com](http://Elasticsearch.com)[http://elasticsearch.com/](http://elasticsearch.com/)  
> > > > \*  
> > > > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> > > > | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> > > > 
> > > > Le 19 févr. 2013 à 18:22, "j.barrett strausser" \<  
> > > > [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com)\> a écrit :
> > > > 
> > > > #################################### Paths  
> > > > ####################################
> > > > 
> > > > # Path to directory containing configuration (this file and
> > > > 
> > > > logging.yml):
> > > > 
> > > > # 
> > > > 
> > > > # path.conf: /path/to/conf
> > > > 
> > > > # Path to directory where to store index data allocated for this node.
> > > > 
> > > > # 
> > > > 
> > > > path.data: /bigdata/elasticsearch/data
> > > > 
> > > > # 
> > > > 
> > > > # Can optionally include more than one location, causing data to be
> > > > 
> > > > striped across
> > > > 
> > > > # the locations (a la RAID 0) on a file level, favouring locations with
> > > > 
> > > > most free
> > > > 
> > > > # space on creation. For example:
> > > > 
> > > > # 
> > > > 
> > > > # path.data: /path/to/data1,/path/to/data2
> > > > 
> > > > # Path to temporary files:
> > > > 
> > > > # 
> > > > 
> > > > # path.work: /path/to/work
> > > > 
> > > > # Path to log files:
> > > > 
> > > > # 
> > > > 
> > > > # path.logs: /bigdata/elasticsearch/log
> > > > 
> > > > # Path to where plugins are installed:
> > > > 
> > > > # 
> > > > 
> > > > # path.plugins: /path/to/plugins
> > > > 
> > > > Running ls -la on /bigdata/elasticsearch/data gives
> > > > 
> > > > drwxrwxr-x 4 elasticsearch elasticsearch 4096 Feb 19 11:14 data
> > > > 
> > > > On Tue, Feb 19, 2013 at 12:12 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > > > 
> > > > > Can you paste here your path\*\*\* lines ?
> > > > > 
> > > > > --  
> > > > > _David Pilato_ | _Technical Advocate_ | \*[Elasticsearch.com](http://Elasticsearch.com)[http://elasticsearch.com/](http://elasticsearch.com/)  
> > > > > \*  
> > > > > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> > > > > | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> > > > > 
> > > > > Le 19 févr. 2013 à 18:09, "j.barrett strausser" \<  
> > > > > [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com)\> a écrit :
> > > > > 
> > > > > For the record I am on
> > > > > 
> > > > > Ubunutu 12.10 running the deb found at :  
> > > > > [http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.4.deb](http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.4.deb)  
> > > > > I had no issues starting or indexing prior to changing the path.data  
> > > > > to the new path. If I comment it out (revert to default) ES starts up again.
> > > > > 
> > > > > Correct on the first question. I realize I could essentially get rid  
> > > > > of the elasticsearch directory inside of /data
> > > > > 
> > > > > I don't see any output in /var/log/elasticsearch.
> > > > > 
> > > > > I am starting ES via /etc/init.d/elasticsearch start
> > > > > 
> > > > > If it wasn't respecting the paths in the .yml then I assume it would  
> > > > > still start as it should use the default paramaters.
> > > > > 
> > > > > -b
> > > > > 
> > > > > On Tue, Feb 19, 2013 at 11:59 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr)wrote:
> > > > > 
> > > > > > graylog2 and elasticsearch dirs are relative to cluster names.
> > > > > > 
> > > > > > I think you first started a cluster using defaults and then move the  
> > > > > > cluster name to graylog2, don't you?
> > > > > > 
> > > > > > That said, what does logs are telling?  
> > > > > > How did you start Elasticsearch?
> > > > > > 
> > > > > > Are you sure that path are not set externally (in a launch script ?).  
> > > > > > I mean that your modifications in elasticsearch.yml are probably not read  
> > > > > > as a script already defines paths.
> > > > > > 
> > > > > > Does it help?
> > > > > > 
> > > > > > --  
> > > > > > _David Pilato_ | _Technical Advocate_ | \*[Elasticsearch.com](http://Elasticsearch.com)[http://elasticsearch.com/](http://elasticsearch.com/)  
> > > > > > \*  
> > > > > > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> > > > > > | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> > > > > > 
> > > > > > Le 19 févr. 2013 à 17:49, "j.barrett strausser" \<  
> > > > > > [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com)\> a écrit :
> > > > > > 
> > > > > > Bit of a snag
> > > > > > 
> > > > > > My data directory was previously ( I assume it was at least)
> > > > > > 
> > > > > > /var/lib/elasticsearch with
> > > > > > 
> > > > > > ../graylog2  
> > > > > > ../elasticsearch
> > > > > > 
> > > > > > being the child items
> > > > > > 
> > > > > > I wanted to move them to /bigdata/elasticsearch/data so I copied  
> > > > > > each directory over ending up with
> > > > > > 
> > > > > > /bigdata/elasticsearch/data/graylog2 and  
> > > > > > /bigdata/elasticsearch/data/elasticsearch
> > > > > > 
> > > > > > I then chowned /big/data/elasticsearch to elasticsearch:elasticsearch  
> > > > > > and make the chmod.
> > > > > > 
> > > > > > In my elasticsearch.yml I pointed path.data to  
> > > > > > /bigdata/elasticsearch/data
> > > > > > 
> > > > > > Running /etc/init.d/elasticsearch results in a failed start.
> > > > > > 
> > > > > > I'm sure I messed something trivial up. Nothing in  
> > > > > > /var/log/elasticsearch is being helpful though.
> > > > > > 
> > > > > > -barrett
> > > > > > 
> > > > > > On Tue, Feb 19, 2013 at 1:27 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr)wrote:
> > > > > > 
> > > > > > > On a stopped Elasticsearch node, yes.
> > > > > > > 
> > > > > > > You can test it on a _test_ cluster.
> > > > > > > 
> > > > > > > --  
> > > > > > > David 😉  
> > > > > > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > > > > > 
> > > > > > > Le 19 févr. 2013 à 06:22, [j.barrett.strausser@gmail.com](mailto:j.barrett.strausser@gmail.com) a écrit :
> > > > > > > 
> > > > > > > Apologies for the simple question.
> > > > > > > 
> > > > > > > What would be the procedure for moving the data from the current  
> > > > > > > data directory to a new directory ? Can I simple 'cp /old/data /new/data'  
> > > > > > > without worrying about corruption someplace?
> > > > > > > 
> > > > > > > Is the only configuration point really
> > > > > > > 
> > > > > > > path:  
> > > > > > > logs: /var/log/elasticsearch  
> > > > > > > data: /var/data/elasticsearch
> > > > > > > 
> > > > > > > Thanks
> > > > > > > 
> > > > > > > -b
> > > > > > > 
> > > > > > > --  
> > > > > > > You received this message because you are subscribed to the Google  
> > > > > > > Groups "elasticsearch" group.  
> > > > > > > To unsubscribe from this group and stop receiving emails from it,  
> > > > > > > send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > > > > 
> > > > > > > --  
> > > > > > > You received this message because you are subscribed to the Google  
> > > > > > > Groups "elasticsearch" group.  
> > > > > > > To unsubscribe from this group and stop receiving emails from it,  
> > > > > > > send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > > > 
> > > > > > --
> > > > > > 
> > > > > > [bearrito (Barrett Strausser) · GitHub](https://github.com/bearrito)  
> > > > > > @barrettsmash
> > > > > > 
> > > > > > --  
> > > > > > You received this message because you are subscribed to the Google  
> > > > > > Groups "elasticsearch" group.  
> > > > > > To unsubscribe from this group and stop receiving emails from it,  
> > > > > > send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > > > 
> > > > > > --  
> > > > > > You received this message because you are subscribed to the Google  
> > > > > > Groups "elasticsearch" group.  
> > > > > > To unsubscribe from this group and stop receiving emails from it,  
> > > > > > send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > > 
> > > > > --
> > > > > 
> > > > > [bearrito (Barrett Strausser) · GitHub](https://github.com/bearrito)  
> > > > > @barrettsmash
> > > > > 
> > > > > --  
> > > > > You received this message because you are subscribed to the Google  
> > > > > Groups "elasticsearch" group.  
> > > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > > 
> > > > > --  
> > > > > You received this message because you are subscribed to the Google  
> > > > > Groups "elasticsearch" group.  
> > > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > 
> > > > --
> > > > 
> > > > [bearrito (Barrett Strausser) · GitHub](https://github.com/bearrito)  
> > > > @barrettsmash
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to the Google  
> > > > Groups "elasticsearch" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to the Google  
> > > > Groups "elasticsearch" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > 
> > > --
> > > 
> > > [bearrito (Barrett Strausser) · GitHub](https://github.com/bearrito)  
> > > @barrettsmash
> > 
> > --
> > 
> > [bearrito (Barrett Strausser) · GitHub](https://github.com/bearrito)  
> > @barrettsmash
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --
> 
> [bearrito (Barrett Strausser) · GitHub](https://github.com/bearrito)  
> @barrettsmash

--

> **[bearrito - Overview](https://github.com/bearrito)**
>
> bearrito has 89 repositories available. Follow their code on GitHub.

@barrettsmash

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 6, 2017, 2:50am UTC](https://discuss.elastic.co/t/moving-data-directory/10791/14 "2017-07-06T02:50:39Z")

</div>


