系统卡写入量过大之---ceph高级工具ceph-kvstore-tool调研

文章探讨了系统卡写入量过大问题,聚焦于Ceph监控数据库ceph-kvstore-tool的调研。通过man page了解工具功能,如列出数据前缀和key、获取指定key的value等,帮助分析系统中数据分布和内容,以解决生产环境中异常的系统卡写入量问题。
摘要由CSDN通过智能技术生成

前言:

最近生产环境出现一个异常,设备系统卡一天写入量达到270多G,这样的压力下一个系统卡使用不了多久就会挂掉。os组同事使用blacktrace命令发现系统卡上有一个进程名称为rocksdb的进程在频繁的刷入数据,直接咬定这270G数据是我们ceph写入的。最终发现,ceph mon的数据库是放在系统卡里的,为了有效卸锅,特地调研了一下该工具(这个工具好像默认是不装的,需要单独安装一下)

首先看一下该命令的man page

NAME
       ceph-kvstore-tool - ceph kvstore manipulation tool

SYNOPSIS
       ceph-kvstore-tool <leveldb|rocksdb|bluestore-kv> <store path> command [args...]

DESCRIPTION
       ceph-kvstore-tool is a kvstore manipulation tool. It allows users to manipule leveldb/rocksdb's data (like OSD's omap) offline.

COMMANDS
       ceph-kvstore-tool utility uses many commands for debugging purpose which are as follows:

       list [prefix]
              Print key of all KV pairs stored with the URL encoded prefix.

       list-crc [prefix]
              Print CRC of all KV pairs stored with the URL encoded prefix.

       exists <prefix> [key]
              Check if there is any KV pair stored with the URL encoded prefix. If key is also specified, check for the key with the prefix instead.

       get <prefix> <key> [out <file>]
              Get the value of the KV pair stored with the URL encoded prefix and key.  If file is also specified, write the value 
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值