欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

ceph 单节点部署

程序员文章站 2022-07-13 09:01:30
...

以node1为例,在这个节点上面安装mon和osd两种角色

<!-- lang: shell -->
ceph-deploy install  node1 
ceph-deploy new node1
echo "osd crush chooseleaf type = 0" >> ceph.conf
echo "osd pool default size = 1" >> ceph.conf
ceph-deploy mon create-initial node1
ceph-deploy disk zap node1:/dev/sdb node1:/dev/sdc node1:/dev/sdd
ceph-deploy osd prepare  node1:/dev/sdb node1:/dev/sdc node1:/dev/sdd

转载于:https://my.oschina.net/diluga/blog/391645