OFFLINE为什么离线?错误在日志在哪里.message里面没有.
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
1.可能那台的系统是RH9,不支持FastDFS.rhel3 rhel4是正常的.
2.如果是不支持那如何取消它呢?老是以offline显示毕竟有些不正常.
存储服务器上的日志文件名为:storage.log
日志文件所在目录:${base_path}/logs,如:/home/yuqing/fastdfs2/logs。你先看一下日志文件,看看能不能确定问题所在。
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
这台机器的内存较小吧。也可能是操作系统限制的缘故导致创建线程失败。修改配置文件,将max_connections改小,比较改为128或200。
出问题的物理内存是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
那就是操作系统的限制了。一个进程创建的线程数,操作系统是有上限的,应该和创建的子进程数有直接关系吧。你要么修改操作系统的相关参数,要么修改FastDFS的max_connections。
反正是一台RH9.这辈子也很难再主动去安装一台RH9了.都落后的东西.没必须研究那个旧系统.
:wink: