ceph常用命令

ceph常用命令

一、ec pool操作

1.创建文件系统ec pool(纠删码)

1).修改EC规则
ceph osd erasure-code-profile set ec-1 plugin=isa technique=cauchy k=4 m=2 crush-root=default crush-failure-domain=osd directory=/usr/lib64/ceph/erasure-code/ --force
2).创建EC pool
ceph osd pool create ecpool 128 128 erasure

2.查看默认配置

$ceph osd erasure-code-profile get default

3.删除ecpool池

1).打开mon节点的配置文件:
  $ vi /etc/ceph/ceph.conf

2).在配置文件中添加如下内容:
  [mon]
  mon allow pool delete = true

3).重启ceph-mon服务:
  [root@ceph-node1 ceph]# systemctl restart ceph-mon.target

4).执行删除pool命令:
  $ ceph osd pool delete ecpool ecpool –yes-i-really-really-mean-it
  pool ‘ecpool’ removed

 

posted @ 2020-08-13 14:08  yang-leo  阅读(825)  评论(0)    收藏  举报