STORAGE SERVER的状态通常有七种:
FDFS_STORAGE_STATUS:INIT :初始化,尚未得到同步已有数据的源服务器

FDFS_STORAGE_STATUS:WAIT_SYNC :等待同步,已得到同步已有数据的源服务器

FDFS_STORAGE_STATUS:SYNCING :同步中

FDFS_STORAGE_STATUS:DELETED :已删除,该服务器从本组中摘除

FDFS_STORAGE_STATUS:OFFLINE :离线

FDFS_STORAGE_STATUS:ONLINE :在线,尚不能提供服务

FDFS_STORAGE_STATUS:ACTIVE :在线,可以提供服务

正常状态必须是ACTIVE,如果运行以下命令:
fdfs_monitor /etc/fdfs/client.conf

发现有以下状态的服务器:
Storage 1:

    ip_addr = 10.10.10.11  WAIT_SYNC

经过各种重启都不解决问题,只好先删除,再加入
从集群中删除
fdfs_monitor /etc/fdfs/client.conf delete group1 10.10.10.11

在11服务器中,删除数据文件夹
rm -rf /data/storage1/fastdfs/data

重启11节点
fdfs_storaged /etc/fdfs/storage.conf

重新查状态
fdfs_monitor /etc/fdfs/client.conf

暂无评论