Ceph distributed storage installation
The preface of Ceph distributed storage installation refers to the quick installation in the official documentation, combined with the domestic environment, modify the relevant installation source to domestic mirror source to improve the installation speed.
Http://docs.ceph.org.cn/start/
Add Ali Cloud YUM source mv / etc/yum.repos.d/CentOS-Base.repo / etc/yum.repos.d/CentOS-Base.repo.backupcurl-o / etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.reposed-I-e'/ mirrors.cloud.aliyuncs.com/d'-e'/ mirrors.aliyuncs.com/d' / etc/yum.repos.d/CentOS-Base to the basic system environment. Repo update system yum update-y```# # turn off the firewall, SELinux
Systemctl stop firewalld & & systemctl disable firewalld
Setenforce 0
Sed-I's / ^ Selinux =. * / SELINUX=disabled/' / etc/selinux/config
# add hosts hostname resolution (cluster uses four virtual machines) add all four machines
Echo "192.168.5.191 admin-node
192.168.5.192 node1
192.168.5.193 node2
192.168.5.194 node3 "> > / etc/ hosts```
Install NTP service to avoid failure caused by clock drift yum install ntp ntpdate ntp-doc-y ```# keyless login between admin-node # and node1 node2 node3
Ssh-keygen # generate key file ```
Add to three node
Hostname= (admin-node node1 node2 node3) for i in ${hostname [*]}; do echo yes | ssh-copy-id-I id_rsa.pub root@$i Add done to China University of Science and Technology Source Otherwise, ceph-deploy installation of ceph will lack the domestic source for adding Ceph to yum install-y yum-utils & & yum-config-manager-- add-repo http://mirrors.ustc.edu.cn/epel/7/x86_64/ & & yum install-- nogpgcheck-y epel-release & & rpm--import / etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 & & rm-rf / etc/yum.repos.d/mirrors.ustc.edu.cn_epel* Install ceph-deploy deployment tools cat > > / etc/yum.repos.d/ceph.repo