问题10--mon.* store is getting too big

本文介绍了解决Ceph集群中mon.*storeisgettingtoobig问题的方法,包括压缩mon、重启服务以及调整leveldb_log配置,确保Ceph集群稳定运行。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

问题描述:用ceph -s查看发现“mon.* store is getting too big”

解:1、通常对mon进行压缩就能解决此问题,但会发现过段时间还会出现

             ceph mon dump  查看mon拓扑
             ceph tell mon.0 compact  压缩mon

        2、对于ceph  H版,0.95,store.db下会产生log和log.old,这两个通常是占用空间最大的

             /var/lib/ceph/mon/ceph-*/store.db

        3、通过重启相应mon服务两次解决,重启会生成新的log,原来的log变为log.old,所以重启两次

              service ceph stop mon.*  关闭mon

              service ceph start mon.*  开启mon

        其它分析:

       用ceph daemon /var/run/ceph/ceph-mon.*asok config show | grep leveldb 查看leveldb_log的配置为空

      关闭mon服务,将LOG和LOG.old文件mv到/var/tmp,启动mon服务,会生成新的LOG文件,持续观察ceph –s正常

      关闭mon服务,将LOG文件mv到/var/tmp,在/ect/ceph/ceph.conf中添加[global] leveldb_log=/tmp/ceph_store,启动mon服          务;没有新的LOG文件生成,在/tmp/下生成ceph_store文件,持续观察ceph –s正常

      关闭mon服务,将ceph_store文件mv到/var/tmp,在/ect/ceph/ceph.conf中添加[global] leveldb_log=/dev/null,启动mon服            务;没有新的LOG和ceph_store文件生成,用ceph daemon /var/run/ceph/ceph-mon.***.asok config show | grep  leveldb 查看leveldb_log的配置为/dev/null,持续观察ceph –s正常

sudo cmake -DSDL_INCLUDE_DIR=/usr/include/SDL -DSDL_LIBRARY=/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0 .. -- Build type set to Release. -- Build date set to Mon, 11 Aug 2025 06:08:45Z. -- -- The build system will automatically enable all components. -- Use -DENABLE_DEFAULT=OFF to disable components by default. -- Extracting version information from git describe... -- -- Configuring testing-support support... -- Dependency Boost_UNIT_TEST_FRAMEWORK_FOUND = 1 -- Enabling testing-support support. -- Override with -DENABLE_TESTING=ON/OFF -- Compiler Version: cc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0 Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -- Compiler Flags: /usr/bin/cc:::-O3 -DNDEBUG -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized /usr/bin/c++:::-O3 -DNDEBUG -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized -- ADDING PERF COUNTERS -- User set python executable /usr/bin/python3 -- Python checking for packaging - found -- Python checking for numpy - found -- Python checking for pygccxml - not found -- -- ***************************** WARNING!!! ************************* -- pygccxml is highly recommended for using gr_modtool -- and is either not present or below the minimum version 2.0.0 -- Only trivial bindings will be generated using gr_modtool bind -- ****************************************************************** -- Found PythonInterp: /usr/bin/python3 (found version "3.8.10") -- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.8.so -- -- Configuring python-support support... -- Dependency PYTHONLIBS_FOUND = TRUE -- Dependency PACKAGING_FOUND = TRUE -- Dependency pybind11_FOUND = 1 -- Dependency NUMPY_FOUND = TRUE -- Enabling python-support support. -- Override with -DENABLE_PYTHON=ON/OFF -- -- Configuring VOLK support... -- Found VOLK: Volk::volk -- Found VOLK: -- * Version: 2.2.0 -- * Libraries: Volk::volk -- * Includes: /usr/include CMake Error at CMakeLists.txt:312 (message): VOLK version 2.2.0 < 2.4.1 -- Configuring incomplete, errors occurred! See also "/home/pc3/gnuradio/build/CMakeFiles/CMakeOutput.log". See also "/home/pc3/gnuradio/build/CMakeFiles/CMakeError.log".
最新发布
08-12
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值