免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: specialwj
打印 上一主题 下一主题

[FastDFS] 添加storage服务器的时候不能同步 [复制链接]

论坛徽章:
0
21 [报告]
发表于 2010-01-15 18:39 |只看该作者

回复 #20 specialwj 的帖子

另外,我做了另一个测试.
同样tracker服务器为49,storage服务器分别为46,47和48,在没有上传任何文件的前提下,连接tracker服务器,三台storage服务器可以正常运行.但当我尝试关掉一台storage服务器的时候,比如(4,同一时间,这台被关闭的storage服务器会影响到了另外两台服务器,导致46和47服务器也显示为OFFLINE,请问这个是什么原因.谢谢.

论坛徽章:
0
22 [报告]
发表于 2010-01-15 18:39 |只看该作者

回复 #21 specialwj 的帖子

tracker 49 logs
[root@localhost logs]# more trackerd.log
[2010-01-15 17:45:02] INFO - FastDFS v1.24, base_path=/usr/local/FastDFS, network_timeout=20s, port=22122, bind_addr=, max_connectio
ns=256, store_lookup=0, store_group=, store_server=1, store_path=0, reserved_storage_space=4096MB, download_server=0, allow_ip_count
=-1, sync_log_buff_interval=10s, check_active_interval=100s, thread_stack_size=64 KB
[2010-01-15 18:10:02] DEBUG - file: tracker_service.c, line: 2141, client ip: 192.168.2.45, recv data fail, errno: 107, error info:
Transport endpoint is not connected
[2010-01-15 18:10:10] DEBUG - file: tracker_service.c, line: 2141, client ip: 192.168.2.45, recv data fail, errno: 107, error info:
Transport endpoint is not connected
[2010-01-15 18:10:15] DEBUG - file: tracker_service.c, line: 2141, client ip: 192.168.2.45, recv data fail, errno: 107, error info:
Transport endpoint is not connected
[2010-01-15 18:10:19] DEBUG - file: tracker_service.c, line: 2141, client ip: 192.168.2.45, recv data fail, errno: 107, error info:
Transport endpoint is not connected
[2010-01-15 18:10:23] DEBUG - file: tracker_service.c, line: 2141, client ip: 192.168.2.45, recv data fail, errno: 107, error info:
Transport endpoint is not connected
[2010-01-15 18:10:27] DEBUG - file: tracker_service.c, line: 2141, client ip: 192.168.2.45, recv data fail, errno: 107, error info:
Transport endpoint is not connected
[2010-01-15 18:10:31] DEBUG - file: tracker_service.c, line: 2141, client ip: 192.168.2.45, recv data fail, errno: 107, error info:
Transport endpoint is not connected
[2010-01-15 18:10:48] DEBUG - file: tracker_service.c, line: 2141, client ip: 192.168.2.45, recv data fail, errno: 107, error info:
Transport endpoint is not connected
[2010-01-15 18:10:55] DEBUG - file: tracker_service.c, line: 2141, client ip: 192.168.2.45, recv data fail, errno: 107, error info:
Transport endpoint is not connected
[2010-01-15 18:12:32] DEBUG - file: tracker_service.c, line: 2141, client ip: 192.168.2.48, recv data fail, errno: 107, error info:
Transport endpoint is not connected
[2010-01-15 18:12:35] DEBUG - file: tracker_service.c, line: 2141, client ip: 192.168.2.46, recv data fail, errno: 107, error info:
Transport endpoint is not connected
[2010-01-15 18:12:58] DEBUG - file: tracker_service.c, line: 2141, client ip: 192.168.2.47, recv data fail, errno: 107, error info:
Transport endpoint is not connected

论坛徽章:
0
23 [报告]
发表于 2010-01-15 18:40 |只看该作者

回复 #22 specialwj 的帖子

storage 46 logs
[2010-01-15 17:46:37] INFO - FastDFS v1.24, base_path=/usr/local/FastDFS, store_path_count=1, subdir_count_per_path=256, group_name=
group1, network_timeout=20s, port=23000, bind_addr=, client_bind=1, max_connections=256, heart_beat_interval=30s, stat_report_interv
al=600s, tracker_server_count=1, sync_wait_msec=200ms, sync_interval=0ms, sync_start_time=00:00, sync_end_time: 23:59, allow_ip_coun
t=-1, file_distribute_path_mode=0, file_distribute_rotate_count=100, fsync_after_written_bytes=0, sync_log_buff_interval=10s, sync_b
inlog_buff_interval=60s, thread_stack_size=512 KB, upload_priority=10, check_file_duplicate=0, FDHT group count=0, FDHT server count
=0, FDHT key_namespace=, FDHT keep_alive=0
[2010-01-15 17:46:47] INFO - file: tracker_client_thread.c, line: 201, successfully connect to tracker server 192.168.2.49:22122, as
a tracker client, my ip is 192.168.2.46
[2010-01-15 17:49:48] INFO - file: storage_sync.c, line: 1902, successfully connect to storage server 192.168.2.48:23000
[2010-01-15 17:49:57] DEBUG - file: storage_service.c, line: 3734, client ip: 192.168.2.48, recv data fail, errno: 107, error info:
Transport endpoint is not connected
[2010-01-15 17:51:48] INFO - file: storage_sync.c, line: 1902, successfully connect to storage server 192.168.2.47:23000
[2010-01-15 17:51:56] DEBUG - file: storage_service.c, line: 3734, client ip: 192.168.2.48, recv data fail, errno: 107, error info:
Transport endpoint is not connected
[2010-01-15 17:52:10] DEBUG - file: storage_service.c, line: 3734, client ip: 192.168.2.47, recv data fail, errno: 107, error info:
Transport endpoint is not connected
[2010-01-15 17:52:47] INFO - file: storage_sync.c, line: 1902, successfully connect to storage server 192.168.2.48:23000
[2010-01-15 18:12:44] DEBUG - file: storage_service.c, line: 3734, client ip: 192.168.2.48, recv data fail, errno: 107, error info:
Transport endpoint is not connected

论坛徽章:
0
24 [报告]
发表于 2010-01-15 18:41 |只看该作者

回复 #23 specialwj 的帖子

storage 47 logs
[2010-01-15 17:51:18] INFO - FastDFS v1.24, base_path=/usr/local/FastDFS, store_path_count=1, subdir_count_per_path=256, group_name=
group1, network_timeout=20s, port=23000, bind_addr=, client_bind=1, max_connections=256, heart_beat_interval=30s, stat_report_interv
al=600s, tracker_server_count=1, sync_wait_msec=200ms, sync_interval=0ms, sync_start_time=00:00, sync_end_time: 23:59, allow_ip_coun
t=-1, file_distribute_path_mode=0, file_distribute_rotate_count=100, fsync_after_written_bytes=0, sync_log_buff_interval=10s, sync_b
inlog_buff_interval=60s, thread_stack_size=512 KB, upload_priority=10, check_file_duplicate=0, FDHT group count=0, FDHT server count
=0, FDHT key_namespace=, FDHT keep_alive=0
[2010-01-15 17:51:28] INFO - file: tracker_client_thread.c, line: 201, successfully connect to tracker server 192.168.2.49:22122, as
a tracker client, my ip is 192.168.2.47
[2010-01-15 17:51:29] INFO - file: storage_sync.c, line: 1902, successfully connect to storage server 192.168.2.46:23000
[2010-01-15 17:51:29] INFO - file: storage_sync.c, line: 1902, successfully connect to storage server 192.168.2.48:23000
[2010-01-15 17:52:59] INFO - file: storage_sync.c, line: 1902, successfully connect to storage server 192.168.2.48:23000
[2010-01-15 17:52:59] INFO - file: storage_sync.c, line: 1902, successfully connect to storage server 192.168.2.46:23000
[2010-01-15 18:13:04] DEBUG - file: storage_service.c, line: 3734, client ip: 192.168.2.48, recv data fail, errno: 107, error info:
Transport endpoint is not connected
[2010-01-15 18:13:06] DEBUG - file: storage_service.c, line: 3734, client ip: 192.168.2.46, recv data fail, errno: 107, error info:
Transport endpoint is not connected

论坛徽章:
0
25 [报告]
发表于 2010-01-15 18:42 |只看该作者

回复 #24 specialwj 的帖子

storage 48 logs
[2010-01-15 17:49:13] INFO - FastDFS v1.24, base_path=/usr/local/FastDFS, store_path_count=1, subdir_count_per_path=256, group_name=
group1, network_timeout=20s, port=23000, bind_addr=, client_bind=1, max_connections=256, heart_beat_interval=30s, stat_report_interv
al=600s, tracker_server_count=1, sync_wait_msec=200ms, sync_interval=0ms, sync_start_time=00:00, sync_end_time: 23:59, allow_ip_coun
t=-1, file_distribute_path_mode=0, file_distribute_rotate_count=100, fsync_after_written_bytes=0, sync_log_buff_interval=10s, sync_b
inlog_buff_interval=60s, thread_stack_size=512 KB, upload_priority=10, check_file_duplicate=0, FDHT group count=0, FDHT server count
=0, FDHT key_namespace=, FDHT keep_alive=0
[2010-01-15 17:49:22] INFO - file: tracker_client_thread.c, line: 201, successfully connect to tracker server 192.168.2.49:22122, as
a tracker client, my ip is 192.168.2.48
[2010-01-15 17:49:22] INFO - file: storage_sync.c, line: 1902, successfully connect to storage server 192.168.2.46:23000
[2010-01-15 17:50:53] INFO - file: storage_sync.c, line: 1902, successfully connect to storage server 192.168.2.46:23000
[2010-01-15 17:52:23] INFO - file: storage_sync.c, line: 1902, successfully connect to storage server 192.168.2.47:23000
[2010-01-15 17:52:36] DEBUG - file: storage_service.c, line: 3734, client ip: 192.168.2.47, recv data fail, errno: 107, error info:
Transport endpoint is not connected
[2010-01-15 17:52:43] DEBUG - file: storage_service.c, line: 3734, client ip: 192.168.2.46, recv data fail, errno: 107, error info:
Transport endpoint is not connected
[2010-01-15 17:52:52] INFO - file: storage_sync.c, line: 1902, successfully connect to storage server 192.168.2.46:23000
[2010-01-15 18:13:10] CRIT - file: fdfs_storaged.c, line: 284, catch signal 15, program exiting...

论坛徽章:
0
26 [报告]
发表于 2010-01-15 18:43 |只看该作者
学习

论坛徽章:
0
27 [报告]
发表于 2010-01-20 10:47 |只看该作者

回复 #20 specialwj 的帖子

请问版主,我这样的问题,是否有解决方法?谢谢。

论坛徽章:
4
2015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:56:11IT运维版块每日发帖之星
日期:2016-08-11 06:20:00IT运维版块每日发帖之星
日期:2016-08-15 06:20:00
28 [报告]
发表于 2010-01-20 11:07 |只看该作者

回复 #27 specialwj 的帖子

这个问题我一直没有重现。希望LZ能帮忙重现和定位问题所在。
你用的什么操作系统呢?CentOS吗?

论坛徽章:
0
29 [报告]
发表于 2010-01-21 10:15 |只看该作者

回复 #28 happy_fish100 的帖子

如果可能的话,我会尽量确认一下问题的所在.
我的操作系统是
red hat linux enterprise 5 (5.0) 32bit

[ 本帖最后由 specialwj 于 2010-1-21 10:36 编辑 ]

论坛徽章:
0
30 [报告]
发表于 2010-01-22 15:43 |只看该作者

回复 #28 happy_fish100 的帖子

版主你好
tracker server 49
storage server 46,47,48
php_client 45
在停止storage服务器的时候有个疑问,我手动停止的是storage服务器48,可为何tracker服务器的日志里却没有记录48服务器被停止。而却记录了46和47服务器Transport endpoint is not connected。谢谢
[root@localhost logs]# tail -f trackerd.log
[2010-01-15 18:10:31] DEBUG - file: tracker_service.c, line: 2141, client ip: 192.168.2.45, recv data fail, errno: 107, error info: Transport endpoint is not connected
[2010-01-15 18:10:48] DEBUG - file: tracker_service.c, line: 2141, client ip: 192.168.2.45, recv data fail, errno: 107, error info: Transport endpoint is not connected
[2010-01-15 18:10:55] DEBUG - file: tracker_service.c, line: 2141, client ip: 192.168.2.45, recv data fail, errno: 107, error info: Transport endpoint is not connected
[2010-01-15 18:12:32] DEBUG - file: tracker_service.c, line: 2141, client ip: 192.168.2.48, recv data fail, errno: 107, error info: Transport endpoint is not connected
[2010-01-15 18:12:35] DEBUG - file: tracker_service.c, line: 2141, client ip: 192.168.2.46, recv data fail, errno: 107, error info: Transport endpoint is not connected
[2010-01-15 18:12:58] DEBUG - file: tracker_service.c, line: 2141, client ip: 192.168.2.47, recv data fail, errno: 107, error info: Transport endpoint is not connected
[2010-01-18 14:53:42] DEBUG - file: tracker_service.c, line: 2141, client ip: 192.168.2.48, recv data fail, errno: 107, error info: Transport endpoint is not connected
[2010-01-18 14:53:50] DEBUG - file: tracker_service.c, line: 2141, client ip: 192.168.2.47, recv data fail, errno: 107, error info: Transport endpoint is not connected
[2010-01-18 14:53:51] DEBUG - file: tracker_service.c, line: 2141, client ip: 192.168.2.46, recv data fail, errno: 107, error info: Transport endpoint is not connected
[2010-01-22 14:29:17] DEBUG - file: tracker_service.c, line: 2141, client ip: 192.168.2.45, recv data fail, errno: 107, error info: Transport endpoint is not connected
[2010-01-22 14:35:37] DEBUG - file: tracker_service.c, line: 2141, client ip: 192.168.2.45, recv data fail, errno: 107, error info: Transport endpoint is not connected
[2010-01-22 14:50:42] DEBUG - file: tracker_service.c, line: 2141, client ip: 192.168.2.45, recv data fail, errno: 107, error info: Transport endpoint is not connected
[2010-01-22 14:51:03] DEBUG - file: tracker_service.c, line: 2141, client ip: 192.168.2.45, recv data fail, errno: 107, error info: Transport endpoint is not connected
[2010-01-22 14:53:53] DEBUG - file: tracker_service.c, line: 2141, client ip: 192.168.2.46, recv data fail, errno: 107, error info: Transport endpoint is not connected
[2010-01-22 14:53:53] DEBUG - file: tracker_service.c, line: 2141, client ip: 192.168.2.47, recv data fail, errno: 107, error info: Transport endpoint is not connected
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP