searchusermenu
  • 发布文章
  • 消息中心
点赞
收藏
评论
分享
原创

获取bluestore的onode

2023-06-25 09:12:53
62
0
查看bluestore里onode的方法:
 
[root@localhost mon.a]# cd /home/ceph-14.2.22/build/
[root@localhost build]# ceph-kvstore-tool bluestore-kv dev/osd0 list
[root@localhost build]# ceph-kvstore-tool bluestore-kv dev/osd0 list | grep O
[root@localhost build]# ceph-kvstore-tool bluestore-kv dev/osd0 get O %7f%80%00%00%00%00%00%00%06%92%04%1c%14%21f4862da6-e86b-497e-b9a8-a219a4190f9f.4161.1_stranobj1%21%3d%ff%ff%ff%ff%ff%ff%ff%fe%ff%ff%ff%ff%ff%ff%ff%ffo out /var/stran/onode_stran
[root@localhost build]# ceph-dencoder type bluestore_onode_t import onode_stran decode dump_json
error: stray data at end of buffer, offset 1150
[root@localhost build]# dd if=./onode_stran of=onode_stran_tmp bs=1 count=1150
1150+0 records in
1150+0 records out
1150 bytes (1.2 kB) copied, 0.00119041 s, 966 kB/s
[root@localhost build]# ceph-dencoder type bluestore_onode_t import onode_stran_tmp decode dump_json
 
 
[root@localhost mon.a]# ceph-kvstore-tool rocksdb store.db/ list |grep osdmap | head -100
2022-04-14 00:55:33.108 7fe2a71ccec0  1 rocksdb: do_open column families: [default]
health    osdmap
osdmap    1
osdmap    first_committed
osdmap    full_1
osdmap    full_10
[root@localhost mon.a]# ceph-kvstore-tool rocksdb store.db/ get osdmap full_1 out osdmap-full_1.txt
2022-04-14 00:56:25.062 7fdcb91b4ec0  1 rocksdb: do_open column families: [default]
(osdmap, full_1)
[root@localhost mon.a]# ceph-dencoder import osdmap-full_1.txt type OSDMap decode dump_json
{
    "epoch": 1,
    "fsid": "a803907b-5092-4507-9d6e-bbafc0a86bcw",
    "created": "2022-10-13 14:55:11.357116",
    "modified": "2022-10-13 14:55:11.357116",
    "last_up_change": "0.000000",
    "last_in_change": "0.000000",
    "flags": "sortbitwise,recovery_deletes,purged_snapdirs,pglog_hardlimit",
    "flags_num": 5799936,
    "flags_set": [
        "pglog_hardlimit",
        "purged_snapdirs",
        "recovery_deletes",
        "sortbitwise"
    ],
    "crush_version": 1,
    "full_ratio": 0.99000000953674316,
    "backfillfull_ratio": 0.99000000953674316,
    "nearfull_ratio": 0.99000000953674316,
    "cluster_snapshot": "",
    "pool_max": 0,
    "max_osd": 0,
    "require_min_compat_client": "jewel",
    "min_compat_client": "jewel",
    "require_osd_release": "nautilus",
    "pools": [],
    "osds": [],
    "osd_xinfo": [],
    "pg_upmap": [],
    "pg_upmap_items": [],
    "pg_temp": [],
    "primary_temp": [],
    "blacklist": {},
    "erasure_code_profiles": {
        "default": {
            "crush-failure-domain": "osd",
            "k": "2",
            "m": "1",
            "plugin": "jerasure",
            "technique": "reed_sol_van"
        }
    },
    "removed_snaps_queue": [],
    "new_removed_snaps": [],
    "new_purged_snaps": [],
    "crush_node_flags": {},
    "device_class_flags": {}
}
0条评论
0 / 1000
13文章数
1粉丝数
13 文章 | 1 粉丝
原创

获取bluestore的onode

2023-06-25 09:12:53
62
0
查看bluestore里onode的方法:
 
[root@localhost mon.a]# cd /home/ceph-14.2.22/build/
[root@localhost build]# ceph-kvstore-tool bluestore-kv dev/osd0 list
[root@localhost build]# ceph-kvstore-tool bluestore-kv dev/osd0 list | grep O
[root@localhost build]# ceph-kvstore-tool bluestore-kv dev/osd0 get O %7f%80%00%00%00%00%00%00%06%92%04%1c%14%21f4862da6-e86b-497e-b9a8-a219a4190f9f.4161.1_stranobj1%21%3d%ff%ff%ff%ff%ff%ff%ff%fe%ff%ff%ff%ff%ff%ff%ff%ffo out /var/stran/onode_stran
[root@localhost build]# ceph-dencoder type bluestore_onode_t import onode_stran decode dump_json
error: stray data at end of buffer, offset 1150
[root@localhost build]# dd if=./onode_stran of=onode_stran_tmp bs=1 count=1150
1150+0 records in
1150+0 records out
1150 bytes (1.2 kB) copied, 0.00119041 s, 966 kB/s
[root@localhost build]# ceph-dencoder type bluestore_onode_t import onode_stran_tmp decode dump_json
 
 
[root@localhost mon.a]# ceph-kvstore-tool rocksdb store.db/ list |grep osdmap | head -100
2022-04-14 00:55:33.108 7fe2a71ccec0  1 rocksdb: do_open column families: [default]
health    osdmap
osdmap    1
osdmap    first_committed
osdmap    full_1
osdmap    full_10
[root@localhost mon.a]# ceph-kvstore-tool rocksdb store.db/ get osdmap full_1 out osdmap-full_1.txt
2022-04-14 00:56:25.062 7fdcb91b4ec0  1 rocksdb: do_open column families: [default]
(osdmap, full_1)
[root@localhost mon.a]# ceph-dencoder import osdmap-full_1.txt type OSDMap decode dump_json
{
    "epoch": 1,
    "fsid": "a803907b-5092-4507-9d6e-bbafc0a86bcw",
    "created": "2022-10-13 14:55:11.357116",
    "modified": "2022-10-13 14:55:11.357116",
    "last_up_change": "0.000000",
    "last_in_change": "0.000000",
    "flags": "sortbitwise,recovery_deletes,purged_snapdirs,pglog_hardlimit",
    "flags_num": 5799936,
    "flags_set": [
        "pglog_hardlimit",
        "purged_snapdirs",
        "recovery_deletes",
        "sortbitwise"
    ],
    "crush_version": 1,
    "full_ratio": 0.99000000953674316,
    "backfillfull_ratio": 0.99000000953674316,
    "nearfull_ratio": 0.99000000953674316,
    "cluster_snapshot": "",
    "pool_max": 0,
    "max_osd": 0,
    "require_min_compat_client": "jewel",
    "min_compat_client": "jewel",
    "require_osd_release": "nautilus",
    "pools": [],
    "osds": [],
    "osd_xinfo": [],
    "pg_upmap": [],
    "pg_upmap_items": [],
    "pg_temp": [],
    "primary_temp": [],
    "blacklist": {},
    "erasure_code_profiles": {
        "default": {
            "crush-failure-domain": "osd",
            "k": "2",
            "m": "1",
            "plugin": "jerasure",
            "technique": "reed_sol_van"
        }
    },
    "removed_snaps_queue": [],
    "new_removed_snaps": [],
    "new_purged_snaps": [],
    "crush_node_flags": {},
    "device_class_flags": {}
}
文章来自个人专栏
ceph基础
13 文章 | 1 订阅
0条评论
0 / 1000
请输入你的评论
0
0