检查tracker是否主动切换
-
打印storaged日志
tail -f /fastdfs/storage/logs/storaged.log
找到当前的tracker leader为: 192.168.47.204
-
关闭掉当前tracker leader((92.168.47.204)
/etc/init.d/fdfs_trackerd stop
通过观察storaged日志,可以看到Storaged自动将 tracker leader 设置为192.168.47.203,说明Tracker集群可用,并且Storaged会每隔一段时间检查宕机的tracker是否恢复
-
启动关掉的Tracker
/etc/init.d/fdfs_trackerd start