# ILM action - lifecycle action \[migrate\] waiting for \[1\] shards to be moved to the \[data\_cold\] tier

**URL:** https://discuss.elastic.co/t/ilm-action-lifecycle-action-migrate-waiting-for-1-shards-to-be-moved-to-the-data-cold-tier/274574
**Category:** Elasticsearch
**Tags:** docker, ilm-index-lifecycle-management
**Created:** [June 1, 2021, 5:20am UTC](https://discuss.elastic.co/t/ilm-action-lifecycle-action-migrate-waiting-for-1-shards-to-be-moved-to-the-data-cold-tier/274574 "2021-06-01T05:20:46Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Kmalik19](https://avatars.discourse-cdn.com/v4/letter/k/3ec8ea/32.png) [@Kmalik19](https://discuss.elastic.co/u/Kmalik19)
#### Post date: [June 1, 2021, 5:20am UTC](https://discuss.elastic.co/t/ilm-action-lifecycle-action-migrate-waiting-for-1-shards-to-be-moved-to-the-data-cold-tier/274574/1 "2021-06-01T05:20:46Z")

</div>

Hello Everyone,

We have configured ILM policy but it's stucked in warm phase.Here is the details:

**ILM Policy definition**

```auto
{
  "km_ilm" : {
    "version" : 3,
    "modified_date" : "2021-05-31T14:28:26.359Z",
    "policy" : {
      "phases" : {
        "warm" : {
          "min_age" : "60s",
          "actions" : {
            "shrink" : {
              "number_of_shards" : 1
            }
          }
        },
        "cold" : {
          "min_age" : "60s",
          "actions" : {
            "allocate" : {
              "number_of_replicas" : 0,
              "include" : { },
              "exclude" : { },
              "require" : { }
            },
            "searchable_snapshot" : {
              "snapshot_repository" : "km_snapshot",
              "force_merge_index" : true
            },
            "set_priority" : {
              "priority" : 0
            }
          }
        },
        "hot" : {
          "min_age" : "0ms",
          "actions" : {
            "rollover" : {
              "max_size" : "5mb",
              "max_age" : "60s"
            }
          }
        },
        "delete" : {
          "min_age" : "180s",
          "actions" : {
            "delete" : {
              "delete_searchable_snapshot" : true
            }
          }
        }
      }
    }
  }
}

```

**Here is the index explain :**

```auto
{
  "indices" : {
    "km_index" : {
      "index" : "km_index",
      "managed" : true,
      "policy" : "km_ilm",
      "lifecycle_date_millis" : 1622468952281,
      "age" : "15.36h",
      "phase" : "warm",
      "phase_time_millis" : 1622469552212,
      "action" : "migrate",
      "action_time_millis" : 1622469552257,
      "step" : "check-migration",
      "step_time_millis" : 1622469552295,
      "step_info" : {
        "message" : "[km_index] lifecycle action [migrate] waiting for [1] shards to be moved to the [data_cold] tier (tier migration preference configuration is [data_cold,data_warm,data_hot])",
        "shards_left_to_allocate" : 1,
        "all_shards_active" : true,
        "number_of_replicas" : 1
      },
      "phase_execution" : {
        "policy" : "km_ilm",
        "phase_definition" : {
          "min_age" : "60s",
          "actions" : {
            "shrink" : {
              "number_of_shards" : 1
            }
          }
        },
        "version" : 3,
        "modified_date_in_millis" : 1622471306359
      }
    }
  }
}

```

**Index Definition**

```auto
{
  "km_index" : {
    "settings" : {
      "index" : {
        "lifecycle" : {
          "name" : "km_ilm",
          "rollover_alias" : "km_alias1",
          "indexing_complete" : "true"
        },
        "routing" : {
          "allocation" : {
            "include" : {
              "_tier_preference" : "data_cold,data_warm,data_hot"
            }
          }
        },
        "number_of_shards" : "1",
        "provided_name" : "km_index",
        "creation_date" : "1622466229942",
        "number_of_replicas" : "1",
        "uuid" : "rntE6v_vSduOAAVkfcXcUQ",
        "version" : {
          "created" : "7130099"
        }
      }
    }
  }
}

```

Could you please assist to move ahead with this.

Thanks,  
KM

---

<div class="post-metadata">

### Author: ![andreidan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andreidan/32/78167_2.png) [@andreidan](https://discuss.elastic.co/u/andreidan)
#### Post date: [June 1, 2021, 8:40am UTC](https://discuss.elastic.co/t/ilm-action-lifecycle-action-migrate-waiting-for-1-shards-to-be-moved-to-the-data-cold-tier/274574/2 "2021-06-01T08:40:44Z")

</div>

Thanks for using Elasticsearch.

I see from the `ilm/explain` output that one shard was successfully allocated to the cold tier and it's waiting for the replica to be allocated too. Do you have two `data_cold` nodes in the cluster?

Can you please post the output of `GET /_cat/nodes` ?

---

<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: [June 29, 2021, 8:41am UTC](https://discuss.elastic.co/t/ilm-action-lifecycle-action-migrate-waiting-for-1-shards-to-be-moved-to-the-data-cold-tier/274574/3 "2021-06-29T08:41:30Z")

</div>

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