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

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

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

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

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

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

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

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

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-deploy 在下面ceph-nodes执行的命令

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

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

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

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
ceph-deploy 在下面ceph-nodes执行的命令

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

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

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

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

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

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

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

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

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

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

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

配置块设备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执行的命令

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

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

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

 

相关文章:

  • 2021-12-25
  • 2021-08-06
  • 2021-05-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-24
  • 2022-12-23
相关资源
相似解决方案