In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Update time: 20170803 (the link to the network disk was swallowed before)
Preface
All kinds of searches were fruitless, and the official documents were based on Ubuntu. There was no clear centos7 document suitable for novice installation. The test environment had been reversed twice before. When the cluster officially ran out, it went crazy one night and insisted on doing it, and the god ignored it.
Environment
Existing: CentOS 7.3 (Infrastructure Server) Ceph 10.2.7 (jewel)
Post deployment: Calamari 1.3.3
Introduction
Note: the introduction and rpm package draw lessons from http://www.zphj1987.com, the blog of Moda God.
The main components included in Calamari are calamari-server;romana;salt-minion;salt-master;diamond.
The respective roles of these modules:
Calamari-server provides a place to interact with the cluster and encapsulates its own API for centralized management. This only needs to be installed on a certain machine in the cluster, or it can be installed independently.
Romana is the original calamari-client. This is called client, which is actually a web interface. This is better called calamari-web. Now it has been renamed romana. This only needs to be installed on a certain machine in the cluster, or it can be installed independently. This needs to be installed on the same machine as calamari-server.
Salt-master is a management tool that can manage other machines in batches and manage machines with salt-minion installed. In the cluster, this is also installed with calamari-server.
Salt-minion is installed on all nodes of the cluster. It receives instructions from salt-master to operate on the machines of the cluster, and feedback some information to salt-master.
Diamond this is the collection control of the monitoring information of the system, which provides the monitoring of the hardware information of the cluster and the monitoring of the information of the cluster. The data is sent to the romana machine, and the data is collected by the carbon on the romana and stored in the database in the machine.
Installation
Description (must see!)
Node situation
Software needs to be installed
Calamari server
Calamri-server romana salt-master
Cluster node
Salt-minion diamond
If you install calamari on a cluster node, all of the above need to be installed
The following admin are all hostname of calamari and salt-master server.
This article does not use ceph-deploy calamari connect node installation.
This step is to install salt-minion and diamond software and create corresponding directory files through your own observation.
[because the fixed version is installed manually, it can be discarded. You can create the directory file manually, see below]
= = calamari end = = 1, package decompression
Download and upload link: http://pan.baidu.com/s/1kVGCE5h password: 3tjb
# mkdir calamari & & cd calamari
# unzip centosjewel.zip
# cd centosjewel/
2. Add the repo file of saltstack
# mv saltstack-rhel7.repo / etc/yum.repos.d/
# yum clean all; yum repolist
3. Install calamari romana locally
# yum localinstall calamari-server-1.3.3-jewel.el7.centos.x86_64.rpm romana-1.2.2-36_gc62bb5b.el7.centos.x86_64.rpm
4. Adjust directory permissions
# chmod 777-R / var/log/calamari/
# chmod 777-R / opt/calamari/
5. Uninstall and install salt (the repo file of version 2015.8.1 has been updated, so don't bother)
Uninstall the salt version where bug exists and install the appropriate salt version (calamari dependency)
# rpm-e-nodeps salt-minion salt-master salt
# yum localinstall salt-2015.8.1-1.el7.noarch.rpm
# yum localinstall salt-master-2015.8.1-1.el7.noarch.rpm
# yum localinstall salt-minion-2015.8.1-1.el7.noarch.rpm
You need to configure the monitored end before continuing calamari-related operations!
= = monitored end (cluster node) = 1. Install salt-minion diamond1.1 and add the repo file of saltstack
# mv saltstack-rhel7.repo / etc/yum.repos.d/
# yum clean all; yum repolist
1.2. Installation
# yum localinstall salt salt-minion
2. Configure salt-minion
2.1.Modification of minion files (all admin are hostname of calamari)
# sed-I 's/#master: salt/master: admin/' / etc/salt/minion
2.2. add minion.d additional directory and calamari.conf file
# mkdir / etc/salt/minion.d/
# echo 'master: admin' > / etc/salt/minion.d/calamari.conf
# systemctl restart salt-minion
# systemctl enable salt-minion
3. Configure diamond
Point the host to the calamari server hostname
# cd / etc/diamond/ & & cp diamond.conf.example diamond.conf
# sed-I'/ ^ host/s/graphite/admin/' / etc/diamond/diamond.conf
# systemctl restart diamond
# systemctl enable diamond
Note: systemctl does not recognize the diamond service on some machines. You can add it after ensuring that it has been installed.
Chkconfig-add diamond
= = Calamari side (continued) = 6, salt-master related
!!! After the deployment of the monitored end (cluster node), execute the following command!
6.1 restart
# systemctl restart salt-master
6.2Managing salt-minion nodes
# salt-key-L lists discovered nodes
# salt-key-An allows all nodes to join
Change from Unaccepted Keys to Accepted keys after success
6.3 Detection node
# salt'* 'test.ping to detect linkability
If the following error occurs, check whether the master entry in the client / etc/salt/minion.d/calamari.conf is the hostname on the Calamari side
# salt'* 'ceph.get_heartbeats outputs ceph cluster information (too much is not posted)
7. Initialize calamari configuration
# calamari-ctl initialize
User name and password for the administrative interface
# chmod 777-R / var/log/calamari/
# chmod 777-R / opt/calamari/
8. Web access and problems
After all the above steps are successful, enter the calamari server IP login (default port 80) in the browser address bar.
Error 1 (500)
Solution: clean up the configuration and initialize it again
# calamari-ctl clear-yes-i-am-sure
# calamari-ctl initialize (no interaction)
Error 2:
Solution:
Restart the salt-minion and diamond of the monitored side
And salt-master on the server side
Note: salt-minion must have a mon node, otherwise this error will also be reported.
Effect picture
Home page
PG and Osd statu
Cluster graph
Node monitoring
OSD management
Only by persevering can we enjoy the joy of success!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.