There is any problem when data node -> master node?

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
opensearch 2.11

Describe the issue:
I have 7 nodes in a opensearch cluster

  1. only master
  2. master & data node
  3. master & data node
  4. data node
  5. data node
  6. data node
  7. data node

I want to change master&data node(2, 3) → master node
If I change from master & data node to master only node, does the index stored at the that nodes keep maintained? Or does it all disappear? Is there no problem if I change it?

@cucukaka When you set the role to master and you’ll still have indices in that node, then OpenSearch may report it as an Error and won’t start.
You need to first migrate the data indices to other nodes.