FastDFS问题汇总

问题1: 增加分组后,新的storge不可用。

      增加一个分组group2,发现上传文件失败。在group2中的storage中使用netstat -anp|grep fdfs,发现端口状态为CLOSE_WAIT。查了一下,tracker和storage的日志文件,也没有发现有什么错误的输出。使用fdfs_monitor 发现group1下的storage状态都是active,而group2下的storage状态都是INIT。查了配置信息,也没发现有什么错误的地方。

     原因:之前在新加group2之前,我在group1中新加一个storage,但是不小心将这个storage的状态设置为group2了。发现错误后,将这个storage重新设置为group1。后来使用fdfs_monitor发现在group1和group2中都有这个storage。group1中此storage状态为active。而在group2中为OFFLINE。group2其他storage状态为INIT。我猜测就是这个OFFLINE的storage导致group2的storage不可用,于是删除了这个storage,发现group2果然可用了。

         删除命令:/usr/local/bin/fdfs_monitor /etc/fdfs/storage.conf delete group2 20.12.1.73

原文地址:https://www.cnblogs.com/chenfei0801/p/3455272.html