# Indexes solely on disk?

**URL:** https://discuss.elastic.co/t/indexes-solely-on-disk/12571
**Category:** Elasticsearch
**Created:** [June 28, 2013, 12:31am UTC](https://discuss.elastic.co/t/indexes-solely-on-disk/12571 "2013-06-28T00:31:33Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Matt\_Arkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matt_arkin/32/2011_2.png) [@Matt\_Arkin](https://discuss.elastic.co/u/Matt_Arkin)
#### Post date: [June 28, 2013, 12:31am UTC](https://discuss.elastic.co/t/indexes-solely-on-disk/12571/1 "2013-06-28T00:31:33Z")

</div>

I'm running ElasticSearch on my local machine and I notice that every time  
I restart my computer it places the index in a recovery mode and begins  
reindexing the index. Looking at the data directory the index is store  
there so why is it labeled as recovering and reindexing? Is there a way so  
that this does not happen?

--  
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: ![Lukas\_Vlcek1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas_vlcek1/32/819_2.png) [@Lukas\_Vlcek1](https://discuss.elastic.co/u/Lukas_Vlcek1)
#### Post date: [June 28, 2013, 5:37am UTC](https://discuss.elastic.co/t/indexes-solely-on-disk/12571/2 "2013-06-28T05:37:09Z")

</div>

Hi,

the chance is that the data is in fact not in Lucene segment but in  
transaction log so ES has to replay it first. Can you check size of  
transaction log?

Regards,  
Lukas

On Fri, Jun 28, 2013 at 2:31 AM, Matt Arkin [arkin@endlessm.com](mailto:arkin@endlessm.com) wrote:

> I'm running Elasticsearch on my local machine and I notice that every time  
> I restart my computer it places the index in a recovery mode and begins  
> reindexing the index. Looking at the data directory the index is store  
> there so why is it labeled as recovering and reindexing? Is there a way so  
> that this does not happen?
> 
> --  
> 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: ![Matt\_Arkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matt_arkin/32/2011_2.png) [@Matt\_Arkin](https://discuss.elastic.co/u/Matt_Arkin)
#### Post date: [July 25, 2013, 4:43pm UTC](https://discuss.elastic.co/t/indexes-solely-on-disk/12571/3 "2013-07-25T16:43:56Z")

</div>

Hi Lukas,

Sorry for the delay, I'm just getting back on this issue. I don't seem to  
have this issue any more, though now the transaction log is empty.

Now I'm trying to copy indexes from one machine to the other, and it would  
be awesome if I could do this without the index entering a recovery mode. I  
thought I could just copy the index from one machine to another by copy  
/nodes/0/indices/[index] folder, but when I start elasticsearch back up on  
the receiving computer its in a recovering mode:

- shards: {
  - 2: [
    - {
      - routing: {
        - state: INITIALIZING
        - primary: true
        - node: rgqLc53PTQSFmIBpr0Wa8w
        - relocating\_node: null
        - shard: 2
        - index: pthtml  
}

      - state: RECOVERING
      - index: {
        - size: 157.1mb
        - size\_in\_bytes: 164736056  
}  
}  
]

  - 4: [
    - {
      - routing: {
        - state: INITIALIZING
        - primary: true
        - node: rgqLc53PTQSFmIBpr0Wa8w
        - relocating\_node: null
        - shard: 4
        - index: pthtml  
}

      - state: RECOVERING
      - index: {
        - size: 154.9mb
        - size\_in\_bytes: 162513626  
}  
}  
]  
}

On Thursday, June 27, 2013 10:37:09 PM UTC-7, Lukáš Vlček wrote:

> Hi,
> 
> the chance is that the data is in fact not in Lucene segment but in  
> transaction log so ES has to replay it first. Can you check size of  
> transaction log?
> 
> Regards,  
> Lukas
> 
> On Fri, Jun 28, 2013 at 2:31 AM, Matt Arkin \<[ar...@endlessm.com](mailto:ar...@endlessm.com)\<javascript:\>
> 
> > wrote:
> 
> > I'm running Elasticsearch on my local machine and I notice that every  
> > time I restart my computer it places the index in a recovery mode and  
> > begins reindexing the index. Looking at the data directory the index is  
> > store there so why is it labeled as recovering and reindexing? Is there a  
> > way so that this does not happen?
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > 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: ![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:24am UTC](https://discuss.elastic.co/t/indexes-solely-on-disk/12571/4 "2017-07-06T02:24:31Z")

</div>


