本文主要是介绍ceph 创建/删除存储池、设置存储池副本数、设置查看存储池配置 pool 配额,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
1. 设置存储池副本数
#ceph osd pool get data size
#ceph osd pool set data size 3
2. 打印存储池列表
#ceph osd lspools
3. 创建 删除 存储池
创建pool
# ceph osd pool create testPool 64重命名pool
# ceph osd pool rename testPool amizPool获取pool 副本数
# ceph osd pool get amizPool size
设置pool 副本数
# ceph osd pool set amizPool size 3获取pool pg_num/pgp_num
# ceph osd pool get amizPool pg_num
# ceph osd pool get amizPool pgp_num
设置pool pg_num/pgp_num
# ceph osd pool set amizPool pg_num 128
# ceph osd pool set amizPool pgp_num 128删除存储池
# ceph osd pool delete amizPool amizPool --yes-i-really-really-mean-it 删除池提示错误
Error EBUSY: pool 'testpool' is in use by CephFS
# ceph mds remove_data_pool testpool
# ceph osd pool delete testpool testpool --yes-i-really-really-mean-it
4. 设置查看存储池pool 配额
查看存储池pool 配额
# ceph osd pool get-quota poolroom1quotas for pool 'poolroom1':max objects: N/Amax bytes : 6144MB # 存储池pool配额 6G
参考:
1.Ceph Pool操作总结 http://int32bit.me/2016/05/19/Ceph-Pool操作总结/
2.设置pool配额
这篇关于ceph 创建/删除存储池、设置存储池副本数、设置查看存储池配置 pool 配额的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!