4.18. 手动驱除 Ceph 文件系统客户端
如果客户端的行为不当,且您无法访问客户端节点,或者客户端出现故障,并且您不希望等待客户端会话超时,您可能希望手动驱除 Ceph 文件系统 (CephFS) 客户端。
先决条件
- 用户访问 Ceph 监控节点.
流程
查看客户端列表:
语法
ceph tell DAEMON_NAME client ls
示例
[root@mon]# ceph tell mds.0 client ls [ { "id": 4305, "num_leases": 0, "num_caps": 3, "state": "open", "replay_requests": 0, "completed_requests": 0, "reconnecting": false, "inst": "client.4305 172.21.9.34:0/422650892", "client_metadata": { "ceph_sha1": "ae81e49d369875ac8b569ff3e3c456a31b8f3af5", "ceph_version": "ceph version 12.0.0-1934-gae81e49 (ae81e49d369875ac8b569ff3e3c456a31b8f3af5)", "entity_id": "0", "hostname": "senta04", "mount_point": "/tmp/tmpcMpF1b/mnt.0", "pid": "29377", "root": "/" } } ]
驱除指定的 CephFS 客户端:
语法
ceph tell DAEMON_NAME client evict id=ID_NUMBER
示例
[root@mon]# ceph tell mds.0 client evict id=4305