首页 > 其他 > 详细

ceph-deploy 在下面ceph-nodes执行的命令

时间:2015-12-17 12:51:55      阅读:196      评论:0      收藏:0      [点我收藏+]

1,Running command: env DEBIAN_FRONTEND=noninteractive apt-get -q install --assume-yes ca-certificates

2,Running command: apt-get -q update

3,Running command: env DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt-get -q -o Dpkg::Options::=--force-confnew --no-install-recommends --assume-yes install -- ceph ceph-mds ceph-common ceph-fs-common gdisk

4,Running command: ceph --version

技术分享

技术分享

技术分享

技术分享

技术分享

技术分享

技术分享

expanding your cluster
once you have a basic cluster up and running,the next step is to expand cluster.add a ceph osd and a ceph metadata server to node1
then add a ceph monitor to node2 and node3 to establish q quorum of ceph mnitor

node1
mon.node1
osd.2
mds.node1

node2
osd.0
mon.node2

node3
osd.1
mon.node3

技术分享

技术分享

技术分享

技术分享

Ceph storage retrieving object data
to storage object data in the ceph storage cluster, a ceph client must
set an object name
specify a pool
ceph client retrieves the latest cluster map and the crrush algorithm calcuates how to map the object to placement group,and then calculates how to assign the placement group to a ceph osd daemon dynamically to find the object location,all you need is the object name and the pool name
ceph osd map {poolname} {object-name}
osd object storage data
mds  metadata server
Exercise locate an object
as an exercise create an object,specify an object name,a path to a test file containing some object data and a pool name using the rados put command onn the command line
技术分享

技术分享

技术分享

技术分享

identify the object location
ceph osd map {pool-name} {object-name}
ceph osd map data test-object-1
ceph should output the object‘s location
remove the test object,simple

技术分享

技术分享

技术分享

技术分享

技术分享

use the block device by creating a file system on ceph-client node

技术分享

配置块设备configure a block device
1,创建块设备镜像create a block device image
rbd create foo --size 4096 [-m {mon-IP}] [-k /path/to/ceph.client.admin.keyring]
2,映射镜像到块设备map the image to a block device
rbd map foo --name client.admin [-m {Mon-IP}] [-k /path/to/ceph.client.admin.keyring]
3,使用块设备创建文件系统use the block device by creating a file system
技术分享

技术分享

技术分享

技术分享

 

ceph-deploy 在下面ceph-nodes执行的命令

原文:http://www.cnblogs.com/ruiy/p/5053424.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!