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