我知道crm实用命令已经成为人们管理集群的首选方法。现在,它被废弃了,我们被告知要使用pcs实用程序命令,这些命令应该做我们过去使用crm时所做的所有事情。
现在,我麻烦的是找到个人电脑的等效命令;
crm node attribute <node_name> set <resource_name> <some_parameters>。
如果我尝试使用pcs节点,则没有任何这样的命令集可用。
我在CentOS 7.2版本&使用Percona主从集群。
发布于 2018-01-02 16:27:23
真的吗?我在PCS版本0.9.158 (CentOS 7.4)中有:
# pcs node attribute --help
Usage: pcs node <command>
attribute [[<node>] [--name <name>] | <node> <name>=<value> ...]
Manage node attributes. If no parameters are specified, show attributes
of all nodes. If one parameter is specified, show attributes
of specified node. If --name is specified, show specified attribute's
value from all nodes. If more parameters are specified, set attributes
of specified node. Attributes can be removed by setting an attribute
without a value.而且,crmsh也不受欢迎。它仍然是一个活跃的项目:https://github.com/ClusterLabs/crmsh
https://unix.stackexchange.com/questions/413934
复制相似问题