免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 7493 | 回复: 7
打印 上一主题 下一主题

[FastDFS] storage offline日志文件无报错,没有丝毫头绪 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-09-27 11:29 |只看该作者 |倒序浏览
[2013-09-27 10:42:34] DEBUG - base_path=/data/FastDFS, connect_timeout=30, network_timeout=60, tracker_server_count=1, anti_steal_token=0, anti_steal_secret_key length=0, use_connection_pool=0, g_connection_pool_max_idle_time=3600s, use_storage_id=0, storage server id count: 0

server_count=1, server_index=0

tracker server is 10.0.1.223:22122

group count: 1

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

        Storage 1:
                id = 10.0.1.239
                ip_addr = 10.0.1.239  OFFLINE
                http domain =
                version = 4.06
                join time = 2013-09-26 17:32:13
                up time =
                total storage = 0 MB
                free storage = 0 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= 10.0.1.240
                if_trunk_server= 0
                total_upload_count = 1
                success_upload_count = 1
                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 = 2
                success_set_meta_count = 2
                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 = 2481682
                success_upload_bytes = 2481682
                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 = 187782
                success_sync_in_bytes = 187782
                total_sync_out_bytes = 4963462
                success_sync_out_bytes = 4963462
                total_file_open_count = 10
                success_file_open_count = 10
                total_file_read_count = 0
                success_file_read_count = 0
                total_file_write_count = 28
                success_file_write_count = 28
                last_heart_beat_time = 2013-09-26 16:23:27
                last_source_update = 2013-09-25 14:41:03
                last_sync_update = 2013-09-25 14:44:45
                last_synced_timestamp = 1970-01-01 08:00:00 (never synced)


























r 10.0.1.223:22122, as a tracker client, my ip is 10.0.1.240
[2013-09-27 11:06:16] INFO - file: tracker_client_thread.c, line: 308, successfully connect to tracker server 10.0.1.223:22122, as a tracker client, my ip is 10.0.1.240
[2013-09-27 11:06:46] INFO - file: tracker_client_thread.c, line: 308, successfully connect to tracker server 10.0.1.223:22122, as a tracker client, my ip is 10.0.1.240




























INFO - FastDFS v4.06, base_path=/data/FastDFS, run_by_group=, run_by_user=, connect_timeout=30s, network_timeout=60s, port=22122, bind_addr=, max_connections=256, work_threads=4, store_lookup=2, store_group=, store_server=0, store_path=0, reserved_storage_space=10.00%, download_server=0, allow_ip_count=-1, sync_log_buff_interval=10s, check_active_interval=120s, thread_stack_size=64 KB, storage_ip_changed_auto_adjust=1, storage_sync_file_max_delay=86400s, storage_sync_file_max_time=300s, 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, use_storage_id=0, id_type_in_filename=ip, storage_id_count=0, rotate_error_log=0, error_log_rotate_time=00:00, rotate_error_log_size=0, store_slave_file_use_link=0, use_connection_pool=0, g_connection_pool_max_idle_time=3600s
[2013-09-27 10:51:30] INFO - local_host_ip_count: 4,  127.0.0.1  10.0.1.223  192.168.1.1  192.168.122.1
[2013-09-27 10:51:32] INFO - file: tracker_relationship.c, line: 374, selecting leader...
[2013-09-27 10:51:32] INFO - file: tracker_relationship.c, line: 392, I am the new tracker leader 10.0.1.223:22122






















上传文件后
[root@localhost FastDFS]# /usr/local/FastDFS/bin/fdfs_test /etc/fdfs/client.conf upload /etc/fdfs/client.conf
This is FastDFS client test program v4.06

Copyright (C) 2008, Happy Fish / YuQing

FastDFS may be copied only under the terms of the GNU General
Public License V3, which may be found in the FastDFS source kit.
Please visit the FastDFS Home Page http://www.csource.org/
for more detail.

[2013-09-27 11:28:40] DEBUG - base_path=/data/FastDFS, connect_timeout=30, network_timeout=60, tracker_server_count=1, anti_steal_token=0, anti_steal_secret_key length=0, use_connection_pool=0, g_connection_pool_max_idle_time=3600s, use_storage_id=0, storage server id count: 0

[2013-09-27 11:28:40] DEBUG - file: tracker_proto.c, line: 48, server: 10.0.1.223:22122, response status 2 != 0
[2013-09-27 11:28:40] DEBUG - file: tracker_proto.c, line: 48, server: 10.0.1.223:22122, response status 2 != 0
tracker_query_storage fail, error no: 2, error info: No such file or directory







日志文件无任何显示

论坛徽章:
0
2 [报告]
发表于 2013-09-27 11:30 |只看该作者
防火墙什么的全都是关闭状态,在V3.11,配置好了是直接可以用的,V4.06就不行了

论坛徽章:
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
3 [报告]
发表于 2013-09-27 11:51 |只看该作者
把日志级别调为debug看看是什么情况

