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

浙公网安备 33010602011771号