【工具】cephobjectstoretool工具使用详解

ceph-objectstore-tool工具

基本命令使用如下:
ceph-objectstore-tool --data-path /var/lib/ceph/osd/ceph-8/ --type bluestore xxx一般前半部分如左,指定osd路径,指定存储引擎(bluestore或者filestore)

使用之前需要停止当前操作的osd,否则会报错

查看超级快的信息:

ceph-objectstore-tool --data-path /var/lib/ceph/osd/ceph-23/ --type bluestore --op dump-super

获取当前osd的所有pg

ceph-objectstore-tool --data-path /var/lib/ceph/osd/ceph-23/ --type bluestore --op list-pgs

注意: 其中--op表示对当前osd或者当前pg的操作

 针对单个pg,列出当前pg的基本信息

ceph-objectstore-tool --data-path /var/lib/ceph/osd/ceph-23/ --type bluestore --pgid 5.5f --op info

列出当前pg的所有对象

ceph-objectstore-tool --data-path /var/lib/ceph/osd/ceph-8/ --type bluestore --pgid 17.es1 --op list

获取具体的pg_log_t信息

ceph-objectstore-tool --data-path /var/lib/ceph/osd/ceph-23/ --type bluestore --pgid 5.6c  --op log

删除对象

ceph-objectstore-tool --data-path /var/lib/ceph/osd/ceph-8/ --type bluestore rbd_data.18.cf83c74b0dc51.000000000003925a remove

参考资料

1. ceph-objectstore-tool工具使用详解

原文地址:https://www.cnblogs.com/sunbines/p/15627689.html