论坛徽章:
0
4 [报告]
发表于 2013-09-27 13:39 |只看该作者
DEBUG - file: fast_task_queue.c, line: 196, max_connections: 256, min_buff_size: 8192, max_buff_size: 8192, block_size: 8400, arg_size: 16, max_data_size: 268435456, total_size: 2150400
[2013-09-27 13:34:26] DEBUG - file: fast_task_queue.c, line: 262, malloc task info as whole: 1, malloc loop count: 1
[2013-09-27 13:34:42] DEBUG - file: tracker_nio.c, line: 268, client ip: 10.0.1.239, recv failed, connection disconnected.
[2013-09-27 13:34:42] DEBUG - file: tracker_mem.c, line: 4650, storage server group1::10.0.1.239 join in, remain changelog bytes: 0
[2013-09-27 13:34:42] DEBUG - file: tracker_mem.c, line: 5347, storage server group1::10.0.1.239 offline
[2013-09-27 13:34:43] INFO - file: tracker_relationship.c, line: 374, selecting leader...
[2013-09-27 13:34:43] DEBUG - file: tracker_relationship.c, line: 218, 10.0.1.223:22122 if_leader: 0, running time: 0, restart interval: 7200
[2013-09-27 13:34:43] DEBUG - file: tracker_nio.c, line: 268, client ip: 10.0.1.223, recv failed, connection disconnected.
[2013-09-27 13:34:43] DEBUG - file: tracker_nio.c, line: 268, client ip: 10.0.1.223, recv failed, connection disconnected.
[2013-09-27 13:34:43] INFO - file: tracker_relationship.c, line: 392, I am the new tracker leader 10.0.1.223:22122
[2013-09-27 13:34:43] DEBUG - file: tracker_nio.c, line: 268, client ip: 10.0.1.223, recv failed, connection disconnected.
[2013-09-27 13:35:12] DEBUG - file: tracker_mem.c, line: 4650, storage server group1::10.0.1.239 join in, remain changelog bytes: 0
[2013-09-27 13:35:12] DEBUG - file: tracker_mem.c, line: 5347, storage server group1::10.0.1.239 offline
[2013-09-27 13:35:42] DEBUG - file: tracker_mem.c, line: 4650, storage server group1::10.0.1.239 join in, remain changelog bytes: 0
[2013-09-27 13:35:42] DEBUG - file: tracker_mem.c, line: 5347, storage server group1::10.0.1.239 offline

论坛徽章:
0
5 [报告]
发表于 2013-09-27 13:39 |只看该作者
DEBUG - file: storage_ip_changed_dealer.c, line: 235, last my ip is 10.0.1.239, current my ip is 10.0.1.239
[2013-09-27 13:14:29] INFO - local_host_ip_count: 2,  127.0.0.1  10.0.1.239
[2013-09-27 13:14:29] DEBUG - file: fast_task_queue.c, line: 196, max_connections: 256, min_buff_size: 262144, max_buff_size: 262144, block_size: 263496, arg_size: 1016, max_data_size: 268435456, total_size: 67454976
[2013-09-27 13:14:29] DEBUG - file: fast_task_queue.c, line: 262, malloc task info as whole: 1, malloc loop count: 1
[2013-09-27 13:14:29] DEBUG - file: tracker_client_thread.c, line: 223, report thread to tracker server 10.0.1.223:22122 started
[2013-09-27 13:14:29] INFO - file: tracker_client_thread.c, line: 308, successfully connect to tracker server 10.0.1.223:22122, as a tracker client, my ip is 10.0.1.239
[2013-09-27 13:14:29] DEBUG - file: tracker_proto.c, line: 48, server: 10.0.1.223:22122, response status 2 != 0
[2013-09-27 13:14:59] INFO - file: tracker_client_thread.c, line: 308, successfully connect to tracker server 10.0.1.223:22122, as a tracker client, my ip is 10.0.1.239
[2013-09-27 13:14:59] DEBUG - file: tracker_proto.c, line: 48, server: 10.0.1.223:22122, response status 2 != 0
[2013-09-27 13:15:29] INFO - file: tracker_client_thread.c, line: 308, successfully connect to tracker server 10.0.1.223:22122, as a tracker client, my ip is 10.0.1.239
[2013-09-27 13:15:29] DEBUG - file: tracker_proto.c, line: 48, server: 10.0.1.223:22122, response status 2 != 0

论坛徽章:
0
6 [报告]
发表于 2013-09-27 13:40 |只看该作者
@happy_fish100

论坛徽章:
0
7 [报告]
发表于 2014-02-27 15:11 |只看该作者
本帖最后由 stevendu 于 2014-02-27 15:13 编辑

我现在也是遇到这个问题,毫无头绪
系统是CentOS release 6.2 64位
libevent: libevent-2.0.21-stable
FastDFD: FastDFS_v4.06

2个Tracker,3个Storage,自打安装部署完成
     Storage服务启动就报:
  1. DEBUG - file: tracker_proto.c, line: 48, server: 10.9.10.60:22122, response status 2 != 0
复制代码
Tracker服务日志:
  1. [2014-02-27 15:07:23] DEBUG - file: tracker_mem.c, line: 4650, storage server group1::10.9.10.61 join in, remain changelog bytes: 0
  2. [2014-02-27 15:07:23] DEBUG - file: tracker_mem.c, line: 5347, storage server group1::10.9.10.61 offline
复制代码
请教解决之道。

论坛徽章:
0
8 [报告]
发表于 2014-02-28 10:28 |只看该作者
已解决,
1. 停止tracker
2. 停止storage
3. 删除tracker中的/var/data目录
4. 删除storage中的/var/data目录
5. 启动tracker
6. 启动Storage
OK
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP