Ceph Calamari Installation (Ubuntu14.04)

Source: Internet
Author: User
Tags saltstack
1. Overview

The entire deployment architecture of calamari can be simplified to the following illustration, including the client and calamari systems. The calamari system consists of the calamari server and the agents running on the Ceph cluster. The agent keeps sending data to the Calamari server, which stores the data in the database. The client can connect the Calamari server through the HTTP protocol and show the State and information of the Ceph cluster system.

2. Service-Side installation

1) Installation Saltstack

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:saltstack/salt
sudo apt-get Update
sudo apt-get install salt-master=0.17.5+ds-1
sudo apt-get install salt-minion=0.17.5+ds-1
2) Installation Dependency pack
sudo apt-get update && sudo apt-get install-y apache2 \
Libapache2-mod-wsgi Libcairo2 Supervisor Python-cairo Libpq5 PostgreSQL
3) Installation Calamari
sudo dpkg-i calamari-server*.deb calamari-clients*.deb
4 initialization of the service-side
sudo calamari-ctl initialize
Print the following, and note that the login password is entered.
[INFO] Loading configuration.
[INFO] Starting/enabling Salt ...
[INFO] Starting/enabling Postgres ...
[INFO] Initializing database ...
[INFO] Initializing Web Interface ...
[INFO] You are now being prompted for login details for the administrative user account. This are the account you'll use to log into the Web interface once setup is complete. Username (leave blank to use ' root '): Email address:karan.singh@csc.fi Password:password (again): Superuser created Essfully. [INFO] Starting/enabling Services ...
[INFO] Restarting services ...-more at:http://ceph.com/category/calamari/#sthash. Qutbu0mx.dpuf

When the initialization is complete, the client opens the browser and the address is accessible. However, the Ceph cluster is not configured at this time and prompts for ceph cluster configuration. As shown in the following figure.

3. Agent Installation

1 log in one of the Ceph cluster machines (assuming that the Ceph cluster is Ubuntu), install the monitoring service.

sudo dpkg-i diamond_3.4.67_all.deb
2 Create the default monitoring configuration file
sudo mv/etc/diamond/diamond.conf.example/etc/diamond/diamond.conf
3) Installation of Salt-minion service
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:saltstack/salt
sudo apt-get Update
sudo apt-get install salt-minion=0.17.5+ds-1
4) in /etc/hostsAdd Calamari server Mapping to File
/etc/hosts
...
...
192.168.26.10 Ceph-calamari

5) Modify the Salt-minion configuration file /etc/salt/minion, point master to the Calamari server
/etc/salt/minion

...
Master:ceph-calamari
...
6) Restart Service
sudo service salt-minion restart
sudo service diamond restart

Repeat the above steps on all ceph cluster machines.

After installation, the effect is as follows:


4. Problems that may be encountered

IOError: [Errno] Permission denied: '/var/log/calamari/cthulhu.log '
Access rights issue, you need to change the permissions for the file, Www-data

This article originates from http://www.itworld123.com/2016/08/29/ceph-calamari%e5%ae%89%e8%a3%85/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.