ceph crush cluster map Basic Operation

Personal blog home page (Click for more details) - https://blog.51cto.com/11495268
personal micro-channel public number (click to see details) - https://blog.51cto.com/11495268/2401194

    

1 Introduction

    After understanding the basic concept ceph map crush cluster, the cluster map described herein Basic Operation
    

2、cluster map

    Default default when you create a cluster node
    

2.1 bucket to create

# ceph osd crush add-bucket {bucket_name} {type}

    

2.2 bucket Add / Remove

2.2.1 bucket add

## source_bucket_name:需要 移动的 bucket
## aim_bucket_name:目标 bucket,即将 移动的 bucket 移动到 此 bucket 下
# ceph osd crush move {source_bucket_name} {type}={aim_bucket_name}

    

2.2.2 bucket removed

## remove 所有 节点下 只要包含 bucket_name,该 bucket_name  均会被 移除
# ceph osd crush remove {bucket_name}

    

2.3 Add osd

# ceph osd crush add osd.$osd {weight_val} {type}={aim_bucket_name}

    

3, bucket remaining operations

    General to create, add bucket and osd can be done to build a cluster map, and if the latter need to modify the cluster map can also be done (if the system is already on-line data by the coexistence of a large number of related operations, too much is not recommended to modify the existing cluster map tree structure to prevent a large amount of data migration operation)
    

3.1 bucket rename

# ceph osd crush rename-bucket {source_bucket_name} {aim_bucket_name}

    

3.2 bucket delete

# ceph osd crush rm {bucket_name}

Guess you like

Origin blog.51cto.com/11495268/2425818