- 论坛徽章:
- 0
|
本帖最后由 zhangweibo 于 2013-02-01 16:22 编辑
环境:
服务器1: tracker+storage ip 58.83.x.27 在IDC机房
root@localhost:# netstat -lnp --tcp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22122 0.0.0.0:* LISTEN 26693/fdfs_trackerd
tcp 0 0 0.0.0.0:23000 0.0.0.0:* LISTEN 26703/fdfs_storaged
tcp 0 0 0.0.0.0:8888 0.0.0.0:* LISTEN 1686/nginx
tcp 0 0 0.0.0.0:8090 0.0.0.0:* LISTEN 26693/fdfs_trackerd
服务器2: tracker+storage ip 1.1.1.132 在公司局域网 出口ip 124.193.x.210
本意:想通过端口映射像的方式,从IDC机房拉一份备份的文件到局域网上用,一开始端口也是保持一致的,但由于数据比较大,拉个一个晚上还没结束,白天上班时间,默认的端口镜像映射研发部需要用,所以中途只能通过改变端口的方式继续同步,端口改成
root@localhost:# netstat -lnp --tcp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:30001 0.0.0.0:* LISTEN 3265/fdfs_trackerd
tcp 0 0 0.0.0.0:8888 0.0.0.0:* LISTEN 987/nginx
tcp 0 0 0.0.0.0:30010 0.0.0.0:* LISTEN 3277/fdfs_storaged
tcp 0 0 0.0.0.0:8090 0.0.0.0:* LISTEN 3265/fdfs_trackerd
但发现根本不能同步
服务器2的tracker日志抱如下错误
[2013-02-01 16:13:35] INFO - local_host_ip_count: 3, 127.0.0.1 1.1.1.132 192.168.1.132
[2013-02-01 16:13:48] INFO - file: tracker_mem.c, line: 4184, sys files loaded from tracker server 58.83.x.27:22122
[2013-02-01 16:13:48] ERROR - file: tracker_mem.c, line: 4373, client ip: 1.1.1.132, port 30010 is not same in the group "group1", group port is 23000
[2013-02-01 16:13:49] INFO - file: tracker_relationship.c, line: 375, selecting leader...
[2013-02-01 16:13:49] INFO - file: tracker_relationship.c, line: 414, the tracker leader 58.83.x.27:22122
[2013-02-01 16:14:18] ERROR - file: tracker_mem.c, line: 4373, client ip: 1.1.1.132, port 30010 is not same in the group "group1", group port is 23000
不知道要如果操作
我试着把服务器2的tracker和storage的数据全部清空,重启还是报这个错误。是否服务器1已经残余信息影响呀?
|
|