美文网首页Ceph
【ceph】管理命令

【ceph】管理命令

作者: 小醉90s | 来源:发表于2018-12-06 23:40 被阅读0次

    命名(All)

    # ceph-deploy-2.0.1-0.noarch
    ceph-deploy
    
    # ceph-base-12.2.10-0.el7.x86_64
    ceph-run
    ceph-detect-init
    ceph-kvstore-tool
    
    # ceph-common-12.2.10-0.el7.x86_64
    ceph
    ceph-rbdnamer
    ceph-brag
    ceph-dencoder
    cephfs-journal-tool
    rados
    radosgw-admin
    ceph-authtool 
    ceph-conf
    cephfs-table-tool
    ceph-crush-location
    cephfs-data-scan
    ceph-post-file
    ceph-syn
    
    # ceph-mds-12.2.10-0.el7.x86_64
    ceph-mds
    
    # ceph-mgr-12.2.10-0.el7.x86_64
    ceph-mgr
    
    # ceph-osd-12.2.10-0.el7.x86_64
    ceph-osd
    ceph-objectstore-tool
    ceph-clsinfo
    ceph-bluestore-tool
    ceph-osdomap-tool
    
    # ceph-mon-12.2.10-0.el7.x86_64
    ceph-rest-api
    ceph-monstore-tool
    ceph-mon
    
    # ceph-radosgw-12.2.10-0.el7.x86_64
    radosgw
    radosgw-es
    radosgw-object-expirer
    radosgw-token
    
    # s3cmd-2.0.2-1.el7.noarch
    s3cmd
    
    # s3fs-fuse-1.84-3.el7.x86_64
    s3fs
    
    s3put
    

    ceph

    ceph mon dump
    ceph osd dump
    ceph pg dump
    ceph pg dump pgs
    ceph osd getcrushmap -o {filename}
    crushtool -d {comp-crushmap-filename} -o {decomp-crushmap-filename}
    ceph mds dump
    

    s3cmd

    # 创建bucket
    s3cmd mb s3://bucket_01
    # 删除bucket
    s3cmd rb s3://bucket_01
    

    radosgw-admin

    # 罗列bucket
    radosgw-admin bucket list
    # 查看bucket属性
    radosgw-admin bucket stats --bucket=First-bucket
    {
        "bucket": "First-bucket",
        "zonegroup": "5c1d9087-3ee8-41c4-81ca-3f348c55ce59",
        "placement_rule": "default-placement",
        "explicit_placement": {
            "data_pool": "",
            "data_extra_pool": "",
            "index_pool": ""
        },
        "id": "1bc69cea-9bcd-4be6-979e-d98ab2faa66c.4211.1",
        "marker": "1bc69cea-9bcd-4be6-979e-d98ab2faa66c.4211.1",
        "index_type": "Normal",
        "owner": "radosgw",
        "ver": "0#141",
        "master_ver": "0#0",
        "mtime": "2018-12-06 16:55:49.868164",
        "max_marker": "0#",
        "usage": {
            "rgw.main": {
                "size": 208651,
                "size_actual": 266240,
                "size_utilized": 208651,
                "size_kb": 204,
                "size_kb_actual": 260,
                "size_kb_utilized": 204,
                "num_objects": 18
            }
        },
        "bucket_quota": {
            "enabled": false,
            "check_on_raw": false,
            "max_size": -1,
            "max_size_kb": 0,
            "max_objects": -1
        }
    }
    

    重启

    #  systemctl list-units --type=service|grep ceph
    ceph-mgr@ceph-object-01.service             loaded active running Ceph cluster manager daemon
    ceph-mon@ceph-object-01.service             loaded active running Ceph cluster monitor daemon
    ceph-osd@0.service                          loaded active running Ceph object storage daemon osd.0
    ceph-radosgw@rgw.ceph-object-01.service     loaded active running Ceph rados gateway
    
    # 重启
    systemctl restart ceph-mgr@ceph-object-01.service        
    systemctl restart ceph-mon@ceph-object-01.service        
    systemctl restart ceph-osd@0.service                     
    systemctl restart ceph-radosgw@rgw.ceph-object-01.service
    
    

    相关文章

      网友评论

        本文标题:【ceph】管理命令

        本文链接:https://www.haomeiwen.com/subject/qjfzcqtx.html