Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Ceph distributed storage installation

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report