[Email protected] src]#/redis-trib.rb add-node--slave--master-id4f6424e47a2275d2b7696bfbf8588e8c4c3a5b95 172.168.63.202:7001172.168.63.202:7000
......
[OK] All nodes agree about Slotsconfiguration.
>>> Check for open Slots ...
>>> Check Slots Coverage ...
[OK] All 16384 slots covered.
Connecting to Node 172.168.63.202:7001:ok
[ERR] Node 172.168.63.202:7001 is not empty. Either the Nodealready knows other nodes (check with CLUSTER nodes) or contains some key in database 0
Workaround:
1) Delete the local backup files such as aof and rdb under the newly added nodes;
2) Delete the cluster configuration file of the new Node at the same time, that is, delete the file where the cluster-config-file is located in your redis.conf;
3), add a new node again If you still report an error, log in to the new Node, ./redis-cli–h x –p to clear the database:
172.168.63.201:7001> flushdb #Clear the current database
After executing the script by 1), 2) or 3) in the above solution, the script is successfully executed;
Node 192.168.248.12:7001 is not empty. Either the node already knows other nodes (check with CLUSTER nodes) or contains some key in database 0.