问题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

 

 

相关文章:

  • 2021-05-30
  • 2021-08-14
  • 2021-07-24
  • 2021-07-22
  • 2021-05-19
  • 2021-09-22
  • 2021-09-01
  • 2021-07-04
猜你喜欢
  • 2021-10-02
  • 2021-07-09
  • 2022-01-24
  • 2021-07-07
  • 2021-07-27
  • 2021-06-16
相关资源
相似解决方案