免费注册 查看新帖 |

Chinaunix

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

[FastDFS] storage offline 鱼大大求解决呀。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-07-02 15:43 |只看该作者 |倒序浏览
本帖最后由 jiang5feng 于 2012-07-02 15:47 编辑

root@netadmin FastDFS]# fdfs_monitor ./conf/storage.conf
[2012-07-03 12:42:37] INFO - base_path=/data/fastdfs, connect_timeout=30, network_timeout=60, tracker_server_count=1, anti_steal_token=0, anti_steal_secret_key length=0

server_count=1, server_index=0

tracker server is 192.168.9.31:22122

group count: 1

Group 1:
group name = group1
disk free space = 0 GB
trunk free space = 0 GB
storage server count = 1
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:
                ip_addr = 192.168.9.32  OFFLINE
                http domain =
                version = 3.08
                join time = 2012-07-03 11:34:09
                up time =
                total storage = 7GB
                free storage = 7GB
                upload priority = 10
                store_path_count = 1
                subdir_count_per_path = 256
                storage_port = 23000
                storage_http_port = 8888
                current_write_path = 0

[root@netadmin FastDFS]# ./client/fdfs_test ./conf/client.conf upload 2.jpg 
This is FastDFS client test program v3.08

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.


[2012-07-03 12:37:49] INFO - base_path=/home/fastdfs, connect_timeout=30, network_timeout=60, tracker_server_count=1, anti_steal_token=0, anti_steal_secret_key length=0


[2012-07-03 12:37:49] DEBUG - file: tracker_proto.c, line: 48, server: 192.168.9.31:22122, response status 2 != 0
[2012-07-03 12:37:49] DEBUG - file: tracker_proto.c, line: 48, server: 192.168.9.31:22122, response status 2 != 0
tracker_query_storage fail, error no: 2, error info: No such file or directory


服务已经重启了。
端口也是开的。

[root@netadmin FastDFS]# netstat -an|grep 2300
tcp        0      0 0.0.0.0:23000               0.0.0.0:*                   LISTEN
  1. [2012-07-03 11:56:57] INFO - FastDFS v3.08, base_path=/data/fastdfs, store_path_count=1, subdir_count_per_path=256, group_name=group1, run_by_group=, run_by_user=, connect_timeout=30s, network_timeout=60s, port=23000, bind_addr=, client_bind=1, max_connections=256, work_threads=4, disk_rw_separated=1, disk_reader_threads=1, disk_writer_threads=1, buff_size=256KB, heart_beat_interval=30s, stat_report_interval=60s, tracker_server_count=1, sync_wait_msec=50ms, sync_interval=0ms, sync_start_time=00:00, sync_end_time=23:59, write_mark_file_freq=500, allow_ip_count=-1, file_distribute_path_mode=0, file_distribute_rotate_count=100, fsync_after_written_bytes=0, sync_log_buff_interval=10s, sync_binlog_buff_interval=10s, sync_stat_file_interval=300s, thread_stack_size=512 KB, upload_priority=10, if_alias_prefix=, check_file_duplicate=0, FDHT group count=0, FDHT server count=0, FDHT key_namespace=, FDHT keep_alive=0, HTTP server port=8888, domain name=[2012-07-03 11:56:57] INFO - HTTP supported: server_port=8888, http_trunk_size=262144, default_content_type=, anti_steal_token=0, token_ttl=0s, anti_steal_secret_key length=0, token_check_fail content_type=, token_check_fail buff length=0[2012-07-03 11:56:57] INFO - file: storage_param_getter.c, line: 119, storage_ip_changed_auto_adjust=1, store_path=0, reserved_storage_space=4096 MB, 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[2012-07-03 11:56:57] INFO - local_host_ip_count: 2,  127.0.0.1  192.168.9.32[2012-07-03 11:56:58] INFO - file: tracker_client_thread.c, line: 307, successfully connect to tracker server 192.168.9.31:22122, as a tracker client, my ip is 192.168.9.32[2012-07-03 11:56:58] INFO - file: tracker_client_thread.c, line: 1103, tracker server 192.168.9.31:22122, set tracker leader: 192.168.9.31:22122[2012-07-03 12:00:07] WARNING - file: ../common/fdfs_http_shared.c, line: 40, file: 00/00/wKgJIE_ybkODSUgzAAAeTSeWzAo0212188_big does not have extension name, set to default content type:
复制代码

论坛徽章:
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
2 [报告]
发表于 2012-07-02 15:47 |只看该作者
回复 1# jiang5feng

看tracker server日志文件有没有报错信息。
如果问题一直无法解决,可以重启一下storage server和tracker server试试。

