cephfs client evict子命令使用
cephfs client evict子命令使用
观察ganesha与mds的session状态情况:
- tyds tell mds.node01 session ls
- tyds tell mds.node01 client ls
例如:
# ceph tell mds.node01 client ls
2023-03-05 10:00:15.986 7f97f0ff9700 0 client.25196 ms_handle_reset on 192.168.0.26:6800/1856812761
2023-03-05 10:00:16.002 7f97f1ffb700 0 client.25199 ms_handle_reset on 192.168.0.26:6800/1856812761
[
{
"id": 25085,
"num_leases": 0,
"num_caps": 5,
"state": "open",
"replay_requests": 0,
"completed_requests": 0,
"reconnecting": false,
"inst": "client.25085 192.168.0.26:0/265326503",
"client_metadata": {
"ceph_sha1": "5533ecdc0fda920179d7ad84e0aa65a127b20d77",
"ceph_version": "ceph version 13.2.1 (5533ecdc0fda920179d7ad84e0aa65a127b20d77) mimic (stable)",
"entity_id": "admin",
"hostname": "mimic3",
"mount_point": "/mnt/cephfuse",
"pid": "44876",
"root": "/"
}
}
]
evict所有的client:若在evict命令后不指定具体的client id,则会把与该MDS Rank链接的所有client evict掉,若有多个Active MDS,单个MDS Rank的evict也会传播到别的Active MDS。
ceph tell mds.0 client evict