fastdfs的storageserver的状态问题

    xiaoxiao2021-03-25  118

    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 4:         ip_addr = 10.120.151.114  WAIT_SYNC 经过各种重启都不解决问题,只好先删除,再加入 # 从集群中删除 fdfs_monitor /etc/fdfs/client.conf delete group1       10.120.151.114 # 在114服务器中,删除数据文件夹 rm -rf /home/storage1/fastdfs/data # 重启114节点 fdfs_storaged /etc/fdfs/storage.conf 重新查状态 fdfs_monitor /etc/fdfs/client.conf 状态变正常了。

    转载请注明原文地址: https://ju.6miu.com/read-20634.html

    最新回复(0)