Elasticsearch: simple cluster. Can't change nodes. Please, help

I have a simple cluster with 2 nodes: master/data and data. I need to move master data to another server. I tried to change master to data and data to master, also made 3 node master. But always I had one result. Status of cluster was green and I all shards were 0, but in home directory I had all data. What should I do to solve this problem?