# Ilm-history-2-000001 UNASSIGNED, primary shard for this replica is not yet active

**URL:** <https://discuss.elastic.co/t/ilm-history-2-000001-unassigned-primary-shard-for-this-replica-is-not-yet-active/246978>\
**Category:** Elasticsearch\
**Created:** [August 31, 2020, 3:39pm UTC](https://discuss.elastic.co/t/ilm-history-2-000001-unassigned-primary-shard-for-this-replica-is-not-yet-active/246978 "2020-08-31T15:39:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Petr.Simik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/petr.simik/32/38082_2.png) [@Petr.Simik](https://discuss.elastic.co/u/Petr.Simik)\
**Post date:** [August 31, 2020, 3:39pm UTC](https://discuss.elastic.co/t/ilm-history-2-000001-unassigned-primary-shard-for-this-replica-is-not-yet-active/246978/1 "2020-08-31T15:39:32Z")

</div>

Please I need critical help with cluster in state RED after upgrade 7.4.2-\>7.9  
during upgrade of 5th node of 15 it did not recover it health to 100% but 99%  
all indices are green except 2 shards

```auto
index shard prirep state docs store ip node
ilm-history-2-000001 0 p UNASSIGNED                                  
ilm-history-2-000001 0 r UNASSIGNED  

```

primary shard for this replica is not yet active

```auto
{
  "index" : "ilm-history-2-000001",
  "shard" : 0,
  "primary" : false,
  "current_state" : "unassigned",
  "unassigned_info" : {
    "reason" : "REPLICA_ADDED",
    "at" : "2020-08-31T13:49:47.872Z",
    "last_allocation_status" : "no_attempt"
  },
  "can_allocate" : "no",
  "allocate_explanation" : "cannot allocate because allocation is not permitted to any of the nodes",
  "node_allocation_decisions" : [
    {
      "node_id" : "-u_CT2m7RKG2IM-31cobKA",
      "node_name" : "tela17prahvl",
      "transport_address" : "10.42.167.147:9300",
      "node_attributes" : {
        "ml.machine_memory" : "67386851328",
        "ml.max_open_jobs" : "20",
        "xpack.installed" : "true",
        "transform.node" : "true"
      },
      "node_decision" : "no",
      "deciders" : [
        {
          "decider" : "replica_after_primary_active",
          "decision" : "NO",
          "explanation" : "primary shard for this replica is not yet active"
        },
        {
          "decider" : "throttling",
          "decision" : "NO",
          "explanation" : "primary shard for this replica is not yet active"
        }
      ]
    },
  ...
        {
          "decider" : "throttling",
          "decision" : "NO",
          "explanation" : "primary shard for this replica is not yet active"
        }
      ]
    },
    {
      "node_id" : "C1-cjmc1TByCPGLmcTTGiQ",
      "node_name" : "tela19prahvl",
      "transport_address" : "10.42.167.149:9300",
      "node_attributes" : {
        "ml.machine_memory" : "67386851328",
        "ml.max_open_jobs" : "20",
        "xpack.installed" : "true"
      },
      "node_decision" : "no",
      "deciders" : [
        {
          "decider" : "replica_after_primary_active",
          "decision" : "NO",
          "explanation" : "primary shard for this replica is not yet active"
        },
        {
          "decider" : "throttling",
          "decision" : "NO",
          "explanation" : "primary shard for this replica is not yet active"
        }
      ]
    },
    {
      "node_id" : "GnAJTEqpTeyawpDyUli4Aw",
      "node_name" : "tela20prahvl",
      "transport_address" : "10.42.167.150:9300",
      "node_attributes" : {
        "ml.machine_memory" : "67386851328",
        "ml.max_open_jobs" : "20",
        "xpack.installed" : "true"
      },
      "node_decision" : "no",
      "deciders" : [
        {
          "decider" : "replica_after_primary_active",
          "decision" : "NO",
          "explanation" : "primary shard for this replica is not yet active"
        },
        {
          "decider" : "throttling",
          "decision" : "NO",
          "explanation" : "primary shard for this replica is not yet active"
        }
      ]
    },
    {
      "node_id" : "J2zWjDl2T1mMkjP4hg0euA",
      "node_name" : "cem-physical4",
      "transport_address" : "10.199.90.84:9300",
      "node_attributes" : {
        "ml.machine_memory" : "67387641856",
        "ml.max_open_jobs" : "20",
        "xpack.installed" : "true"
      },
      "node_decision" : "no",
      "deciders" : [
        {
          "decider" : "replica_after_primary_active",
          "decision" : "NO",
          "explanation" : "primary shard for this replica is not yet active"
        },
        {
          "decider" : "throttling",
          "decision" : "NO",
          "explanation" : "primary shard for this replica is not yet active"
        }
      ]
    },
    {
      "node_id" : "LAb-NxmPR6uJ1AXZNEV_aQ",
      "node_name" : "tela18prahvl",
      "transport_address" : "10.42.167.148:9300",
      "node_attributes" : {
        "ml.machine_memory" : "67386851328",
        "ml.max_open_jobs" : "20",
        "xpack.installed" : "true",
        "transform.node" : "true"
      },
      "node_decision" : "no",
      "deciders" : [
        {
          "decider" : "replica_after_primary_active",
          "decision" : "NO",
          "explanation" : "primary shard for this replica is not yet active"
        },
        {
          "decider" : "throttling",
          "decision" : "NO",
          "explanation" : "primary shard for this replica is not yet active"
        }
      ]
    },
    {
      "node_id" : "NBIGTt5BQ3evOVvMEAvZfw",
      "node_name" : "tela13prahvl",
      "transport_address" : "10.42.167.143:9300",
      "node_attributes" : {
        "ml.machine_memory" : "67386851328",
        "ml.max_open_jobs" : "20",
        "xpack.installed" : "true",
        "transform.node" : "true"
      },
      "node_decision" : "no",
      "deciders" : [
        {
          "decider" : "replica_after_primary_active",
          "decision" : "NO",
          "explanation" : "primary shard for this replica is not yet active"
        },
        {
          "decider" : "throttling",
          "decision" : "NO",
          "explanation" : "primary shard for this replica is not yet active"
        }
      ]
    },
    {
      "node_id" : "NyLzcZ7xTNmjjkCBFQee2g",
      "node_name" : "tela12prahvl",
      "transport_address" : "10.42.167.142:9300",
      "node_attributes" : {
        "ml.machine_memory" : "67386851328",
        "ml.max_open_jobs" : "20",
        "xpack.installed" : "true",
        "transform.node" : "true"
      },
      "node_decision" : "no",
      "deciders" : [
        {
          "decider" : "replica_after_primary_active",
          "decision" : "NO",
          "explanation" : "primary shard for this replica is not yet active"
        },
        {
          "decider" : "throttling",
          "decision" : "NO",
          "explanation" : "primary shard for this replica is not yet active"
        }
      ]
    },
    {
      "node_id" : "Uk33_pfWSEaK8tm4bsQsfA",
      "node_name" : "tela22prahvl",
      "transport_address" : "10.42.167.152:9300",
      "node_attributes" : {
        "ml.machine_memory" : "67386851328",
        "ml.max_open_jobs" : "20",
        "xpack.installed" : "true"
      },
      "node_decision" : "no",
      "deciders" : [
        {
          "decider" : "replica_after_primary_active",
          "decision" : "NO",
          "explanation" : "primary shard for this replica is not yet active"
        },
        {
          "decider" : "throttling",
          "decision" : "NO",
          "explanation" : "primary shard for this replica is not yet active"
        }
      ]
    },
    {
      "node_id" : "YaZDrAFUReqf-X9nDaE3KQ",
      "node_name" : "tela23prahvl",
      "transport_address" : "10.42.167.153:9300",
      "node_attributes" : {
        "ml.machine_memory" : "67386851328",
        "ml.max_open_jobs" : "20",
        "xpack.installed" : "true"
      },
      "node_decision" : "no",
      "deciders" : [
        {
          "decider" : "replica_after_primary_active",
          "decision" : "NO",
          "explanation" : "primary shard for this replica is not yet active"
        },
        {
          "decider" : "throttling",
          "decision" : "NO",
          "explanation" : "primary shard for this replica is not yet active"
        }
      ]
    },
    {
      "node_id" : "e5PncesdSs-KblSq21Pdag",
      "node_name" : "tela16prahvl",
      "transport_address" : "10.42.167.146:9300",
      "node_attributes" : {
        "ml.machine_memory" : "67386851328",
        "ml.max_open_jobs" : "20",
        "xpack.installed" : "true",
        "transform.node" : "true"
      },
      "node_decision" : "no",
      "deciders" : [
        {
          "decider" : "replica_after_primary_active",
          "decision" : "NO",
          "explanation" : "primary shard for this replica is not yet active"
        },
        {
          "decider" : "throttling",
          "decision" : "NO",
          "explanation" : "primary shard for this replica is not yet active"
        }
      ]
    },
    {
      "node_id" : "fGqLCiOvTOm11NjB-HkvuA",
      "node_name" : "tela11prahvl",
      "transport_address" : "10.42.167.141:9300",
      "node_attributes" : {
        "ml.machine_memory" : "67386851328",
        "ml.max_open_jobs" : "20",
        "xpack.installed" : "true",
        "transform.node" : "true"
      },
      "node_decision" : "no",
      "deciders" : [
        {
          "decider" : "replica_after_primary_active",
          "decision" : "NO",
          "explanation" : "primary shard for this replica is not yet active"
        },
        {
          "decider" : "throttling",
          "decision" : "NO",
          "explanation" : "primary shard for this replica is not yet active"
        }
      ]
    },
    {
      "node_id" : "g2bPDi1XRcSuxYY5XAQwDQ",
      "node_name" : "cem-physical5",
      "transport_address" : "10.199.90.85:9300",
      "node_attributes" : {
        "ml.machine_memory" : "67387641856",
        "ml.max_open_jobs" : "20",
        "xpack.installed" : "true"
      },
      "node_decision" : "no",
      "deciders" : [
        {
          "decider" : "replica_after_primary_active",
          "decision" : "NO",
          "explanation" : "primary shard for this replica is not yet active"
        },
        {
          "decider" : "throttling",
          "decision" : "NO",
          "explanation" : "primary shard for this replica is not yet active"
        }
      ]
    },
    {
      "node_id" : "p89vICIvS1CASt6429YkjA",
      "node_name" : "tela21prahvl",
      "transport_address" : "10.42.167.151:9300",
      "node_attributes" : {
        "ml.machine_memory" : "67386851328",
        "ml.max_open_jobs" : "20",
        "xpack.installed" : "true"
      },
      "node_decision" : "no",
      "deciders" : [
        {
          "decider" : "replica_after_primary_active",
          "decision" : "NO",
          "explanation" : "primary shard for this replica is not yet active"
        },
        {
          "decider" : "throttling",
          "decision" : "NO",
          "explanation" : "primary shard for this replica is not yet active"
        }
      ]
    },
    {
      "node_id" : "scNdonFlSpKJXKVn29e3Zg",
      "node_name" : "cem-physical2",
      "transport_address" : "10.41.134.197:9300",
      "node_attributes" : {
        "ml.machine_memory" : "67387637760",
        "ml.max_open_jobs" : "20",
        "xpack.installed" : "true"
      },
      "node_decision" : "no",
      "deciders" : [
        {
          "decider" : "replica_after_primary_active",
          "decision" : "NO",
          "explanation" : "primary shard for this replica is not yet active"
        },
        {
          "decider" : "throttling",
          "decision" : "NO",
          "explanation" : "primary shard for this replica is not yet active"
        }
      ]
    },
    {
      "node_id" : "tK-9GkOqQ5WlVWiSet3TNA",
      "node_name" : "tela14prahvl",
      "transport_address" : "10.42.167.144:9300",
      "node_attributes" : {
        "ml.machine_memory" : "67386851328",
        "ml.max_open_jobs" : "20",
        "xpack.installed" : "true",
        "transform.node" : "true"
      },
      "node_decision" : "no",
      "deciders" : [
        {
          "decider" : "replica_after_primary_active",
          "decision" : "NO",
          "explanation" : "primary shard for this replica is not yet active"
        },
        {
          "decider" : "throttling",
          "decision" : "NO",
          "explanation" : "primary shard for this replica is not yet active"
        }
      ]
    },
    {
      "node_id" : "tYMZgsZwQ-e4pFMQxrWWVA",
      "node_name" : "tela15prahvl",
      "transport_address" : "10.42.167.145:9300",
      "node_attributes" : {
        "ml.machine_memory" : "67386851328",
        "ml.max_open_jobs" : "20",
        "xpack.installed" : "true",
        "transform.node" : "true"
      },
      "node_decision" : "no",
      "deciders" : [
        {
          "decider" : "replica_after_primary_active",
          "decision" : "NO",
          "explanation" : "primary shard for this replica is not yet active"
        },
        {
          "decider" : "throttling",
          "decision" : "NO",
          "explanation" : "primary shard for this replica is not yet active"
        }
      ]
    }
  ]
}

```

---

<div class="post-metadata">

**Author:** ![Petr.Simik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/petr.simik/32/38082_2.png) [@Petr.Simik](https://discuss.elastic.co/u/Petr.Simik)\
**Post date:** [August 31, 2020, 3:56pm UTC](https://discuss.elastic.co/t/ilm-history-2-000001-unassigned-primary-shard-for-this-replica-is-not-yet-active/246978/2 "2020-08-31T15:56:34Z")

</div>

how can I delete shards  
ilm-history-2-000001

is it safe to delete this shards?  
I found [https://www.elastic.co/guide/en/elasticsearch/reference/master/ilm-settings.html](https://www.elastic.co/guide/en/elasticsearch/reference/master/ilm-settings.html)  
this shards contains "only" history of ILM ,. not important data

---

<div class="post-metadata">

**Author:** ![Petr.Simik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/petr.simik/32/38082_2.png) [@Petr.Simik](https://discuss.elastic.co/u/Petr.Simik)\
**Post date:** [August 31, 2020, 5:48pm UTC](https://discuss.elastic.co/t/ilm-history-2-000001-unassigned-primary-shard-for-this-replica-is-not-yet-active/246978/3 "2020-08-31T17:48:30Z")

</div>

just deleted the index

DELETE ilm-history-2-000001

and problem is resolved  
since I was sure the index contains only "history" of ilm no critical data I decided to try DELETE and it helped.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 31, 2020, 9:44pm UTC](https://discuss.elastic.co/t/ilm-history-2-000001-unassigned-primary-shard-for-this-replica-is-not-yet-active/246978/4 "2020-08-31T21:44:17Z")

</div>

Glad to see you got your problem sorted!

In future, please create a single topic for your problem, it makes it easier for us to help you 🙂

> [@Ilm-history-2-000001 UNASSIGNED, primary shard for this replica is not yet active](https://discuss.elastic.co/t/ilm-history-2-000001-unassigned-primary-shard-for-this-replica-is-not-yet-active/246978):
>
> Please I need critical help with cluster in state RED after upgrade 7.4.2-\>7.9 during upgrade of 5th node of 15 it did not recover it health to 100% but 99% all indices are green except 2 shards index shard prirep state docs store ip node ilm-history-2-000001 0 p UNASSIGNED ilm-history-2-000001 0 r UNASSIGNED primary shard for this replica is not yet active {…

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 31, 2020, 9:44pm UTC](https://discuss.elastic.co/t/ilm-history-2-000001-unassigned-primary-shard-for-this-replica-is-not-yet-active/246978/5 "2020-08-31T21:44:20Z")

</div>


