工作中遇到问题:
fastdfs 上传图片失败,查看后台日志看到如下错误信息:
org.csource.common.MyException: getStoreStorage fail, errno code: 28
原因:磁盘空间不足
tracker.conf 配置文件中有一个配置:
reserved_storage_space = 10%
预留存储空间为10%,如果不足这个设置,则会报这个错误。
# reserved storage space for system or other applications.
# if the free(available) space of any stoarge server in
# a group <= reserved_storage_space,
# no file can be uploaded to this group.
# bytes unit can be one of follows:
### G or g for gigabyte(GB)
### M or m for megabyte(MB)
### K or k for kilobyte(KB)
### no unit for byte(B)
### XX.XX% as ratio such as reserved_storage_space = 10%
reserved_storage_space = 10%
解决:
2种解决方法,一个是修改此配置,然后重启track,但此方法不是长久之计,最好还是扩大磁盘容量,增加存储空间。