- 论坛徽章:
- 0
|
1.系统为centos6.2,正常开机情况下,可以通过shell脚本启动tracker,storage,脚本如下
/usr/local/bin/fdfs_trackerd /etc/fdfs/tracker.conf
/usr/local/bin/fdfs_storage /etc/fdfs/storage.conf
2.将shell脚本加入开机启动项 /etc/rc.local中去,然后重启系统
发现有tracker进程,没有storage进程
但tracker会有错误日志,日志如下
[2014-12-08 17:51:12] DEBUG - file: fast_task_queue.c, line: 196, max_connections: 256, min_buff_size: 8192, max_buff_size: 8192, block_size: 8552, arg_size: 24, max_data_size: 268435456, total_size: 2189312
[2014-12-08 17:51:12] DEBUG - file: fast_task_queue.c, line: 262, malloc task info as whole: 1, malloc loop count: 1
[2014-12-08 17:51:12] ERROR - file: tracker_service.c, line: 114, call pipe fail, errno: 24, error info: Too many open files
[2014-12-08 17:51:12] ERROR - file: tracker_service.c, line: 246, call write failed, errno: 22, error info: Invalid argument
[2014-12-08 17:51:12] ERROR - file: tracker_service.c, line: 246, call write failed, errno: 22, error info: Invalid argument
[2014-12-08 17:51:13] ERROR - file: tracker_service.c, line: 246, call write failed, errno: 22, error info: Invalid argument
[2014-12-08 17:51:14] ERROR - file: tracker_service.c, line: 246, call write failed, errno: 22, error info: Invalid argument
[2014-12-08 17:51:14] ERROR - file: tracker_service.c, line: 246, call write failed, errno: 22, error info: Invalid argument
[2014-12-08 17:51:14] ERROR - file: tracker_service.c, line: 246, call write failed, errno: 22, error info: Invalid argument
[2014-12-08 17:51:15] ERROR - file: tracker_service.c, line: 246, call write failed, errno: 22, error info: Invalid argument
storage日志如下
[2014-12-08 17:50:18] CRIT - file: fdfs_storaged.c, line: 497, catch signal 15, program exiting...
[2014-12-08 17:51:12] ERROR - file: tracker_proto.c, line: 37, server: 192.168.1.128:13122, recv data fail, errno: 107, error info: Transport endpoint is not connected
[2014-12-08 17:51:12] ERROR - file: tracker_proto.c, line: 154, tracker server: 192.168.1.128:13122, send data fail, errno: 104, error info: Connection reset by peer
[2014-12-08 17:51:13] ERROR - file: tracker_proto.c, line: 37, server: 192.168.1.128:13122, recv data fail, errno: 107, error info: Transport endpoint is not connected
[2014-12-08 17:51:13] ERROR - file: tracker_proto.c, line: 154, tracker server: 192.168.1.128:13122, send data fail, errno: 104, error info: Connection reset by peer
[2014-12-08 17:51:14] ERROR - file: tracker_proto.c, line: 37, server: 192.168.1.128:13122, recv data fail, errno: 107, error info: Transport endpoint is not connected
[2014-12-08 17:58:02] ERROR - file: tracker_proto.c, line: 37, server: 192.168.1.128:13122, recv data fail, errno: 107, error info: Transport endpoint is not connected
[2014-12-08 17:58:52] ERROR - file: tracker_proto.c, line: 37, server: 192.168.1.128:13122, recv data fail, errno: 107, error info: Transport endpoint is not connected
开机之后必须重启 tracker 才能启动 storage,请问如何排错啊
|
|