免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2743 | 回复: 3

[FastDFS] 同group1数据无法同步,跪求帮忙 [复制链接]

论坛徽章:
0
发表于 2015-09-17 10:40 |显示全部楼层
我现在是一台tracker :172.19.103.13,两台storage:172.19.103.52,172.19.103.53。

172.19.103.52运行正常,但挂载172.19.103.53后,一直显示WAIT_SYNC状态。

查看172.19.103.53的storage.log,有如下异常,不知道要怎么解。
data path: /data/fastdfs/data, mkdir sub dir done.
[2015-09-17 10:30:59] INFO - file: storage_param_getter.c, line: 191, use_storage_id=0, id_type_in_filename=ip, storage_ip_changed_auto_adjust=1, store_path=0, reserved_storage_space=10.00%, use_trunk_file=0, slot_min_size=256, slot_max_size=16 MB, trunk_file_size=64 MB, trunk_create_file_advance=0, trunk_create_file_time_base=02:00, trunk_create_file_interval=86400, trunk_create_file_space_threshold=20 GB, trunk_init_check_occupying=0, trunk_init_reload_from_binlog=0, trunk_compress_binlog_min_interval=0, store_slave_file_use_link=0
[2015-09-17 10:30:59] INFO - file: storage_func.c, line: 254, tracker_client_ip: 172.17.110.89, my_server_id_str: 172.17.110.89, g_server_id_in_filename: 1500385708
[2015-09-17 10:31:00] INFO - local_host_ip_count: 2,  127.0.0.1  172.17.110.89
[2015-09-17 10:31:00] INFO - file: tracker_client_thread.c, line: 310, successfully connect to tracker server 172.19.103.13:22122, as a tracker client, my ip is 172.17.110.89
[2015-09-17 10:31:00] INFO - file: storage_sync.c, line: 2698, successfully connect to storage server 172.19.103.53:23000
[2015-09-17 10:31:00] INFO - file: storage_sync.c, line: 2698, successfully connect to storage server 172.19.103.52:23000
[2015-09-17 10:32:01] ERROR - file: storage_nio.c, line: 282, client ip: 172.19.103.53, recv timeout, recv offset: 0, expect length: 0
[2015-09-17 10:32:02] ERROR - file: storage_nio.c, line: 282, client ip: 172.19.103.52, recv timeout, recv offset: 0, expect length: 0


server_count=1, server_index=0

tracker server is 172.19.103.13:22122

group count: 1

Group 1:
group name = group1
disk total space = 196546 MB
disk free space = 185862 MB
trunk free space = 0 MB
storage server count = 2
active server count = 1
storage server port = 23000
storage HTTP port = 80
store path count = 1
subdir count per path = 256
current write server index = 0
current trunk file id = 0

        Storage 1:
                id = 172.19.103.52
                ip_addr = 172.19.103.52  ACTIVE
                http domain =
                version = 5.05
                join time = 2015-09-15 08:15:15
                up time = 2015-09-16 03:05:31
                total storage = 196546 MB
                free storage = 185862 MB
                upload priority = 10
                store_path_count = 1
                subdir_count_per_path = 256
                storage_port = 23000
                storage_http_port = 80
                current_write_path = 0
                source storage id =
                if_trunk_server = 0
                connection.alloc_count = 256
                connection.current_count = 2
                connection.max_count = 4
                total_upload_count = 970
                success_upload_count = 970
                total_append_count = 0
                success_append_count = 0
                total_modify_count = 0
                success_modify_count = 0
                total_truncate_count = 0
                success_truncate_count = 0
                total_set_meta_count = 970
                success_set_meta_count = 970
                total_delete_count = 181
                success_delete_count = 181
                total_download_count = 44
                success_download_count = 44
                total_get_meta_count = 0
                success_get_meta_count = 0
                total_create_link_count = 0
                success_create_link_count = 0
                total_delete_link_count = 0
                success_delete_link_count = 0
                total_upload_bytes = 263637258
                success_upload_bytes = 263637258
                total_append_bytes = 0
                success_append_bytes = 0
                total_modify_bytes = 0
                success_modify_bytes = 0
                stotal_download_bytes = 10551938
                success_download_bytes = 10551938
                total_sync_in_bytes = 1748836
                success_sync_in_bytes = 0
                total_sync_out_bytes = 0
                success_sync_out_bytes = 0
                total_file_open_count = 1014
                success_file_open_count = 1014
                total_file_read_count = 73
                success_file_read_count = 73
                total_file_write_count = 1952
                success_file_write_count = 1952
                last_heart_beat_time = 2015-09-17 02:33:02
                last_source_update = 2015-09-16 09:57:25
                last_sync_update = 2015-09-16 09:57:35
                last_synced_timestamp = 1970-01-01 00:00:00
        Storage 2:
                id = 172.19.103.53
                ip_addr = 172.19.103.53  WAIT_SYNC
                http domain =
                version = 5.05
                join time = 2015-09-17 02:30:54
                up time = 2015-09-17 02:30:54
                total storage = 197554 MB
                free storage = 187075 MB
                upload priority = 10
                store_path_count = 1
                subdir_count_per_path = 256
                storage_port = 23000
                storage_http_port = 8888
                current_write_path = 0
                source storage id = 172.19.103.52
                if_trunk_server = 0
                connection.alloc_count = 256
                connection.current_count = 0
                connection.max_count = 2
                total_upload_count = 0
                success_upload_count = 0
                total_append_count = 0
                success_append_count = 0
                total_modify_count = 0
                success_modify_count = 0
                total_truncate_count = 0
                success_truncate_count = 0
                total_set_meta_count = 0
                success_set_meta_count = 0
                total_delete_count = 0
                success_delete_count = 0
                total_download_count = 0
                success_download_count = 0
                total_get_meta_count = 0
                success_get_meta_count = 0
                total_create_link_count = 0
                success_create_link_count = 0
                total_delete_link_count = 0
                success_delete_link_count = 0
                total_upload_bytes = 0
                success_upload_bytes = 0
                total_append_bytes = 0
                success_append_bytes = 0
                total_modify_bytes = 0
                success_modify_bytes = 0
                stotal_download_bytes = 0
                success_download_bytes = 0
                total_sync_in_bytes = 0
                success_sync_in_bytes = 0
                total_sync_out_bytes = 0
                success_sync_out_bytes = 0
                total_file_open_count = 0
                success_file_open_count = 0
                total_file_read_count = 0
                success_file_read_count = 0
                total_file_write_count = 0
                success_file_write_count = 0
                last_heart_beat_time = 2015-09-17 02:33:00
                last_source_update = 1970-01-01 00:00:00
                last_sync_update = 1970-01-01 00:00:00
                last_synced_timestamp = 1970-01-01 00:00:00 (never synced)

论坛徽章:
0
发表于 2015-09-17 16:48 |显示全部楼层
经排查,是由于tracked跟storage IP不在一个网段引起。设置成相同网段后中,问题已解决。

论坛徽章:
1
IT运维版块每日发帖之星
日期:2015-11-24 06:20:00
发表于 2015-11-21 21:51 |显示全部楼层
为什么不同网段会不行呢

论坛徽章:
1
IT运维版块每日发帖之星
日期:2016-04-23 06:20:00
发表于 2016-04-20 18:15 |显示全部楼层
不同网段访问不到啊
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP