ceph (luminous 版) pool 管理

目标

ceph 下利用命令行对池管理

显示池

参考下面命令可以查询当前 ceph 中 pool 信息

[root@cephsvr-128040 ceph]# rados lspools
volumes
[root@cephsvr-128040 ceph]# ceph osd lspools
1 volumes,
[root@cephsvr-128040 ceph]# ceph osd pool ls
volumes
[root@cephsvr-128040 ceph]# ceph osd pool ls detail
pool 1 'volumes' replicated size 3 min_size 1 crush_rule 0 object_hash rjenkins pg_num 2048 pgp_num 2048 last_change 161 flags hashpspool stripe_width 0 application rbd
				removed_snaps [1~3]

池使用率

参考下面命令

[root@cephsvr-128040 ceph]# rados df
POOL_NAME USED  OBJECTS CLONES COPIES MISSING_ON_PRIMARY UNFOUND DEGRADED RD_OPS RD    WR_OPS WR
volumes   1496M     383      0   1149                  0       0        0  42762 1528M   2422 1485M

total_objects    383
total_used       8476M
total_avail      196T
total_space      196T

你可能感兴趣的:(ceph)