论坛徽章:
0
3 [报告]
发表于 2012-07-02 15:53 |只看该作者
  1. [2012-07-03 11:02:05] INFO - local_host_ip_count: 2,  127.0.0.1  192.168.9.31
  2. [2012-07-03 11:34:21] INFO - file: tracker_relationship.c, line: 374, selecting leader...
  3. [2012-07-03 11:34:21] INFO - file: tracker_relationship.c, line: 392, I am the new tracker leader 192.168.9.31:22122
  4. [2012-07-03 12:23:12] CRIT - file: fdfs_trackerd.c, line: 413, catch signal 15, program exiting...
  5. [2012-07-03 12:23:13] INFO - exit nomally.

  6. [2012-07-03 12:23:14] INFO - FastDFS v3.08, base_path=/home/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=4096MB, download_server=0, allow_ip_count=-1, sync_log_buff_interval=10s, check_active_interval=120s, thread_stack_size=512 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
  7. [2012-07-03 12:23:14] INFO - HTTP supported: server_port=8080, default_content_type=application/octet-stream, anti_steal_token=0, token_ttl=0s, anti_steal_secret_key length=0, token_check_fail content_type=, token_check_fail buff length=0, check_active_interval=30, check_active_type=tcp, check_active_uri=/status.html
  8. [2012-07-03 12:23:14] INFO - local_host_ip_count: 2,  127.0.0.1  192.168.9.31
复制代码
tracker 没有报错

论坛徽章:
0
4 [报告]
发表于 2012-07-02 15:56 |只看该作者
[2012-07-03 12:58:47] INFO - base_path=/data/fastdfs, connect_timeout=30, network_timeout=60, tracker_server_count=1, anti_steal_token=0, anti_steal_secret_key length=0

server_count=1, server_index=0

tracker server is 192.168.9.31:22122

group count: 1

Group 1:
group name = group1
disk free space = 7 GB
trunk free space = 0 GB
storage server count = 1
active server count = 1
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:
                ip_addr = 192.168.9.32  ACTIVE
                http domain =
                version = 3.08
                join time = 2012-07-03 11:34:09
                up time = 2012-07-03 12:58:32
                total storage = 7GB
                free storage = 7GB
                upload priority = 10
                store_path_count = 1
                subdir_count_per_path = 256
                storage_port = 23000
                storage_http_port = 8888
                current_write_path = 0


重启了tracker和storage server后就好了。

论坛徽章:
0
5 [报告]
发表于 2012-07-02 16:00 |只看该作者
回复 2# happy_fish100


    [2012-07-03 13:01:10] DEBUG - file: tracker_proto.c, line: 48, server: 192.168.9.31:22122, response status 2 != 0
[2012-07-03 13:01:10] DEBUG - file: tracker_proto.c, line: 48, server: 192.168.9.31:22122, response status 2 != 0
tracker_query_storage fail, error no: 2, error info: No such file or directory



重启好了之后,上传第一次是好的,但是第二个文件就出问题了,tracker和storage server 都没有报错。


        Storage 1:
                ip_addr = 192.168.9.32  OFFLINE
                http domain =
                version = 3.08

storage 又offline 了。

论坛徽章:
0
6 [报告]
发表于 2012-07-02 16:07 |只看该作者
回复 2# happy_fish100


    kernel: fdfs_storaged[1583]: segfault at 0 ip (null) sp b35cdd8c error 14
Jul  3 13:05:03 netadmin abrt[1588]: not dumping repeating crash in '/usr/local/bin/fdfs_storaged'
Jul  3 13:05:03 netadmin abrt[1588]: saved core dump of pid 1578 to /data/fastdfs/data/core.1578 (83091456 bytes)


在data目录下出现了几个core.*文件

论坛徽章:
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
7 [报告]
发表于 2012-07-02 16:09 |只看该作者
回复 6# jiang5feng

gdb看一下堆栈信息吧。
怀疑是libevent导致的,你用的libevent是什么版本?

论坛徽章:
0
8 [报告]
发表于 2012-07-02 16:11 |只看该作者
回复 7# happy_fish100


    libevent-1.4.13-1.el6.i686

论坛徽章:
0
9 [报告]
发表于 2012-07-02 16:25 |只看该作者
回复 7# happy_fish100


    [root@netadmin data]# gdb -c core.1670
GNU gdb (GDB) Red Hat Enterprise Linux (7.1-29.el6)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Missing separate debuginfo for the main executable file
Try: yum --disablerepo='*' --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/9f/e49623169a02dfec7534eabba72e32d49813e3
[New Thread 1675]
[New Thread 1679]
[New Thread 1674]
[New Thread 1678]
[New Thread 1677]
[New Thread 1670]
[New Thread 1680]
[New Thread 1672]
[New Thread 1671]
[New Thread 1673]
Core was generated by `fdfs_storaged ./conf/storage.conf'.
Program terminated with signal 11, Segmentation fault.
#0  0x00000000 in ?? ()

论坛徽章:
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
10 [报告]
发表于 2012-07-02 18:11 |只看该作者
回复 9# jiang5feng

缺省编译是带debug信息的啊!
为啥你打印出来的堆栈是乱码呢???
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP