【ceph运维】mon相关命令

mon命令

查看mon选举:

[root@ecos75r018-meijia-31-161 ~]# ceph quorum_status -f json-pretty


{
    "election_epoch": 17,
    "quorum": [
        0
    ],
    "quorum_names": [
        "ecos75r018-meijia-31-161"
    ],
    "quorum_leader_name": "ecos75r018-meijia-31-161",
    "quorum_age": 172039,
    "monmap": {
        "epoch": 1,
        "fsid": "f60e6370-14ff-44cc-b99c-70b17df8549c",
        "modified": "2020-08-12 17:01:25.609741",
        "created": "2020-08-12 17:01:25.609741",
        "min_mon_release": 14,
        "min_mon_release_name": "nautilus",
        "features": {
            "persistent": [
                "kraken",
                "luminous",
                "mimic",
                "osdmap-prune",
                "nautilus"
            ],
            "optional": []
        },
        "mons": [
            {
                "rank": 0,
                "name": "ecos75r018-meijia-31-161",
                "public_addrs": {
                    "addrvec": [
                        {
                            "type": "v2",
                            "addr": "10.0.31.161:3300",
                            "nonce": 0
                        },
                        {
                            "type": "v1",
                            "addr": "10.0.31.161:6789",
                            "nonce": 0
                        }
                    ]
                },
                "addr": "10.0.31.161:6789/0",
                "public_addr": "10.0.31.161:6789/0"
            }
        ]
    }
}

 

查看mon的映射信息:

ceph mon dump

 

 获得一个正在运行的 mon map,并保存到文件中:

 

 

 




posted @ 2022-03-30 20:55  苏格拉底的落泪  阅读(415)  评论(0编辑  收藏  举报