redis备份恢复
分片redis集群的备份恢复
redis物理迁移集群备份恢复
环境:
centos6.6
redis-3.0.3
redis-3.2.1.gem.zip
2个机器启动了6个redis实例 ,每台机器3个实例
迁移前的机器是 10.12.5.40 10.12.5.41
迁移后的机器是 10.112.5.17
列表如下:
迁移前 | 迁移后 |
10.12.5.40:7000 | 10.112.5.17:7000 |
10.12.5.40:7001 | 10.112.5.17:7001 |
10.12.5.40:7002 | 10.112.5.17:7002 |
10.12.5.41:7000 | 10.112.5.17:7003 |
10.12.5.41:7001 | 10.112.5.17:7004 |
10.12.5.41:7002 | 10.112.5.17:7005 |
目录结构如下:
ll /home/worker/opt/redis-server/current
-rwxr-xr-x 1 worker worker 294 Aug 2 18:33 1startup_all_server.sh
-rwxr-xr-x 1 worker worker 181 Aug 1 18:58 2cluster_startup.sh
drwxr-x--- 2 worker worker 4096 Aug 2 18:53 6379
drwxr-x--- 2 worker worker 4096 Aug 2 18:42 7000
drwxr-x--- 2 worker worker 4096 Aug 2 18:42 7001