分类: Fastsdfs
Fastdfs DEBUG - file: tracker_proto.c, line: 48, server: 192.168.x.x:22122, response status 28 != 0解决方法

测试fasdfs上传图片的时候报错,如下:

[fastdfs@test_dev_fastdfs_32 tmp]$ /usr/local/bin/fdfs_test /etc/fdfs/client.conf upload /tmp/11.png 
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.

[2017-10-10 10:05:30] DEBUG - base_path=/file/fastdfs_group5, 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

[2017-10-10 10:05:30] DEBUG - file: tracker_proto.c, line: 48, server: 192.168.121.32:22122, response status 28 != 0
[2017-10-10 10:05:30] DEBUG - file: tracker_proto.c, line: 48, server: 192.168.121.32:22122, response status 28 != 0
tracker_query_storage fail, error no: 28, error info: No space left on device

故障分析:
使用df查看硬盘空间

[root@test_dev_fastdfs_32 file]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg_staricfile2-lv_root
                       50G   26G   22G  54% /
tmpfs                  32G   76K   32G   1% /dev/shm
/dev/sda1             485M   85M  376M  19% /boot
/dev/mapper/vg_staricfile2-lv_home
                      194G   11G  174G   6% /home
/dev/mapper/mpathc   1008G  778G  180G  82% /file
/dev/mapper/mpathd    2.0T  1.1T  867G  55% /data

/files所在的分区不足20%
检查/etc/fdfs/tracker.conf配置文件,发现reserved_storage_space = 20%
故上传失败,提示空间不足,

解决问题
FastDFS在tracker.conf中reserved_storage_space参数为预留空间,缺省值为4GB,即预留4GB的空间,不足4G可用空间时就会传不上去文件,修改为reserved_storage_space = 5%
保存,重启tracerk服务,再次测试上传成功:

[fastdfs@test_dev_fastdfs_32 ~]$ /usr/local/bin/fdfs_test /etc/fdfs/client.conf upload /tmp/11.png 
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.

[2017-10-10 10:13:24] DEBUG - base_path=/file/devfastdfs, 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

tracker_query_storage_store_list_without_group: 
        server 1. group_name=, ip_addr=192.168.121.32, port=23003

group_name=group3, ip_addr=192.168.121.32, port=23003
storage_upload_by_filename
group_name=group3, remote_filename=M00/00/15/wKh5IFncLMSACr_6AAe_oASvJxU822.png
source ip address: 192.168.121.32
file timestamp=2017-10-10 10:13:24
file size=507808
file crc32=78587669
file url: http://192.168.121.32/group3/M00/00/15/wKh5IFncLMSACr_6AAe_oASvJxU822.png
storage_upload_slave_by_filename
group_name=group3, remote_filename=M00/00/15/wKh5IFncLMSACr_6AAe_oASvJxU822_big.png
source ip address: 192.168.121.32
file timestamp=2017-10-10 10:13:24
file size=507808
file crc32=78587669
file url: http://192.168.121.32/group3/M00/00/15/wKh5IFncLMSACr_6AAe_oASvJxU822_big.png


相关博文:

发表新评论