depoy ceph on one host/server
2015-08-27 15:28
288 查看
1. Download ceph souce code.
#git clone https://github.com/ceph/ceph.git
2. Omit subscription-manager
# diff install-deps.sh install-deps.sh_bak
67c67
< # $SUDO subscription-manager repos --enable=rhel-$MAJOR_VERSION-server-optional-rpms
---
> $SUDO subscription-manager repos --enable=rhel-$MAJOR_VERSION-server-optional-rpms
3. Install ceph
#./install-deps.sh
#./run-make-check.sh
4. Start ceph
# cd src/
# ./vstart.sh -d -n -X /* -x enable auth -X disable authentication
# ./ceph health
# ./ceph osd pool stats
# ./ceph osd pool stats cephfs_data
# ./rados df
# ./rados mkpool mypool
# ./ceph osd pool create qemu-kvm-pool 128 128
5. Disable authentication
# diff ceph.conf ceph.conf_bak
1c1
< ; generated by vstart.sh on 2015年 07月 06日 星期一 19:45:59 CST
---
> ; generated by vstart.sh on 2015年 07月 06日 星期一 18:49:04 CST
3c3
< fsid = c80c25ea-b0f8-4da8-8bc9-af0c7500f376
---
> fsid = c429a053-c637-4da2-96c7-787f7ad5a1c4
18c18
< auth supported = none
---
> auth supported = cephx
# restart ceph
6. Create image
# ./rados -p qemu-kvm-pool ls
# rbd ls qemu-kvm-pool -m 10.66.9.236
# qemu-img create -f raw rbd:qemu-kvm-pool/test.raw:mon_host=10.66.9.236 3G
#git clone https://github.com/ceph/ceph.git
2. Omit subscription-manager
# diff install-deps.sh install-deps.sh_bak
67c67
< # $SUDO subscription-manager repos --enable=rhel-$MAJOR_VERSION-server-optional-rpms
---
> $SUDO subscription-manager repos --enable=rhel-$MAJOR_VERSION-server-optional-rpms
3. Install ceph
#./install-deps.sh
#./run-make-check.sh
4. Start ceph
# cd src/
# ./vstart.sh -d -n -X /* -x enable auth -X disable authentication
# ./ceph health
# ./ceph osd pool stats
# ./ceph osd pool stats cephfs_data
# ./rados df
# ./rados mkpool mypool
# ./ceph osd pool create qemu-kvm-pool 128 128
5. Disable authentication
# diff ceph.conf ceph.conf_bak
1c1
< ; generated by vstart.sh on 2015年 07月 06日 星期一 19:45:59 CST
---
> ; generated by vstart.sh on 2015年 07月 06日 星期一 18:49:04 CST
3c3
< fsid = c80c25ea-b0f8-4da8-8bc9-af0c7500f376
---
> fsid = c429a053-c637-4da2-96c7-787f7ad5a1c4
18c18
< auth supported = none
---
> auth supported = cephx
# restart ceph
6. Create image
# ./rados -p qemu-kvm-pool ls
# rbd ls qemu-kvm-pool -m 10.66.9.236
# qemu-img create -f raw rbd:qemu-kvm-pool/test.raw:mon_host=10.66.9.236 3G
相关文章推荐
- 测试测试
- 基于zepto使用swipe.js制作轮播图demo
- 利用DreamweaverCS5制作一个含有动态标题的教程
- 怎么使用dreamweaver制作网页教程 dw建站设计网页
- XSS 和 CSRF 攻击
- eclipse less编译时错误处理
- HTML5 AJAX跨域请求
- hdu5296(倍增lca)
- mysql挿入数据中文乱码问题
- 链式队列
- 单链表的插入和遍历 包括头插入和尾插入
- hdu5296(倍增lca)
- Linux系统——提高编译速度的方法
- 【转】C#模拟http 发送post或get请求
- DTD Content model definitions
- java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
- Ubuntu无法进入mysql,报ERROR 2002 (HY000): Can't connect to local MySQL server through socket …错误
- intel驱动包下载
- HTML5之自定义标签(之前都没用过这么6的技术)
- linux进程——后台运行的方法