# Moving license from old cluster nodes to new ones

**URL:** https://discuss.elastic.co/t/moving-license-from-old-cluster-nodes-to-new-ones/322592
**Category:** Elasticsearch
**Created:** [January 6, 2023, 6:12am UTC](https://discuss.elastic.co/t/moving-license-from-old-cluster-nodes-to-new-ones/322592 "2023-01-06T06:12:01Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Nick.Evans](https://avatars.discourse-cdn.com/v4/letter/n/ee7513/32.png) [@Nick.Evans](https://discuss.elastic.co/u/Nick.Evans)
#### Post date: [January 6, 2023, 6:12am UTC](https://discuss.elastic.co/t/moving-license-from-old-cluster-nodes-to-new-ones/322592/1 "2023-01-06T06:12:01Z")

</div>

We have a 3 node elasticsearch cluster. (node-1, node-2, node-3)  
We have a need to introduce 3 new nodes and fail out the original 3.  
I have built nodes 4, 5 and 6 and successfully added them to cluster.  
Once the cluster settled down i dropped out node1 and let things settle.  
I then dropped node2 and let things settle.

Finally when i do the same with node 3 the whole cluster stops and complains about a license issue.

How do I make sure that new nodes actually use the license we have?

Nick

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [January 6, 2023, 7:55am UTC](https://discuss.elastic.co/t/moving-license-from-old-cluster-nodes-to-new-ones/322592/2 "2023-01-06T07:55:19Z")

</div>

Hi @Nick.Evans Welcome to the community!

You have a license / subscription you should open a support ticket.

---

<div class="post-metadata">

### Author: ![Ayush\_Mathur](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ayush_mathur/32/77134_2.png) [@Ayush\_Mathur](https://discuss.elastic.co/u/Ayush_Mathur)
#### Post date: [January 6, 2023, 1:56pm UTC](https://discuss.elastic.co/t/moving-license-from-old-cluster-nodes-to-new-ones/322592/3 "2023-01-06T13:56:08Z")

</div>

@Nick.Evans are you trying to rotate the Elasticsearch hosts? If yes, the better way to do is as:

1. add a new node and let it join the cluster

2. exclude the IP of the ES node which you want to rotate/ replace

3. let the shards move out of the excluded node till shard count is 0 (can also be 1 some cases but you can confirm from GET \_cat/shards?v command if anything is being moved out of the excluded node).

4. retire the old host and repeat this process.

---

<div class="post-metadata">

### Author: ![Nick.Evans](https://avatars.discourse-cdn.com/v4/letter/n/ee7513/32.png) [@Nick.Evans](https://discuss.elastic.co/u/Nick.Evans)
#### Post date: [January 7, 2023, 10:37pm UTC](https://discuss.elastic.co/t/moving-license-from-old-cluster-nodes-to-new-ones/322592/4 "2023-01-07T22:37:22Z")

</div>

@stephenb I have requested access to be able to log support tickets but while that happens thought I would try asking the community.

@Ayush_Mathur this is effectively what I have done but I added all of the new nodes first. Excluded all of the old nodes then started dropping the old nodes 1 by 1, letting any shard movement finishing before dropping the next one. All was fine until it came to dropping the last old nodes which is when the licence error shows up.

Nick

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [January 7, 2023, 10:45pm UTC](https://discuss.elastic.co/t/moving-license-from-old-cluster-nodes-to-new-ones/322592/5 "2023-01-07T22:45:30Z")

</div>

> [@Nick.Evans](#):
>
> I have requested access to be able to log support tickets but while that happens thought I would try asking the community.

What Version are you on?

What level of license?

Did you change / add any node roles?

Do you have access to the license file that you originally received?

> [@Nick.Evans](#):
>
> All was fine until it came to dropping the last old nodes which is when the licence error shows up.

Exactly what error and where are you seeing it?

What is the output of

`GET /_license`

---

<div class="post-metadata">

### Author: ![Nick.Evans](https://avatars.discourse-cdn.com/v4/letter/n/ee7513/32.png) [@Nick.Evans](https://discuss.elastic.co/u/Nick.Evans)
#### Post date: [January 7, 2023, 11:57pm UTC](https://discuss.elastic.co/t/moving-license-from-old-cluster-nodes-to-new-ones/322592/6 "2023-01-07T23:57:40Z")

</div>

Hi @stephenb

Thanks for the quick response. To answer your questions

Version: 8.5.3  
license level: enterprise  
access to license file: yes and i even tried re-uploading that to the cluster before dropping the last node out but it didn't make a difference  
Exact error: I will have have to upload this when i get to work on monday but Kibana cluster status page shows a toast window in the bottom right saying something along the lines of not being able to evaluate the current license. Going to another pages shows an error in JSON which i will have to capture on Monday  
License output:

```auto
{
  "license": {
    "status": "active",
    "uid": "e....<Removed>....7",
    "type": "enterprise",
    "issue_date": "2022-07-29T00:00:00.000Z",
    "issue_date_in_millis": 1659052800000,
    "expiry_date": "2023-07-31T23:59:59.999Z",
    "expiry_date_in_millis": 1690847999999,
    "max_nodes": null,
    "max_resource_units": 1,
    "issued_to": "MCRI",
    "issuer": "API",
    "start_date_in_millis": 1659312000000
  }
}

```

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [January 8, 2023, 1:08am UTC](https://discuss.elastic.co/t/moving-license-from-old-cluster-nodes-to-new-ones/322592/7 "2023-01-08T01:08:03Z")

</div>

Kibana typically connects to a single node.  
Check to make sure that the node you're Kibana is pointing at is now a new node.  
Restart Kibana  
completely clear browser cache  
Restart browser  
Try logging back in

---

<div class="post-metadata">

### Author: ![Nick.Evans](https://avatars.discourse-cdn.com/v4/letter/n/ee7513/32.png) [@Nick.Evans](https://discuss.elastic.co/u/Nick.Evans)
#### Post date: [January 9, 2023, 6:27am UTC](https://discuss.elastic.co/t/moving-license-from-old-cluster-nodes-to-new-ones/322592/8 "2023-01-09T06:27:48Z")

</div>

Thanks @stephenb

I had thought my kibana config to talk to a round robin entry for my elastic servers.  
As per you advise i checked the configuration and found that kibana is configured to talk specifically to the old servers... After updating this config, restarting kibana and then trying again to remove the final elastic server i am no longer experiencing the licensing problem.

Thanks again for you help.

Nick

---

<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: [February 6, 2023, 6:28am UTC](https://discuss.elastic.co/t/moving-license-from-old-cluster-nodes-to-new-ones/322592/9 "2023-02-06T06:28:25Z")

</div>

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