• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

pcs: Pcs is a Corosync and Pacemaker configuration tool. It permits users to eas ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

pcs

开源软件地址:

https://gitee.com/openkylin/pcs

开源软件介绍:

PCS - Pacemaker/Corosync Configuration System

Pcs is a Corosync and Pacemaker configuration tool. It permits users toeasily view, modify and create Pacemaker based clusters. Pcs contains pcsd, apcs daemon, which operates as a remote server for pcs and provides a web UI.


Pcs Versions

There are two pcs branches currently:

  • master Build Status
    • This is where pcs-0.10 lives.
    • Clusters running Pacemaker 2.x on top of Corosync 3.x are supported.
    • The main development happens here.
  • pcs-0.9 Build Status
    • Clusters running Pacemaker 1.x on top of Corosync 2.x or Corosync 1.x withCMAN are supported.
    • This branch is in maintenance mode - bugs are being fixed but only a subsetof new features lands here.

Dependencies

These are the runtime dependencies of pcs and pcsd:

  • python 3.6+
  • python3-lxml
  • python3-pycurl
  • python3-setuptools
  • python3-pyOpenSSL (python3-openssl)
  • python3-tornado
  • ruby 2.2.0+
  • killall (package psmisc)
  • openssl
  • corosync 3.x
  • pacemaker 2.x

It is also recommended to have these:

  • python3-clufter
  • liberation fonts (package liberation-sans-fonts or fonts-liberation orfonts-liberation2)
  • overpass fonts (package overpass-fonts)

Installation from Source

Apart from the dependencies listed above, these are also required forinstallation:

  • python development files (package python3-devel)
  • ruby development files (package ruby-devel)
  • rubygems
  • rubygem bundler (package rubygem-bundler or ruby-bundler or bundler)
  • gcc
  • gcc-c++
  • FFI development files (package libffi-devel or libffi-dev)
  • fontconfig
  • printf (package coreutils)
  • redhat-rpm-config (if you are using Fedora)
  • wget (to download bundled libraries)

During the installation, all required rubygems are automatically downloaded andcompiled.

To install pcs and pcsd run the following in terminal:

# tar -xzvf pcs-0.10.1.tar.gz# cd pcs-0.10.1# make install# make install_pcsd

If you are using GNU/Linux with systemd, it is now time to:

# systemctl daemon-reload

Start pcsd and make it start on boot:

# systemctl start pcsd# systemctl enable pcsd

Packages

Currently this is built into Fedora, RHEL and its clones and Debian and itsderivates.


Quick Start

  • Authenticate cluster nodes

    Set the same password for the hacluster user on all nodes.

    # passwd hacluster

    To authenticate the nodes, run the following command on one of the nodes(replacing node1, node2, node3 with a list of nodes in your future cluster).Specify all your cluster nodes in the command. Make sure pcsd is running onall nodes.

    # pcs host auth node1 node2 node3 -u hacluster
  • Create a cluster

    To create a cluster run the following command on one node (replacingcluster_name with a name of your cluster and node1, node2, node3 with a listof nodes in the cluster). --start and --enable will start your clusterand configure the nodes to start the cluster on boot respectively.

    # pcs cluster setup cluster_name node1 node2 node3 --start --enable
  • Check the cluster status

    After a few moments the cluster should startup and you can get the status ofthe cluster.

    # pcs status
  • Add cluster resources

    After this you can add stonith agents and resources:

    # pcs -h stonith create

    and

    # pcs -h resource create

Accessing the Web UI

Apart from command line interface you can use web user interface to view andconfigure your cluster. To access the web UI open a browser to the followingURL (replace nodename with an address of your node):

https://nodename:2224

Login as the hacluster user.


Further Documentation

ClusterLabs website is an excellent place to learnmore about Pacemaker clusters.


Inquiries

If you have any bug reports or feature requests please feel free to open agithub issue on the pcs project.

Alternatively you can use ClusterLabsusers mailinglistwhich is also a great place to ask Pacemaker clusters related questions.


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap