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] Centos 7.1 install Ceph

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

I. Introduction to Environment

Environment: Three Centos 7.1 mainframes

Role IPadmin/node1192.168.209.100node2192.168.209.101node3192.168.209.102 Second, pre-installation preparation (all hosts) 2.1 Turn off firewall and selinux Turn off SELINUX sed-i's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/configsetenforce 0 Turn off firewall systemctl stop firewalld.service systemctl disable firewalld.service 2.2 Modify file vi /etc/hosts192.168.209.100admin192.168.209.100node1192.168.209.101node2192.168.209.102 Node3 Test: [root@localhost /]# ping node1PING node1 (192.168.209.100) 56(84) bytes of data.64 bytes from admin (192.168.209.100): icmp_seq=1 ttl=64 time=0.096 ms^C--- node1 ping statistics ---1 packets transmitted, 1 received, 0% packet loss, time 0msrtt min/avg/max/mdev = 0.096/0.096/0.096/0.000 ms[root@localhost /]# ping node2PING node2 (192.168.209.101) 56(84) bytes of data.64 bytes from node2 (192.168.209.101): icmp_seq=1 ttl=64 time=0.317 ms^C--- node2 ping statistics ---1 packets transmitted, 1 received, 0% packet loss, time 0msrtt min/avg/max/mdev = 0.317/0.317/0.317/0.000 ms[root@localhost /]# ping node3PING node3 (192.168.209.102) 56(84) bytes of data.64 bytes from node3 (192.168.209.102): icmp_seq=1 ttl=64 time=0.323 ms^C--- node3 ping statistics ---1 packets transmitted, 1 received, 0% packet loss, time 0msrtt min/avg/max/mdev = 0.323/0.323/0.000 ms[root@localhost /]#2.3 Modify time zone and install NTP Modify time zone cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime Install NTPyum -y install ntpsystemctl enable ntpdsystemctl start ntpdntpstat2.4 Install epel repository rpm -Uvh https://dl.fedoraproject.org/pub/epel/7Server/x86_64/Packages/e/epel-release-7-11.noarch.rpm This package is available at the time of writing this blog post. It may fail after a while. If it fails, please follow this path to find the package released. It may not be 7-11, but it doesn't matter. After installing this package, the later installation is generally no problem. 2.5 Before adding the yum source of ceph, please confirm whether mirrors.163.com/ceph/rpm-hammer/el7/x86_64/exists. If it does not exist, then you need to modify the URL vi ceph.repo[ceph]name=Ceph noarch packagesbaseurl=http://mirrors.163.com/ceph/rpm-hammer/el7/x86_64/enabled =1gpgcheck=1type= rpm-mdgpkey =http://www.//mirrors.163.com/ceph/keys/release.asc III. install ceph 3.1 install ceph (admin) yum -y update && yum -y install --release hammer ceph ceph ceph-deploy 3.2 install ceph (remaining nodes) yum -y update && yum -y install --release hammer ceph 3.3 allow password-free SSH login (admin) generate key pair (all the way to enter) ssh-keygen copy public key to remaining nodes ssh-copy-id root@node1ssh-copy-id root@ node2ssh-copy-id root@node3 test, ssh to each node, see if you need to enter a password four, installation is complete to verify the installation effect command line input ceph press Tab key is not uniform, if the rest of the commands appear, it means that the installation has been completed! [root@localhost /]# cephceph ceph-dencoder ceph-monceph-authtool ceph-deploy ceph-objectstore-toolceph-brag ceph-disk ceph-osdceph-client-debug ceph-disk-activate ceph-post-fileceph-clsinfo ceph-disk-prepare ceph-rbdnamerceph-conf ceph-disk-udev ceph-rest-apiceph-coverage cephfs ceph-runceph-create-keys cephfs-journal-tool ceph-synceph-crush-location cephfs-table-tool ceph-debugpack ceph-mds [root@localhost /]# ceph

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

Internet Technology

Wechat

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

12
Report