Used in Ceph kubernetes

Source: Internet
Author: User

  

1. On the management node, go to the directory where you just created the drop profile, and use Ceph-deploy to perform the following steps

mkdir  /opt/cluster-/opt/cluster-cephcephnew master1 master2 Master3

2. Installing Ceph

[email protected] ~]# Yum install--downloadonly--downloaddir=/tmp/~]# yum localinstall-c-y--disablerepo=*/ Tmp/ceph/*. RPM

Configure initial monitor (s), and collect all keys

# Please be sure to ceph-cluster directory [[email protected] ceph-cluster]# ceph-deploy Mon create-initial

Initializing the CEPH.OSD node

~]# mkdir-p/data/ceph-~]# chown ceph.ceph/data/ceph-osd/-~]# mkdir-p/data/ceph-~]# chown ceph.ceph/data/ceph-osd/-R


[[email protected] ~]# mkdir-p/data/ceph-osd[[email protected] ~]# chown ceph.ceph/data/ceph-osd/-R 
[[email protected] ~]# mkdir-p/data/ceph-osd[[email protected] ~]# chown ceph.ceph/data/ceph-osd/-R 
create Osd:[[email protected] ceph-cluster]# ceph-deploy OSD prepare node1:/data/ceph-osd node2:/data/ceph- OSD   node3:/data/ceph-osd    node4:/data/ceph-osd activate OSD [[email protected] ceph-cluster]# ceph-deploy OSD Activate Node1:/data/ceph-osd node2:/data/ceph-OSD  node3:/data/ceph-osd    node4:/data/ceph-osd
use Ceph-deploy to copy the configuration file and the admin key to the management node and the Ceph node so that you do not have to specify the monitor address and ceph.client.admin.keyring every time you execute the ceph command line [ [Email protected] ceph-cluster]# ceph-Deploy admin master1  master2  master3  node1  node2  Node3   +r/etc/ceph/ceph.client.admin.keyring (all machines) if the configuration file changes, you need to synchronize the configuration file to all nodes [[email protected] ceph-cluster]#  ceph-deploy  --overwrite-conf  admin master1 master2 master3 node1  node2 node3  node4

Used in Ceph kubernetes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.