错误状态信息 | [root@node-10 /]# ceph fs status Error EINVAL: Traceback (most recent call last): File "/usr/share/ceph/mgr/mgr_module.py", line 974, in _handle_command return self.handle_command(inbuf, cmd) File "/usr/share/ceph/mgr/status/module.py", line 251, in handle_command return self.handle_fs_status(cmd) File "/usr/share/ceph/mgr/status/module.py", line 176, in handle_fs_status mds_versions[metadata.get('ceph_version', "unknown")].append(standby['name']) AttributeError: 'NoneType' object has no attribute 'get' |
配置 mds_cache_memory_limit | [root@node-10 /]# ceph daemon mds.node-10 config show |grep mds_cache "mds_cache_memory_limit": "1073741824", "mds_cache_mid": "0.700000", "mds_cache_release_free_interval": "10", "mds_cache_reservation": "0.050000", "mds_cache_size": "0", "mds_cache_trim_decay_rate": "1.000000", "mds_cache_trim_interval": "1", "mds_cache_trim_threshold": "65536", [root@node-10 /]#
默认 1G,若要配置为 5G,可以修改文件 /etc/ceph/ceph.conf ,添加
[mds] mds cache memory limit = 5368709120
Tips:不合理的 cache 设置,会出现问题: 1 MDSs report oversized cache |
解决方法 | 查看 MDS 元数据信息 ceph mds metadata,发现有信息不全的节点,在该节点重启 MDS 服务即可恢复
[root@node-10 /]# ceph mds metadata
重启 MDS 服务
[root@node-10 /]# systemctl restart ceph-mds@node-10.service [root@node-11 /]# systemctl restart ceph-mds@node-11.service [root@node-12 /]# systemctl restart ceph-mds@node-12.service
检查ceph fs status 状态
[root@node-10 /]# ceph fs status cephfs - 1 clients ====== +------+--------+---------+---------------+-------+-------+ | Rank | State | MDS | Activity | dns | inos | +------+--------+---------+---------------+-------+-------+ | 0 | active | node-10 | Reqs: 0 /s | 33 | 15 | +------+--------+---------+---------------+-------+-------+ +-----------------+----------+-------+-------+ | Pool | type | used | avail | +-----------------+----------+-------+-------+ | cephfs_metadata | metadata | 2116k | 30.4G | | cephfs_data | data | 384k | 30.4G | +-----------------+----------+-------+-------+ +-------------+ | Standby MDS | +-------------+ | node-11 | | node-12 | +-------------+ MDS version: ceph version 14.2.9 (581f22da52345dba46ee232b73b990f06029a2a0) nautilus (stable) [root@node-10 /]#
|
Ceph fs MDS 状态报错的解决办法
最新推荐文章于 2024-06-06 12:07:54 发布