免费注册 查看新帖 |

Chinaunix

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

[FastDFS] OFFLINE为什么离线?错误在日志在哪里.message里面没有. [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-02-23 21:46 |只看该作者 |倒序浏览
fdfs_monitor /etc/storage2.conf
group count: 3

Group 1:
group name = group1
free space = 4 GB
storage server count = 1
active server count = 1
storage_port = 23000
store path count = 1
subdir count per path= 256
current write server index = 1

        Host 1:
                ip_addr = 220.231.13.92  ACTIVE
                total storage = 5GB
                free storage = 4GB
                total_upload_count = 4
                success_upload_count = 4
                total_set_meta_count = 0
                success_set_meta_count = 0
                total_delete_count = 0
                success_delete_count = 0
                total_download_count = 1
                success_download_count = 1
                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
                last_source_update = 2009-02-23 23:56:27
                last_sync_update = 1970-01-01 08:00:00
                last_synced_timestamp= 1970-01-01 08:00:00

Group 2:
group name = group2
free space = 0 GB
storage server count = 1
active server count = 0
storage_port = 23001
store path count = 1
subdir count per path= 256
current write server index = 0

        Host 1:
                ip_addr = 220.231.13.93  OFFLINE
                total storage = 0GB
                free storage = 0GB
                total_upload_count = 0
                success_upload_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
                last_source_update = 1970-01-01 08:00:00
                last_sync_update = 1970-01-01 08:00:00
                last_synced_timestamp= 1970-01-01 08:00:00

Group 3:
group name = group3
free space = 2 GB
storage server count = 1
active server count = 1
storage_port = 23002
store path count = 1
subdir count per path= 256
current write server index = 1

        Host 1:
                ip_addr = 220.231.13.100  ACTIVE
                total storage = 7GB
                free storage = 2GB
                total_upload_count = 6
                success_upload_count = 6
                total_set_meta_count = 0
                success_set_meta_count = 0
                total_delete_count = 0
                success_delete_count = 0
                total_download_count = 1
                success_download_count = 1
                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
                last_source_update = 2009-02-23 15:58:38
                last_sync_update = 1970-01-01 08:00:00
                last_synced_timestamp= 1970-01-01 08:00:00





[root@localhost conf]# cat /etc/storage2.conf
disabled=false
group_name=group2
bind_addr=220.231.13.93
port=23001
network_timeout=20
heart_beat_interval=30
stat_report_interval=60
base_path=/home/yuqing/fastdfs2

sync_wait_msec=200

tracker_server=220.231.13.85:22122

论坛徽章:
0
2 [报告]
发表于 2009-02-23 21:47 |只看该作者
1.可能那台的系统是RH9,不支持FastDFS.rhel3 rhel4是正常的.

2.如果是不支持那如何取消它呢?老是以offline显示毕竟有些不正常.

论坛徽章:
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 [报告]
发表于 2009-02-24 09:00 |只看该作者
原帖由 todayhero 于 2009-2-23 21:47 发表
1.可能那台的系统是RH9,不支持FastDFS.rhel3 rhel4是正常的.

2.如果是不支持那如何取消它呢?老是以offline显示毕竟有些不正常.


存储服务器上的日志文件名为:storage.log
日志文件所在目录:${base_path}/logs,如:/home/yuqing/fastdfs2/logs。你先看一下日志文件,看看能不能确定问题所在。

论坛徽章:
0
4 [报告]
发表于 2009-02-24 09:08 |只看该作者

回复 #3 happy_fish100 的帖子

RH9的错误日志.原来做storage不成.后来又做tracker也不成.这个tracker日志

[root@localhost logs]# cat trackerd.log
[2009-02-23 21:00:07] INFO - FastDFS v1.16, base_path=/home/yuqing/fastdfs, network_timeout=60s, port=22122, bind_addr=220.231.13.93, max_connections=256, store_lookup=0, store_group=, store_server=0, store_path=0, reserved_storage_space=100MB, download_server=0, allow_ip_count=-1, sync_log_buff_interval=10s
[2009-02-23 21:00:07] ERROR - file: ../common/shared_func.c, line: 1526, create thread failed, startup threads: 253, errno: 12, error info: Cannot allocate memory
[2009-02-23 21:09:18] INFO - FastDFS v1.16, base_path=/home/yuqing/fastdfs, network_timeout=60s, port=22122, bind_addr=220.231.13.93, max_connections=256, store_lookup=0, store_group=, store_server=0, store_path=0, reserved_storage_space=100MB, download_server=0, allow_ip_count=-1, sync_log_buff_interval=10s
[2009-02-23 21:09:18] ERROR - file: ../common/shared_func.c, line: 1526, create thread failed, startup threads: 253, errno: 12, error info: Cannot allocate memory

论坛徽章:
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
5 [报告]
发表于 2009-02-24 09:12 |只看该作者
这台机器的内存较小吧。也可能是操作系统限制的缘故导致创建线程失败。修改配置文件,将max_connections改小,比较改为128或200。

论坛徽章:
0
6 [报告]
发表于 2009-02-24 09:15 |只看该作者

回复 #5 happy_fish100 的帖子

出问题的物理内存是1.5G
[root@localhost data]# free -m
             total       used       free     shared    buffers     cached
Mem:          1511       1447         63          0        399        571
-/+ buffers/cache:        476       1034
Swap:         2047         15       2032

其它正常的机子的内存比它小多了.128*3
[root@slave mysql]# free -m
             total       used       free     shared    buffers     cached
Mem:           376        306         69          0        107         59
-/+ buffers/cache:        139        236
Swap:         1027          0       1027

论坛徽章:
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 [报告]
发表于 2009-02-24 09:19 |只看该作者

回复 #6 todayhero 的帖子

那就是操作系统的限制了。一个进程创建的线程数,操作系统是有上限的,应该和创建的子进程数有直接关系吧。你要么修改操作系统的相关参数,要么修改FastDFS的max_connections。

论坛徽章:
0
8 [报告]
发表于 2009-02-24 09:34 |只看该作者
反正是一台RH9.这辈子也很难再主动去安装一台RH9了.都落后的东西.没必须研究那个旧系统.

论坛徽章:
0
9 [报告]
发表于 2009-03-13 19:04 |只看该作者

回复 #1 todayhero 的帖子

:wink:
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP