您的位置:首页 > 其它

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: