、查看配置信息
crm(live)# configure
crm(live)configure# show
node node1
node node2
property cib-bootstrap-options: \
dc-version=1.1.-.el6_8.-70404b0 \
cluster-infrastructure="classic openais (with plugin)" \
expected-quorum-votes= 、因为无stonith设备,所以禁用stonith,stonith的值为布尔类型,true和false
crm(live)configure# property stonith-enabled=false 、提交配置
crm(live)configure# commit 、介绍node子命令
crm(live)configure# cd .. #返回上一级
crm(live)# node
crm(live)node# help attribute Manage attributes
clearstate Clear node state #清理当前node的状态信息
delete Delete node #删除节点
fence Fence node
maintenance Put node into maintenance mode
online Set node online #将当前节点重新上线,standby转为online
ready Put node into ready mode
server Show node hostname or server address
show Show node #显示当前所有节点
standby Put node into standby #将当前节点转为备用
status Show nodes' status as XML
status-attr Manage status attributes
utilization Manage utilization attributes cd Navigate the level structure
help Show help (help topics for list of topics)
ls List levels and commands #指明级别和子命令列出当前可用节点
quit Exit the interactive shell
up Go back to previous level 、介绍resource子命令
crm(live)# resource
crm(live)resource# help ban Ban a resource from a node #禁止资源在一个节点
cleanup Cleanup resource status #清理资源状态
constraints Show constraints affecting a resource #显示影响资源的约束
demote Demote a master-slave resource #降级主从资源
failcount Manage failcounts #管理员错误状态统计数据
locate Show the location of resources #显示资源的位置
maintenance Enable/disable per-resource maintenance mode #启用/禁用每个资源维护模式
manage Put a resource into managed mode #资源定义为可被管理状态
meta Manage a meta attribute #管理meta 属性
move Move a resource to another node #将资源移动到另一个节点
operations Show active resource operations #显示活动的资源的操作
param Manage a parameter of a resource #管理资源参数
promote Promote a master-slave resource
refresh Refresh CIB from the LRM status
reprobe Probe for resources not started by the CRM
restart Restart resources #重启一个资源
scores Display resource scores #查看资源
secret Manage sensitive parameters
start Start resources #开启一个资源
status Show status of resources #资源当前状态
stop Stop resources #停止一个资源
trace Start RA
unmanage Put a resource into unmanaged mode #资源定义为不可被管理状态
untrace Stop RA tracing
utilization Manage a utilization attribute 、介绍资源代理RA子命令
crm(live)# ra
crm(live)ra# help
classes List classes and providers #列出资源代理类型
info Show meta data for a RA #显示资源代理的帮助信息
list List RA for a class (and provider) #列出资源代理类型中所拥有的资源代理
providers Show providers for a RA and a class
validate Validate parameters for RA 、介绍configure子命令
node define a cluster node #定义一个集群节点
primitive define a resource #定义资源
monitor add monitor operation to a primitive #对一个资源添加监控选项(如超时时间,启动失败后的操作)
group define a group #定义一个组类型(包含一个或多个资源,这些资源可通过“组”这个资源统一进行调度)
clone define a clone #定义一个克隆类型(可以在同一个集群内的多个节点运行多份克隆)
ms define a master-slave resource #定义一个主从类型(集群内的节点只能有一个运行主资源,其它从的做备用)
rsc_template define a resource template #定义一个资源模板
location a location preference #定义位置约束优先级(默认运行于那一个节点(如果位置约束的值相同,默认倾向性那一个高,就在那一个节点上运行))
colocation colocate resources #排列约束资源(多个资源在一起的可能性)
order order resources #顺序约束,定义资源在同一个节点上启动时的先后顺序
rsc_ticket resources ticket dependency
property set a cluster property #设置集群属性
rsc_defaults set resource defaults #设置资源默认属性(粘性)
fencing_topology node fencing order #隔离节点顺序
role define role access rights #定义角色的访问权限
user define user access rights #定义用用户访问权限
op_defaults set resource operations defaults #设置资源默认选项
schema set or display current CIB RNG schema
show display CIB objects #显示集群信息库对
edit edit CIB objects #编辑集群信息库对象(vim模式下编辑)
filter filter CIB objects #过滤CIB对象
delete delete CIB objects #删除CIB对象
default-timeouts set timeouts for operations to minimums from the meta-data
rename rename a CIB object #重命名CIB对象
modgroup modify group #改变资源组
refresh refresh from CIB #重新读取CIB信息
erase erase the CIB #清除CIB信息
ptest show cluster actions if changes were committed
rsctest test resources as currently configured
cib CIB shadow management
cibstatus CIB status management and editing
template edit and import a configuration from a template
commit commit the changes to the CIB #将更改后的信息提交写入CIB
verify verify the CIB with crm_verify #CIB语法验证
upgrade upgrade the CIB to version 1.0
save save the CIB to a file #将当前CIB导出到一个文件中(导出的文件存于切换crm 之前的目录)
load import the CIB from a file #从文件内容载入CIB

crmsh语法的更多相关文章

  1. Corosync+Pacemaker+crmsh构建Web高可用集群

    一.概述: 1.1 AIS和OpenAIS简介 AIS应用接口规范,是用来定义应用程序接口(API)的开放性规范的集合,这些应用程序作为中间件为应用服务提供一种开放.高移植性的程序接口.是在实现高可用 ...

  2. 高可用集群corosync+pacemaker之crmsh使用(一)

    上一篇博客我们聊了下高可用集群corosync+pacemaker的相关概念以及corosync的配置,回顾请参考https://www.cnblogs.com/qiuhom-1874/p/13585 ...

  3. 高可用集群corosync+pacemaker之crmsh使用(二)

    上一篇博客我们聊到了crmsh的安装以及配置一个资源到corosync+pacemaker高可用集群上的相关命令的用法,回顾请参考https://www.cnblogs.com/qiuhom-1874 ...

  4. 我的MYSQL学习心得(一) 简单语法

    我的MYSQL学习心得(一) 简单语法 我的MYSQL学习心得(二) 数据类型宽度 我的MYSQL学习心得(三) 查看字段长度 我的MYSQL学习心得(四) 数据类型 我的MYSQL学习心得(五) 运 ...

  5. Swift与C#的基础语法比较

    背景: 这两天不小心看了一下Swift的基础语法,感觉既然看了,还是写一下笔记,留个痕迹~ 总体而言,感觉Swift是一种前后端多种语言混合的产物~~~ 做为一名.NET阵营人士,少少多多总喜欢通过对 ...

  6. 探索C#之6.0语法糖剖析

    阅读目录: 自动属性默认初始化 自动只读属性默认初始化 表达式为主体的函数 表达式为主体的属性(赋值) 静态类导入 Null条件运算符 字符串格式化 索引初始化 异常过滤器when catch和fin ...

  7. [C#] 回眸 C# 的前世今生 - 见证 C# 6.0 的新语法特性

    回眸 C# 的前世今生 - 见证 C# 6.0 的新语法特性 序 目前最新的版本是 C# 7.0,VS 的最新版本为 Visual Studio 2017 RC,两者都尚未进入正式阶段.C# 6.0 ...

  8. Velocity初探小结--velocity使用语法详解

    做java开发的朋友一般对JSP是比较熟悉的,大部分人第一次学习开发View层都是使用JSP来进行页面渲染的,我们都知道JSP是可以嵌入java代码的,在远古时代,java程序员甚至在一个jsp页面上 ...

  9. node.js学习(二)--Node.js控制台(REPL)&&Node.js的基础和语法

    1.1.2 Node.js控制台(REPL) Node.js也有自己的虚拟的运行环境:REPL. 我们可以使用它来执行任何的Node.js或者javascript代码.还可以引入模块和使用文件系统. ...

随机推荐

  1. win10自带应用图标显示感叹号无法打开如何解决(详细版)

    现象 今天打开电脑图片时发现系统自带的大多应用都无法运行,这些应用图标上都显示着一个感叹号, 应用图标上的颜色被覆上了一层黑色点击后无法运行,自带的应用商店也无法打开,想重装软件都不行这是怎么回事呢? ...

  2. 1006: Hero In Maze

    1006: Hero In Maze 时间限制: 1000 Sec  内存限制: 64 MB提交: 417  解决: 80[提交][状态][讨论版][命题人:外部导入] 题目描述 500年前,Jess ...

  3. 2017.11.20 基于JSP+Servlet+JavaBean实现复数运算(一)

    (7)在Servlet中使用JavaBean Servlet和JavaBean都是类,在Servlet中使用JavaBean有两种方式: 1.在一个Servlet中单独使用JavaBean 一般完成的 ...

  4. matlab 下载

    Obrazy DVD programu Matlab ke stažení Verze 2015b Verze 2015a Verze 2014b Verze 2014a Verze 2012b Ve ...

  5. CSS 滤镜技巧与细节

    本文主要介绍 CSS 滤镜的不常用用法,希望能给读者带来一些干货! 注意:ie不兼容 本文所描述的滤镜,指的是 CSS3 出来后的滤镜,不是 IE 系列时代的滤镜,话不多说,直接开车,语法如下: { ...

  6. malloc动态分配字符串数组“ 一个月内的提醒”

    //输出一个月提醒 #include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX_R ...

  7. v-for的简单实现

    <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title> ...

  8. java对一个int数组进行排序、去重

    思路: 1.使用 HashSet 进行去重 2.将 HashSet 变为 TreeSet 3.使用 TreeSet 进行排序 4.将 Set 变为 Integer 数组 5.将 Integer 数组变 ...

  9. 利用bootstrap实现图片Carousel效果

    引入头文件: <link rel="stylesheet" href="bootstrap.min.css"> <link rel=" ...

  10. IE hack 和手机尺寸

        来自为知笔记(Wiz)