Pcs is a Corosync and Pacemaker configuration tool. It permits users to easily view, modify and create Pacemaker based clusters. Pcs contains pcsd, a pcs daemon, which operates as a remote server for pcs and provides a web UI.
These are the runtime dependencies of pcs and pcsd:
It is also recommended to have these:
Apart from the dependencies listed above, these are also required for installation:
During the installation, all required rubygems are automatically downloaded and compiled.
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
Currently this is built into Fedora, RHEL and its clones and Debian and its derivates.
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 on all nodes.
# pcs host auth node1 node2 node3 -u hacluster
Create a cluster
To create a cluster run the following command on one node (replacing
cluster_name with a name of your cluster and node1, node2, node3 with a list
of nodes in the cluster). --start
and --enable
will start your cluster
and 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 of the cluster.
# pcs status
Add cluster resources
After this you can add stonith agents and resources:
# pcs -h stonith create
and
# pcs -h resource create
Apart from command line interface you can use web user interface to view and configure your cluster. To access the web UI open a browser to the following URL (replace nodename with an address of your node):
https://nodename:2224
Login as the hacluster
user.
ClusterLabs website is an excellent place to learn more about Pacemaker clusters.
If you have any bug reports or feature requests please feel free to open a github issue on the pcs project.
Alternatively you can use ClusterLabs users mailinglist which is also a great place to ask Pacemaker clusters related questions.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
1. 开源生态
2. 协作、人、软件
3. 评估模型