设为首页 收藏本站
查看: 1343|回复: 0

[经验分享] ceph 性能监控calamair在ubuntu14.04上的安装部署

[复制链接]

尚未签到

发表于 2019-2-2 10:42:48 | 显示全部楼层 |阅读模式
  系统版本选择:
  root@calamari-ubuntu:~# lsb_release -a
  No LSB modules are available.

  Distributor>  Description:Ubuntu 14.04.3 LTS
  Release:14.04
  Codename:trusty
  root@calamari-ubuntu:~#
  注:千万不要用14.04.4 LTS
  #ubuntu-server 14.04-tls 手动安装 ceph calamari
  #构建 Calamari Server 安装包
  deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
  deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
  deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
  deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
  deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
  #一. 编译 Calamari Server 的安装包
  #安装依赖包:
  apt-get update
  apt-get install -y git-core curl build-essential openssl libssl-dev ruby-compass rubygems-integration devscripts debhelper
  #编译和安装 Node:
  cd /root/
  git clone https://github.com/nodejs/node.git
  cd node
  ./configure
  make -j4
  make install
  #编译和安装 NPM:
  mkdir /root/npm
  cd /root/npm
  wget --no-check-certificate https://npmjs.org/install.sh
  sh install.sh
  #安装 bower
  npm install -g bower
  #安装 coffee-script
  npm install -g coffee-script
  #安装 grunt-cli
  npm install -g grunt-cli
  #由于 Calamari 不兼容 bootstrap,需要升级 ruby compass ,此步耗时较长
  gem install compass
  #由于 Calamari 不兼容 bootstrap,需要升级 ruby sass
  gem install sass
  #准备编译 Calamari Server 的依赖包:
  apt-get -y install libcairo2-dev python-pip libpq-dev python-dev python-virtualenv ruby-dev
  apt-get install python-msgpack -y
  cd /root
  git clone https://github.com/ceph/calamari.git
  cd calamari
  cd debian
  mv source source.old
  cd ..
  ################以下部分检查一下如果已经更改就不用更改了#########################
  #vim ./repobuild/conf/trusty/upstream.packages
  #vim ./repobuild/conf/wheezy/upstream.packages
  #vim ./repobuild/conf/precise/upstream.packages
  #均把 msgpack-python 修改为 python-msgpack
  ##################################################################################
  #有时可能会卡住,因为会从国外网站下载一些东西,重复执行一下就可以了
  dpkg-buildpackage
  #编译完成后,在~/目录下会看到 calamari-server 的 deb 包(编译过程会下载不少的包,耐心等待)
  ####以下用
  vim calamari/debian/debian/calamari-server.substvars
  修改 python-msgpack-python 为 python-msgpack
  #二. 编译 Calamari Client 的安装包
  #开始构建 calamari clients 的安装包:
  cd /root
  git clone https://github.com/ceph/calamari-clients.git
  cd calamari-clients
  tar zcvf calamari-clients-build-output.tar.gz *
  dpkg-buildpackage
  #编译完成后在~/目录会看到 calamari-clients 的安装包。
  #三. 编译 Diamond 的安装包
  #构建 Diamond 安装包
  cd /root
  git clone https://github.com/ceph/Diamond.git --branch=calamari
  cd Diamond
  apt-get install python-mock python-configobj cdbs python-support -y
  dpkg-buildpackage
  四. 安装 Calamari Server 和 Clients
  #安装 salt-master,因为calamari对salt的版本是有要求的,版本太高图形显示会有问题,所以需要安装以下版本的salt
  sudo apt-get install software-properties-common -y
  sudo add-apt-repository ppa:saltstack/salt2014-7
  sudo apt-get update  -y
  sudo apt-get -y install salt-master
  sudo apt-get -y install salt-minion
  echo "master: 192.168.10.5" >/etc/salt/minion.d/calamari.conf
  /etc/init.d/salt-minion restart
  #安装 Apache 和 PostgreSQL:
  apt-get install -y apache2 libapache2-mod-wsgi libcairo2 supervisor python-cairo libpq5 postgresql
  #安装 Calamari Server:
  cd /root
  dpkg -i calamari-server_1.0.0-1_amd64.deb
  #出现以下提示:
  root@calamari-ubuntu:~# dpkg -i calamari-server_1.0.0-1_amd64.deb
  Selecting previously unselected package calamari-server.
  (Reading database ... 70510 files and directories currently installed.)
  Preparing to unpack calamari-server_1.0.0-1_amd64.deb ...
  Unpacking calamari-server (1.0.0-1) ...
  dpkg: dependency problems prevent configuration of calamari-server:
  calamari-server depends on salt-minion; however:
  Package salt-minion is not installed.
  calamari-server depends on python-twisted; however:
  Package python-twisted is not installed.
  calamari-server depends on python-txamqp; however:
  Package python-txamqp is not installed.
  calamari-server depends on python-sqlalchemy; however:
  Package python-sqlalchemy is not installed.
  calamari-server depends on python-gevent; however:
  Package python-gevent is not installed.
  calamari-server depends on python-msgpack-python; however:
  Package python-msgpack-python is not installed.
  calamari-server depends on python-greenlet; however:
  Package python-greenlet is not installed.
  dpkg: error processing package calamari-server (--install):
  dependency problems - leaving unconfigured
  Errors were encountered while processing:
  calamari-server
  root@calamari-ubuntu:~#
  #安装对应的依赖包:
  apt-get -f install -y
  apt-get install python-msgpack -y
  重新编译:
  #有时可能会卡住,因为会从国外网站下载一些东西,重复执行一下就可以了
  cd calamari
  dpkg-buildpackage
  #编译完成后,在~/目录下会看到 calamari-server 的 deb 包(编译过程会下载不少的包,耐心等待)
  #再次执行:
  dpkg -i calamari-server_1.0.0-1_amd64.deb
  #安装 Calamari Clients:
  dpkg -i calamari-clients_1.0.0-616-gf17527d_all.deb
  初始化 Calamari Server:
  /usr/bin/calamari-ctl initialize
  此时,虽然已经初始化了,但是还未完成得(这个明显是官方有 bug):
  cd   ~/calamari-clients/debian/calamari-clients/login
  make
  cp -r dist /opt/calamari/webapp/content/login
  cd   ~/calamari-clients/debian/calamari-clients/manage
  make
  cp -r dist /opt/calamari/webapp/content/manage
  cd   ~/calamari-clients/debian/calamari-clients/dashboard
  make
  cp -r dist /opt/calamari/webapp/content/dashboard
  cd   ~/calamari-clients/debian/calamari-clients/admin
  make
  cp -r dist /opt/calamari/webapp/content/admin
  此时可以打开 http://ip/,浏览页面:
  五. 在 Ceph 的 mon 和 osd 安装 Diamond 包
  安装 IPVSADM:
  如果需要发送 IOPS 和其他监控信息去 Calamari Server,需要安装 ipvsadm:
  apt-get -y install ipvsadm
  ln -s /sbin/ipvsadm /usr/bin/ipvsadm
  安装 diamond:
  apt-get install python-support
  dpkg -i diamond_3.1.0_all.deb
  二. 安装 salt-master,因为calamari对salt的版本是有要求的,版本太高图形显示会有问题,所以需要安装以下版本的salt
  sudo apt-get install software-properties-common
  sudo add-apt-repository ppa:saltstack/salt2014-7
  sudo apt-get update  -y
  sudo apt-get -y install salt-master
  sudo apt-get -y install salt-minion


运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-670783-1-1.html 上篇帖子: 删除 Ceph 集群异常客户端 watcher 下篇帖子: Ceph vs Swift - 架构剖析
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表