diff --git a/configuration/index.html b/configuration/index.html index 2615c2d..a4468b7 100644 --- a/configuration/index.html +++ b/configuration/index.html @@ -128,8 +128,6 @@

Example configuration

crm_dtd_dir = /usr/share/pacemaker pe_state_dir = /var/lib/pacemaker/pengine heartbeat_dir = /var/lib/heartbeat -hb_delnode = /usr/share/heartbeat/hb_delnode -nagios_plugins = /usr/lib64/nagios/plugins [color] style = color diff --git a/development/index.html b/development/index.html index ab58096..d8a0d14 100644 --- a/development/index.html +++ b/development/index.html @@ -126,15 +126,10 @@

Tests

crmsh also comes with a comprehensive regression test suite. The regression tests need to run after installation, on a system which has both crmsh and pacemaker installed. You -will also need to install pacemaker and the cluster-glue development headers.

+will also need to install pacemaker development headers.

-
Program description
-
Command line options
-
Introduction
-
User interface
-
Tab completion
-
Shorthand syntax
-
Features
-
Shadow CIB usage
-
Configuration semantic checks
-
Configuration templates
-
Resource testing
-
Access Control Lists (ACL)
-
Syntax: Resource sets
-
Syntax: Attribute list references
-
Syntax: Attribute references
-
Syntax: Rule expressions
-
Lifetime parameter format
-
Command reference
-
status
-
verify
-
cluster
-
copy
-
diff
-
disable
-
enable
-
geo_init
-
geo_init_arbitrator
-
geo_join
-
health
-
init
-
join
-
remove
-
crash_test
-
restart
-
rename
-
run
-
start
-
status
-
stop
-
wait_for_startup
-
script
-
json
-
list
-
run
-
show
-
verify
-
corosync
-
diff
-
edit
-
get
-
log
-
pull
-
push
-
reload
-
set
-
show
-
status
-
cib
-
cibstatus
-
commit
-
delete
-
diff
-
import
-
list
-
new
-
reset
-
use
-
ra
-
classes
-
info
-
list
-
providers
-
validate
-
resource
-
ban
-
cleanup
-
clear
-
constraints
-
demote
-
failcount
-
locate
-
maintenance
-
manage
-
meta
-
move
-
operations
-
param
-
promote
-
refresh
-
restart
-
scores
-
secret
-
start
-
status
-
stop
-
trace
-
unmanage
-
untrace
-
utilization
-
node
-
attribute
-
clearstate
-
delete
-
fence
-
maintenance
-
online
-
ready
-
server
-
show
-
standby
-
status-attr
-
utilization
-
site
-
ticket
-
options
-
add-quotes
-
check-frequency
-
check-mode
-
colorscheme
-
editor
-
manage-children
-
output
-
pager
-
reset
-
save
-
set
-
show
-
skill-level
-
sort-elements
-
user
-
wait
-
configure
-
acl_target
-
alert
-
bundle
-
cib
-
cibstatus
-
clone
-
colocation
-
commit
-
default-timeouts
-
delete
-
edit
-
erase
-
fencing_topology
-
filter
-
get_property
-
graph
-
group
-
load
-
location
-
modgroup
-
monitor
-
ms
-
node
-
op_defaults
-
order
-
primitive
-
property
-
ptest
-
refresh
-
rename
-
role
-
rsc_defaults
-
rsc_template
-
rsc_ticket
-
rsctest
-
save
-
schema
-
set
-
show
-
tag
-
template
-
upgrade
-
user
-
validate_all
-
verify
-
xml
-
template
-
apply
-
delete
-
edit
-
list
-
load
-
new
-
show
-
cibstatus
-
load
-
node
-
op
-
origin
-
quorum
-
run
-
save
-
show
-
simulate
-
ticket
-
assist
-
template
-
weak-bond
-
maintenance
-
action
-
off
-
on
-
history
-
detail
-
diff
-
events
-
exclude
-
graph
-
info
-
latest
-
limit
-
log
-
node
-
peinputs
-
refresh
-
resource
-
session
-
setnodes
-
show
-
source
-
transition
-
transitions
-
wdiff
-
report
+
Program description
+
Command line options
+
Introduction
+
User interface
+
Tab completion
+
Shorthand syntax
+
Features
+
Shadow CIB usage
+
Configuration semantic checks
+
Configuration templates
+
Resource testing
+
Access Control Lists (ACL)
+
Syntax: Resource sets
+
Syntax: Attribute list references
+
Syntax: Attribute references
+
Syntax: Rule expressions
+
Lifetime parameter format
+
Command reference
+
status
+
verify
+
cluster
+
copy
+
diff
+
disable
+
enable
+
geo_init
+
geo_init_arbitrator
+
geo_join
+
health
+
init
+
join
+
remove
+
crash_test
+
restart
+
rename
+
run
+
start
+
status
+
stop
+
wait_for_startup
+
script
+
json
+
list
+
run
+
show
+
verify
+
corosync
+
diff
+
edit
+
get
+
log
+
pull
+
push
+
reload
+
set
+
show
+
status
+
link
+
link_show
+
link_add
+
link_update
+
link_remove
+
cib
+
cibstatus
+
commit
+
delete
+
diff
+
import
+
list
+
new
+
reset
+
use
+
ra
+
classes
+
info
+
list
+
providers
+
validate
+
resource
+
ban
+
cleanup
+
clear
+
constraints
+
demote
+
failcount
+
locate
+
maintenance
+
manage
+
meta
+
move
+
operations
+
param
+
promote
+
refresh
+
restart
+
scores
+
secret
+
start
+
status
+
stop
+
trace
+
unmanage
+
untrace
+
utilization
+
sbd
+
configure
+
device
+
status
+
purge
+
node
+
attribute
+
clearstate
+
delete
+
fence
+
maintenance
+
online
+
ready
+
server
+
show
+
standby
+
status-attr
+
utilization
+
site
+
ticket
+
options
+
add-quotes
+
check-frequency
+
check-mode
+
colorscheme
+
editor
+
manage-children
+
output
+
pager
+
reset
+
save
+
set
+
show
+
skill-level
+
sort-elements
+
user
+
wait
+
configure
+
acl_target
+
alert
+
bundle
+
cib
+
cibstatus
+
clone
+
colocation
+
commit
+
default-timeouts
+
delete
+
edit
+
erase
+
fencing_topology
+
filter
+
get_property
+
graph
+
group
+
load
+
location
+
modgroup
+
monitor
+
node
+
op_defaults
+
order
+
primitive
+
property
+
ptest
+
refresh
+
rename
+
role
+
rsc_defaults
+
rsc_template
+
rsc_ticket
+
rsctest
+
save
+
schema
+
set
+
show
+
tag
+
template
+
upgrade
+
user
+
validate_all
+
verify
+
xml
+
template
+
apply
+
delete
+
edit
+
list
+
load
+
new
+
show
+
cibstatus
+
load
+
node
+
op
+
origin
+
quorum
+
run
+
save
+
show
+
simulate
+
ticket
+
assist
+
template
+
weak-bond
+
maintenance
+
action
+
off
+
on
+
history
+
detail
+
diff
+
events
+
exclude
+
graph
+
info
+
latest
+
limit
+
log
+
node
+
peinputs
+
refresh
+
resource
+
session
+
setnodes
+
show
+
source
+
transition
+
transitions
+
wdiff
+
report
@@ -283,7 +292,7 @@

SYNOPSIS

-

DESCRIPTION

+

DESCRIPTION

The crm shell is a command-line based cluster configuration and management tool. Its goal is to assist as much as possible with the @@ -312,7 +321,7 @@

DESCRIPTION

-

OPTIONS

+

OPTIONS

@@ -430,12 +439,12 @@

OPTIONS

-

Introduction

+

Introduction

This section of the user guide covers general topics about the user interface and describes some of the features of crmsh in detail.

-

User interface

+

User interface

The main purpose of crmsh is to provide a simple yet powerful interface to the cluster stack. There are two main modes of operation with the user interface of crmsh:

@@ -510,8 +519,8 @@

User interface

clone conn pingd \ meta globally-unique=false clone-max=2 clone-node-max=1 location node_pref internal_www \ - rule 50: #uname eq node1 \ - rule pingd: defined pingd + rule 50: #uname eq node1 and \ + defined pingd # # cluster properties # @@ -526,12 +535,12 @@

User interface

available levels and commands.

The (live) string in the crm prompt signifies that the current CIB in use is the cluster live configuration. It is also possible to -work with so-called shadow CIBs. These are separate, inactive +work with so-called shadow CIBs. These are separate, inactive configurations stored in files, that can be applied and thereby replace the live configuration at any time.

-

Tab completion

+

Tab completion

The crm makes extensive use of tab completion. The completion is both static (i.e. for crm commands) and dynamic. The latter takes into account the current status of the cluster or @@ -548,26 +557,29 @@

Tab completion

constraints ls operations restart stop utilization crm(live)configure# primitive fence-1 <TAB><TAB> -lsb: ocf: service: stonith: systemd: +ocf: stonith: systemd: crm(live)configure# primitive fence-1 stonith:<TAB><TAB> -apcmaster external/ippower9258 fence_legacy -apcmastersnmp external/kdumpcheck ibmhmc -apcsmart external/libvirt ipmilan +stonith:apcmaster stonith:fence_compute stonith:fence_ipmilanplus +stonith:apcmastersnmp stonith:fence_docker stonith:fence_ironic +stonith:apcsmart stonith:fence_drac5 stonith:fence_kdump +... -crm(live)configure# primitive fence-1 stonith:ipmilan params <TAB><TAB> -auth= hostname= ipaddr= login= password= port= priv= +crm(live)configure# primitive fence-1 stonith:fence_ipmilan params <TAB><TAB> +action= ip= passwd= pcmk_host_list= +auth= ipaddr= passwd_script= pcmk_host_map= +... -crm(live)configure# primitive fence-1 stonith:ipmilan params auth=<TAB><TAB> -auth* (string) - The authorization type of the IPMI session ("none", "straight", "md2", or "md5") +crm(live)configure# primitive fence-1 stonith:fence_ipmilan params auth=<TAB><TAB> +auth (select): IPMI Lan Auth type. + Allowed values: md5, password, none

crmsh also comes with bash completion usable directly from the system shell. This should be installed automatically with the command itself.

-

Shorthand syntax

+

Shorthand syntax

When using the crm shell to manage clusters, you will end up typing a lot of commands many times over. Clear command names like configure help in understanding and learning to use the cluster @@ -584,7 +596,7 @@

Shorthand syntax

-

Features

+

Features

The feature set of crmsh covers a wide range of functionality, and understanding how and when to use the various features of the shell @@ -593,7 +605,7 @@

Features

provide a deeper understanding of these features, but also to serve as a guide to using them.

-

Shadow CIB usage

+

Shadow CIB usage

A Shadow CIB is a normal cluster configuration stored in a file. They may be manipulated in much the same way as the live CIB, with the key difference that changes to a shadow CIB have no effect on the @@ -617,7 +629,7 @@

Shadow CIB usage

-

Configuration semantic checks

+

Configuration semantic checks

Resource definitions may be checked against the meta-data provided with the resource agents. These checks are currently carried out:

@@ -649,21 +661,21 @@

Configuration semantic checks

values given are just advisory minimum---your resources may require longer timeouts.

User may tune the frequency of checks and the treatment of errors -by the check-frequency and -check-mode preferences.

+by the check-frequency and +check-mode preferences.

Note that if the check-frequency is set to always and the check-mode to strict, errors are not tolerated and such configuration cannot be saved.

-

Configuration templates

+

Configuration templates

Deprecation note

Configuration templates have been deprecated in favor of the more capable cluster scripts. To learn how to use cluster scripts, see the dedicated documentation on the crmsh website at -http://crmsh.github.io/, or in the Script section.

+http://crmsh.github.io/, or in the Script section.

Configuration templates are ready made configurations created by cluster experts. They are designed in such a way so that users @@ -832,7 +844,7 @@

Configuration templates

-

Resource testing

+

Resource testing

The amount of detail in a cluster makes all configurations prone to errors. By far the largest number of issues in a cluster is due to bad resource configuration. The shell can help quickly @@ -894,7 +906,7 @@

Resource testing

eligible nodes if a resource is not meant to run on every node.

-

Access Control Lists (ACL)

+

Access Control Lists (ACL)

Note on ACLs in Pacemaker 1.1.12
@@ -976,7 +988,7 @@

Access Control Lists (ACL)

possible.

-

Syntax: Resource sets

+

Syntax: Resource sets

Using resource sets can be a bit confusing unless one knows the details of the implementation in Pacemaker as well as how to interpret the syntax provided by crmsh.

@@ -1033,7 +1045,7 @@

Syntax: Resource sets

A B ( C D sequential=true ).

-

Syntax: Attribute list references

+

Syntax: Attribute list references

Attribute lists are used to set attributes and parameters for resources, constraints and property definitions. For example, to set the virtual IP used by an IPAddr2 resource the attribute ip can be @@ -1057,7 +1069,7 @@

Syntax: Attribute list referenc

The resource dummy-2 will now also have the parameter state set to the value 1.

-

Syntax: Attribute references

+

Syntax: Attribute references

In some cases, referencing complete attribute lists is too coarse-grained, for example if two different parameters with different names should have the same value set. Instead of having to copy the @@ -1084,22 +1096,9 @@

Syntax: Attribute references

primitive dummy-1 params $dummy-state-on:state=1
 primitive dummy-2 params @dummy-state-on
-

There is also the possibility that two resources both use the same -attribute value but with different names. For example, a web server -may have a parameter server_ip for setting the IP address where it -listens for incoming requests, and a virtual IP resource may have a -parameter called ip which sets the IP address it creates. To -configure these two resources with an IP without repeating the value, -the reference can be given a name using the syntax @<id>:<name>.

-

Example:

-
-
-
primitive virtual-ip IPaddr2 params $vip:ip=192.168.1.100
-primitive webserver apache params @vip:server_ip
-
-

Syntax: Rule expressions

+

Syntax: Rule expressions

Many of the configuration commands in crmsh now support the use of rule expressions, which can influence what attributes apply to a resource or under which conditions a constraint is applied, depending @@ -1124,6 +1123,8 @@

Syntax: Rule expressions

Rule expressions can contain multiple expressions connected using the boolean operator or and and. The full syntax for rule expressions is listed below.

+

Note: pacemaker has deprecated support for multiple top-level rules +within a location constraint since version 2.1.8.

rules ::
@@ -1154,14 +1155,13 @@ 

Syntax: Rule expressions

| months=<value> | weeks=<value> | years=<value> - | weekyears=<value> - | moon=<value>
+ | weekyears=<value>
-

Lifetime parameter format

+

Lifetime parameter format

Lifetimes can be specified in the ISO 8601 time format or the ISO 8601 duration format. To distinguish between months and minutes, use the PT @@ -1181,7 +1181,7 @@

Lifetime parameter format

-

Command reference

+

Command reference

The commands are structured to be compatible with the shell command line. Sometimes, the underlying Pacemaker grammar uses characters that @@ -1226,7 +1226,7 @@

Command reference

-

status

+

status

Show cluster status. The status is displayed by crm_mon. Supply additional arguments for more information or different format. See crm_mon(8) for more details.

@@ -1260,7 +1260,7 @@

status

-

verify

+

verify

Performs basic checks for the cluster configuration and current status, reporting potential issues.

See crm_verify(8) and crm_simulate(8) for more details.

@@ -1277,7 +1277,7 @@

verify

-

cluster - Cluster setup and management

+

cluster - Cluster setup and management

Whole-cluster configuration management with High Availability awareness.

The commands on the cluster level allows configuration and @@ -1287,7 +1287,7 @@

cluster - Cluster setup cluster, by providing support for package installation, configuration of the cluster messaging layer, file system setup and more.

-

copy

+

copy

Copy file to other cluster nodes.

Copies the given file to all other nodes unless given a list of nodes to copy to as argument.

@@ -1303,7 +1303,7 @@

copy

-

diff

+

diff

Displays the difference, if any, between a given file on different nodes. If the second argument is --checksum, a checksum of the file will be calculated and displayed for @@ -1321,7 +1321,7 @@

diff

-

disable

+

disable

Usage:

@@ -1343,7 +1343,7 @@

disable

-

enable

+

enable

Usage:

@@ -1365,7 +1365,7 @@

enable

-

geo-init

+

geo-init

Usage:

@@ -1423,7 +1423,7 @@

geo-init

-

geo-init-arbitrator

+

geo-init-arbitrator

Usage:

@@ -1454,13 +1454,13 @@

geo-init-a
  • ---use-ssh-agent: Use an existing key from ssh-agent instead of creating new key pairs +--use-ssh-agent, --no-use-ssh-agent: Try to use an existing key from ssh-agent (default)

  • -

    geo-join

    +

    geo-join

    Usage:

    @@ -1497,23 +1497,62 @@

    geo-join

  • ---use-ssh-agent: Use an existing key from ssh-agent instead of creating new key pairs +--use-ssh-agent, --no-use-ssh-agent: Try to use an existing key from ssh-agent (default)

  • -

    health

    +

    health

    +

    Usage 1: General Health Check

    Runs a larger set of tests and queries on all nodes in the cluster to verify the general system health and detect potential problems.

    -

    Usage:

    health
    +

    Usage 2: Topic-Specified Health Check

    +

    Verifies the health of a specified topic.

    +
    +
    +
    health hawk2|sles16 [--local] [--fix]
    +
    +
      +
    • +

      +hawk2: check or fix key-based ssh authentication for user hacluster, which + is needed by hawk2. +

      +
        +
      • +

        +--fix: attempts to automatically resolve any detected issues, eg. + hacluster passwordless +

        +
      • +
      +
    • +
    • +

      +sles16: check whether the cluster is good to migrate to SLES 16. +

      +
        +
      • +

        +--local: run checks in local mode +

        +
      • +
      • +

        +--fix: attempts to automatically resolve any detected issues. +

        +
      • +
      +
    • +
    -

    init

    +

    init

    Usage:

    @@ -1564,7 +1603,7 @@

    init

  • ---use-ssh-agent: Use an existing key from ssh-agent instead of creating new key pairs +--use-ssh-agent, --no-use-ssh-agent: Try to use an existing key from ssh-agent (default)

  • @@ -1618,7 +1657,7 @@

    init

  • ---qdevice-tls TLS: Whether using TLS on QDevice/QNetd (on/off/required, default:on) +--qdevice-tls TLS: Whether using TLS on QDevice (on/off/required, default:on)

  • @@ -1647,12 +1686,17 @@

    init

  • --C, --cluster-lvm2: Use Cluster LVM2 (only valid together with -o option) NOTE: this is a Technical Preview +-g DEVICE, --gfs2-device DEVICE: Block device to use for GFS2; When using Cluster LVM2 to manage the shared storage, user can specify one or multiple raw disks, use ";" as separator or -g multiple times for multi path (must specify -C option) NOTE: this is a Technical Preview +

    +
  • +
  • +

    +-C, --cluster-lvm2: Use Cluster LVM2 (only valid together with -o or -g option) NOTE: this is a Technical Preview

  • --m MOUNT, --mount-point MOUNT: Mount point for OCFS2 device (default is /srv/clusterfs, only valid together with -o option) NOTE: this is a Technical Preview +-m MOUNT, --mount-point MOUNT: Mount point for OCFS2 or GFS2 device (default is /srv/clusterfs, only valid together with -o or -g option) NOTE: this is a Technical Preview

  • @@ -1660,11 +1704,13 @@

    init

    Stage can be one of:
         ssh         Create SSH keys for passwordless SSH between cluster nodes
    +    firewalld   Add high-availability service to firewalld
         csync2      Configure csync2
         corosync    Configure corosync
         sbd         Configure SBD (requires -s <dev>)
         cluster     Bring the cluster online
         ocfs2       Configure OCFS2 (requires -o <dev>) NOTE: this is a Technical Preview
    +    gfs2        Configure GFS2 (requires -g <dev>) NOTE: this is a Technical Preview
         admin       Create administration virtual IP (optional)
         qdevice     Configure qdevice and qnetd
     
    @@ -1695,9 +1741,15 @@ 

    init

    # Setup the cluster on the current node, with SBD+OCFS2 crm cluster init -s <share disk1> -o <share disk2> -y + # Setup the cluster on the current node, with SBD+GFS2 + crm cluster init -s <share disk1> -g <share disk2> -y + # Setup the cluster on the current node, with SBD+OCFS2+Cluster LVM crm cluster init -s <share disk1> -o <share disk2> -o <share disk3> -C -y + # Setup the cluster on the current node, with SBD+GFS2+Cluster LVM + crm cluster init -s <share disk1> -g <share disk2> -g <share disk3> -C -y + # Add SBD on a running cluster crm cluster init sbd -s <share disk> -y @@ -1711,11 +1763,14 @@

    init

    crm cluster init qdevice --qnetd-hostname <qnetd addr> -y # Add OCFS2+Cluster LVM on a running cluster - crm cluster init ocfs2 -o <share disk1> -o <share disk2> -C -y
    + crm cluster init ocfs2 -o <share disk1> -o <share disk2> -C -y + + # Add GFS2+Cluster LVM on a running cluster + crm cluster init gfs2 -g <share disk1> -g <share disk2> -C -y
    -

    join

    +

    join

    Usage:

    @@ -1741,7 +1796,7 @@

    join

  • ---use-ssh-agent: Use an existing key from ssh-agent instead of creating new key pairs +--use-ssh-agent, --no-use-ssh-agent: Try to use an existing key from ssh-agent (default)

  • @@ -1761,7 +1816,7 @@

    join

    -

    remove

    +

    remove

    Usage:

    @@ -1804,7 +1859,7 @@

    remove

    -

    crash_test

    +

    crash_test

    Usage:

    @@ -1865,7 +1920,7 @@

    crash_test

    -

    restart

    +

    restart

    Usage:

    @@ -1887,7 +1942,7 @@

    restart

    -

    rename

    +

    rename

    Rename the cluster name

    Usage:

    @@ -1896,7 +1951,7 @@

    rename

    -

    run

    +

    run

    This command takes a shell statement as argument, executes that statement on all nodes in the cluster or a specific node, and reports the result.

    @@ -1913,7 +1968,7 @@

    run

    -

    start

    +

    start

    Usage:

    @@ -1935,7 +1990,7 @@

    start

    -

    status

    +

    status

    Reports the status for the cluster messaging layer on the local node.

    Usage:

    @@ -1945,7 +2000,7 @@

    status

    -

    stop

    +

    stop

    Usage:

    @@ -1967,7 +2022,7 @@

    stop

    -

    wait_for_startup

    +

    wait_for_startup

    Mostly useful in scripts or automated workflows, this command will attempt to connect to the local cluster node repeatedly. The command will keep trying until the cluster node responds, or the timeout @@ -1981,7 +2036,7 @@

    wait_for_star

    -

    script - Cluster script management

    +

    script - Cluster script management

    A big part of the configuration and management of a cluster is collecting information about all cluster nodes and deploying changes to those nodes. Often, just performing the same procedure on all nodes @@ -1997,7 +2052,7 @@

    script - Cluster script function through the usual SSH channels used for system maintenance, requiring no additional software to be installed or maintained.

    -

    json

    +

    json

    This command provides a JSON API for the cluster scripts, intended for use in user interface tools that want to interact with the cluster via scripts.

    @@ -2031,7 +2086,7 @@

    json

    -

    list

    +

    list

    Lists the available scripts, sorted by category. Scripts that have the special Script category are hidden by default, since they are mainly used by other scripts or commands. To also show these, pass all as @@ -2051,7 +2106,7 @@

    list

    -

    run

    +

    run

    Given a list of parameter values, this command will execute the actions specified by the cluster script. The format for the parameter values is the same as for the verify command.

    @@ -2073,7 +2128,7 @@

    run

    -

    show

    +

    show

    Prints a description and short summary of the script, with descriptions of the accepted parameters.

    Advanced parameters are hidden by default. To show the complete list @@ -2090,7 +2145,7 @@

    show

    -

    verify

    +

    verify

    Checks the given parameter values, and returns a list of actions that will be executed when running the script if provided the same list of parameter values.

    @@ -2107,12 +2162,12 @@

    verify

    -

    corosync - Corosync management

    +

    corosync - Corosync management

    Corosync is the underlying messaging layer for most HA clusters. This level provides commands for editing and managing the corosync configuration.

    -

    diff

    +

    diff

    Diffs the corosync configurations on different nodes. If no nodes are given as arguments, the corosync configurations on all nodes in the cluster are compared.

    @@ -2125,7 +2180,7 @@

    diff

    -

    edit

    +

    edit

    Opens the Corosync configuration file in an editor.

    Usage:

    @@ -2134,7 +2189,7 @@

    edit

    -

    get

    +

    get

    Returns the value configured in corosync.conf, which is not necessarily the value used in the running configuration. See reload for telling corosync about configuration changes.

    @@ -2149,7 +2204,7 @@

    get

    -

    log

    +

    log

    Opens the log file specified in the corosync configuration file. If no log file is configured, this command returns an error.

    The pager used can be configured either using the PAGER @@ -2161,7 +2216,7 @@

    log

    -

    pull

    +

    pull

    Gets the corosync configuration from another node and copies it to this node.

    Usage:

    @@ -2171,7 +2226,7 @@

    pull

    -

    push

    +

    push

    Pushes the corosync configuration file on this node to the list of nodes provided. If no target nodes are given, the configuration is pushed to all other nodes in the cluster.

    @@ -2189,7 +2244,7 @@

    push

    -

    reload

    +

    reload

    Tells all instances of corosync in this cluster to reload corosync.conf.

    After pushing a new configuration to all cluster nodes, call this @@ -2201,18 +2256,22 @@

    reload

    -

    set

    +

    set

    Sets the value identified by the given path. If the value does not exist in the configuration file, it will be added. However, if the section containing the value does not exist, the command will fail.

    +

    If there are multiple entries with the same path, you can specify index +set <path> <value> <index> to set a specific entry. +The default index is 0.

    Usage:

    -
    set quorum.expected_votes 2
    +
    set quorum.expected_votes 2
    +set nodelist.node.nodeid 3 1
    -

    show

    +

    show

    Displays the corosync configuration on the current node.

    @@ -2220,29 +2279,164 @@

    show

    -

    status

    -

    Displays the corosync ring status(default), also can display quorum/qdevice/qnetd status.

    +

    status

    +

    Default is ring.

    +

    Usage:

    +
    +
    +
    status [ring|quorum|qdevice|qnetd|cpg]
    +
    +
    +
    + +

    Knet is a multi-link and multi-protocol transport used by corosync.

    +

    Upon successfully changing the configuration file locally, it will be synced to all cluster nodes.

    +

    Usage:

    +
    +
    +
    link add <nodename>=<new_address> ... [options <option>=[value] ...]
    +link remove <linknumber>
    +link show
    +link update <linknumber> [<nodename>=<new_address> ... ] [options <option>=[value] ...]
    +
    +
    +
    show
    +

    List knet links defined in the configuration file.

    +

    Usage:

    +
    +
    +
    show
    +
    +
    +
    +
    add
    +

    Add a knet link to the configuration file.

    +

    Usage:

    +
    +
    +
    add <nodename>=<ip_address> ... [options <name>=value ...]
    +
    +

    All nodes in the cluster must to be specified in <nodename>=<ip_address>. +options are optional. Unspecified options will be omitted from the +configuration file.

    +

    Available options:

    +
      +
    • +

      +mcastport +

      +
    • +
    • +

      +knet_link_priority +

      +
    • +
    • +

      +knet_ping_interval +

      +
    • +
    • +

      +knet_ping_timeout +

      +
    • +
    • +

      +knet_ping_precision +

      +
    • +
    • +

      +knet_pong_count +

      +
    • +
    • +

      +knet_transport +

      +
    • +
    +

    See corosync.conf(5) for details about these options.

    +
    +
    +
    update
    +

    Modify an existing knet link in the configuration file, changing node adresses +and/or link options.

    Usage:

    -
    status [ring|quorum|qdevice|qnetd]
    +
    update <linknumber> [<nodename>=<ip_address> ...] [options <name>=[value] ...]
    +

    Unspecified nodes will keep their IP addresses unchanged.

    +

    Unspecified options will be kept untouched.

    +

    Specify <name>= to remove the option from the configuration file.

    +

    Available options:

    +
      +
    • +

      +mcastport +

      +
    • +
    • +

      +knet_link_priority +

      +
    • +
    • +

      +knet_ping_interval +

      +
    • +
    • +

      +knet_ping_timeout +

      +
    • +
    • +

      +knet_ping_precision +

      +
    • +
    • +

      +knet_pong_count +

      +
    • +
    • +

      +knet_transport +

      +
    • +
    +

    See corosync.conf(5) for details about these options.

    +
    +
    +
    remove
    +

    Remove an existing knet link from the configuration file.

    +

    The last remaining link in the cluster cannot be removed.

    +

    Usage:

    +
    +
    +
    remove <linknumber>
    +
    +
    -

    cib - CIB shadow management

    +

    cib - CIB shadow management

    This level is for management of shadow CIBs. It is available both at the top level and the configure level.

    All the commands are implemented using cib_shadow(8) and the CIB_shadow environment variable. The user prompt always includes the name of the currently active shadow or the live CIB.

    -

    cibstatus

    +

    cibstatus

    Enter edit and manage the CIB status section level. See the -CIB status management section.

    +CIB status management section.

    -

    commit

    +

    commit

    Apply a shadow CIB to the cluster. If the shadow name is omitted then the current shadow CIB is applied.

    Temporary shadow CIBs are removed automatically on commit.

    @@ -2253,7 +2447,7 @@

    commit

    -

    delete

    +

    delete

    Delete an existing shadow CIB.

    Usage:

    @@ -2262,7 +2456,7 @@

    delete

    -

    diff

    +

    diff

    Print differences between the current cluster configuration and the active shadow CIB.

    Usage:

    @@ -2272,7 +2466,7 @@

    diff

    -

    import

    +

    import

    At times it may be useful to create a shadow file from the existing CIB. The CIB may be specified as file or as a PE input file number. The shell will look up files in the local directory @@ -2297,7 +2491,7 @@

    import

    -

    list

    +

    list

    List existing shadow CIBs.

    Usage:

    @@ -2306,7 +2500,7 @@

    list

    -

    new

    +

    new

    Create a new shadow CIB. The live cluster configuration and status is copied to the shadow CIB.

    If the name of the shadow is omitted, we create a temporary CIB @@ -2316,7 +2510,7 @@

    new

    Note that if the temporary shadow is not committed all changes in the temporary shadow are lost.

    Specify withstatus if you want to edit the status section of -the shadow CIB (see the cibstatus section). +the shadow CIB (see the cibstatus section). Add force to force overwriting the existing shadow CIB.

    To start with an empty configuration that is not copied from the live CIB, specify the empty keyword. (This also allows a shadow CIB to be @@ -2328,7 +2522,7 @@

    new

    -

    reset

    +

    reset

    Copy the current cluster configuration into the shadow CIB.

    Usage:

    @@ -2337,9 +2531,9 @@

    reset

    -

    use

    +

    use

    Choose a CIB source. If you want to edit the status from the -shadow CIB specify withstatus (see cibstatus). +shadow CIB specify withstatus (see cibstatus). Leave out the CIB name to switch to the running CIB.

    Usage:

    @@ -2349,12 +2543,12 @@

    use

    -

    ra - Resource Agents (RA) lists and documentation

    +

    ra - Resource Agents (RA) lists and documentation

    This level contains commands which show various information about the installed resource agents. It is available both at the top level and at the configure level.

    -

    classes

    +

    classes

    Print all resource agents' classes and, where appropriate, a list of available providers.

    Usage:

    @@ -2364,7 +2558,7 @@

    classes

    -

    info (meta)

    +

    info (meta)

    Show the meta-data of a resource agent type. This is where users can find information on how to use a resource agent. It is also possible to use the pacemaker-fenced type to get the corresponding @@ -2385,7 +2579,7 @@

    info ( -

    list

    +

    list

    List available resource agents for the given class. If the class is ocf, supply a provider to get agents which are available only from that provider.

    @@ -2401,7 +2595,7 @@

    list

    -

    providers

    +

    providers

    List providers for a resource agent type. The class parameter defaults to ocf.

    Usage:

    @@ -2416,7 +2610,7 @@

    providers

    -

    validate

    +

    validate

    If the resource agent supports the validate-all action, this calls the action with the given parameters, printing any warnings or errors reported by the agent.

    @@ -2428,12 +2622,12 @@

    validate

    -

    resource - Resource management

    +

    resource - Resource management

    At this level resources may be managed.

    All (or almost all) commands are implemented with the CRM tools such as crm_resource(8).

    -

    ban

    +

    ban

    Ban a resource from running on a certain node. If no node is given as argument, the resource is banned from the current location.

    See move for details on other arguments.

    @@ -2444,7 +2638,7 @@

    ban

    -

    cleanup

    +

    cleanup

    If resource has any past failures, clear its history and fail count. Typically done after the resource has temporarily failed.

    @@ -2459,7 +2653,7 @@

    cleanup

    -

    clear (unmove, unmigrate, unban)

    +

    clear (unmove, unmigrate, unban)

    Remove any relocation constraint created by the move, migrate or ban command.

    Usage:

    @@ -2471,7 +2665,7 @@

    clear (

    -

    constraints

    +

    constraints

    Display the location and colocation constraints affecting the resource.

    Usage:

    @@ -2481,7 +2675,7 @@

    constraints

    -

    demote

    +

    demote

    Demote a promotable resource using the target-role attribute.

    Usage:

    @@ -2491,7 +2685,7 @@

    demote

    -

    failcount

    +

    failcount

    Show/edit/delete the failcount of a resource. When set a non-zero value, operation and interval should be provided when multiple operation failcount entries exist. @@ -2506,11 +2700,13 @@

    failcount

    Example:

    -
    failcount fs_0 delete node2
    +
    failcount fs_0 set node1 0 monitor 10
    +failcount fs_0 delete node1
    +failcount fs_0 show node1
    -

    locate

    +

    locate

    Show the current location of one or more resources.

    Usage:

    @@ -2519,7 +2715,7 @@

    locate

    -

    maintenance

    +

    maintenance

    Enables or disables the per-resource maintenance mode. When this mode is enabled, no monitor operations will be triggered for the resource. maintenance attribute conflicts with the is-managed. When setting @@ -2538,7 +2734,7 @@

    maintenance

    -

    manage

    +

    manage

    Manage a resource using the is-managed attribute. If there are multiple meta attributes sets, the attribute is set in all of them. If the resource is a clone, all is-managed attributes are @@ -2546,7 +2742,7 @@

    manage

    is-managed attribute conflicts with the maintenance. When setting the is-managed attribute, the user is proposed to remove the maintenance attribute if it exists.

    -

    For details on group management see options manage-children.

    +

    For details on group management see options manage-children.

    Usage:

    @@ -2554,7 +2750,7 @@

    manage

    -

    meta

    +

    meta

    Show/edit/delete a meta attribute of a resource. Currently, all meta attributes of a resource may be managed with other commands such as resource stop.

    @@ -2572,7 +2768,7 @@

    meta

    -

    move (migrate)

    +

    move (migrate)

    Move a resource away from its current location.

    If the destination node is left out, the resource is migrated by creating a constraint which prevents it from running on the current @@ -2587,7 +2783,7 @@

    move (

    -

    operations

    +

    operations

    Show active operations, optionally filtered by resource and node.

    Usage:

    @@ -2596,7 +2792,7 @@

    operations<

    -

    param

    +

    param

    Show/edit/delete a parameter of a resource.

    Usage:

    @@ -2612,7 +2808,7 @@

    param

    -

    promote

    +

    promote

    Promote a promotable resource using the target-role attribute.

    Usage:

    @@ -2622,7 +2818,7 @@

    promote

    -

    refresh

    +

    refresh

    Delete resource’s history (including failures) so its current state is rechecked.

    Usage:

    @@ -2631,7 +2827,7 @@

    refresh

    -

    restart

    +

    restart

    Restart one or more resources. This is essentially a shortcut for resource stop followed by a start. The shell is first going to wait for the stop to finish, that is for all resources to really stop, and @@ -2639,7 +2835,7 @@

    restart

    entailing a whole set of operations, informational messages are printed to let the user see some progress.

    For details on group management see -options manage-children.

    +options manage-children.

    Usage:

    @@ -2656,7 +2852,7 @@

    restart

    -

    scores

    +

    scores

    Display the allocation scores for all resources.

    Usage:

    @@ -2665,7 +2861,7 @@

    scores

    -

    secret

    +

    secret

    Sensitive parameters can be kept in local files rather than CIB in order to prevent accidental data exposure. Use the secret command to manage such parameters. stash and unstash move the @@ -2693,13 +2889,13 @@

    secret

    -

    start

    +

    start

    Start one or more resources by setting the target-role attribute. If there are multiple meta attributes sets, the attribute is set in all of them. If the resource is a clone, all target-role attributes are removed from the children resources.

    For details on group management see -options manage-children.

    +options manage-children.

    Usage:

    @@ -2707,7 +2903,7 @@

    start

    -

    status (show, list)

    +

    status (show, list)

    Print resource status. More than one resource can be shown at once. If the resource parameter is left out, the status of all resources is printed.

    @@ -2718,13 +2914,13 @@

    status (

    -

    stop

    +

    stop

    Stop one or more resources using the target-role attribute. If there are multiple meta attributes sets, the attribute is set in all of them. If the resource is a clone, all target-role attributes are removed from the children resources.

    For details on group management see -options manage-children.

    +options manage-children.

    Usage:

    @@ -2732,9 +2928,11 @@

    stop

    -

    trace

    +

    trace

    Start tracing RA for the given operation. When [<log-dir>] -is not specified the trace files are stored in $HA_VARLIB/trace_ra. +is not specified, the trace files are stored in <heartbeat_dir>/trace_ra. +If <heartbeat_dir> option in /etc/crm/crm.conf is not defined, +it defaults to /var/lib/heartbeat. If the operation to be traced is monitor, note that the number of trace files can grow very quickly.

    If no operation name is given, crmsh will attempt to trace all @@ -2761,12 +2959,12 @@

    trace

    -

    unmanage

    +

    unmanage

    Unmanage a resource using the is-managed attribute. If there are multiple meta attributes sets, the attribute is set in all of them. If the resource is a clone, all is-managed attributes are removed from the children resources.

    -

    For details on group management see options manage-children.

    +

    For details on group management see options manage-children.

    Usage:

    @@ -2774,7 +2972,7 @@

    unmanage

    -

    untrace

    +

    untrace

    Stop tracing RA for the given operation. If no operation name is given, crmsh will attempt to stop tracing all operations in resource.

    Usage:

    @@ -2790,12 +2988,12 @@

    untrace

    -

    utilization

    +

    utilization

    Show/edit/delete a utilization attribute of a resource. These attributes describe hardware requirements. By setting the placement-strategy cluster property appropriately, it is possible then to distribute resources based on resource -requirements and node size. See also node utilization attributes.

    +requirements and node size. See also node utilization attributes.

    Usage:

    @@ -2811,10 +3009,88 @@

    utilization

    -

    node - Node management

    +

    sbd - SBD management

    +

    This level displays the real-time SBD status and the static SBD configuration. +Additionally, it manages the configuration file for both disk-based and diskless SBD scenarios, +as well as the on-disk metadata for the disk-based scenario. +Currently, SBD management requires a running cluster.

    +

    When run with crm -F or --force option, the sbd subcommand will leverage maintenance mode +for any changes that require restarting sbd.service. +WARNING: Understand risks that running RA has no cluster protection while the cluster is +in maintenance mode and restarting

    +
    +

    configure

    +

    Configure the SBD daemon for both disk-based and disk-less mode.

    +

    Main functionailities include: +- Show configured disk metadata +- Show contents of /etc/sysconfig/sbd +- Show SBD related cluster properties +- Update the SBD related configuration parameters +- NOTE: sbd crashdump is used for debugging. Understand the risks and run crm sbd purge crashdump afterward

    +

    For more details on SBD and related parameters, please see man sbd(8).

    +

    Usage:

    +
    +
    +
    # For disk-based SBD
    +crm sbd configure show [disk_metadata|sysconfig|property]
    +crm sbd configure [watchdog-timeout=<integer>] [allocate-timeout=<integer>] [loop-timeout=<integer>] [msgwait-timeout=<integer>] [crashdump-watchdog-timeout=<integer>] [watchdog-device=<device>]
    +
    +# For disk-less SBD
    +crm sbd configure show [sysconfig|property]
    +crm sbd configure [watchdog-timeout=<integer>] [crashdump-watchdog-timeout=<integer>] [watchdog-device=<device>]
    +
    +

    example:

    +
    +
    +
    configure show
    +configure show disk_metadata
    +configure show sysconfig
    +configure show property
    +configure watchdog-timeout=30
    +
    +
    +
    +

    device

    +

    Add or remove SBD device(s) from the existing SBD configuration.

    +

    example:

    +
    +
    +
    device add /dev/sdb5
    +device add /dev/sdb5 /dev/sdb6
    +device add "/dev/sda5;/dev/sda6"
    +device remove /dev/sdb5
    +
    +
    +
    +

    status

    +

    Show the runtime status of the SBD daemon and +the other information of those SBD related components, +ie. watchdog, fence agent.

    +

    Usage:

    +
    +
    +
    status
    +
    +
    +
    +

    purge

    +

    Disable the systemd sbd.service on all cluster nodes, +move the sbd sysconfig to .bak and adjust SBD related cluster properties. +If crashdump is specified, the crashdump related configurations will be +removed.

    +

    Usage:

    +
    +
    +
    purge
    +purge crashdump
    +
    +
    +
    +
    +

    node - Node management

    Node management and status commands.

    -

    attribute

    +

    attribute

    Edit node attributes. This kind of attribute should refer to relatively static properties, such as memory size.

    Usage:

    @@ -2831,7 +3107,7 @@

    attribute

    -

    clearstate

    +

    clearstate

    Resets and clears the state of the specified node. This node is afterwards assumed clean and offline. This command can be used to manually confirm that a node has been fenced (e.g., powered off).

    @@ -2845,7 +3121,7 @@

    clearstate

    -

    delete

    +

    delete

    Remove a node from cluster.

    If the node is still listed as active and a member of our partition we refuse to remove it. With the global force option @@ -2864,7 +3140,7 @@

    delete

    -

    fence

    +

    fence

    Make CRM fence a node. This functionality depends on stonith resources capable of fencing the specified node. No such stonith resources, no fencing will happen.

    @@ -2875,7 +3151,7 @@

    fence

    -

    maintenance

    +

    maintenance

    Set the node status to maintenance. This is equivalent to the cluster-wide maintenance-mode property but puts just one node into the maintenance mode. If there are maintained resources on @@ -2889,7 +3165,7 @@

    maintenance

    -

    online

    +

    online

    Usage:

    @@ -2911,7 +3187,7 @@

    online

    -

    ready

    +

    ready

    Set the node’s maintenance status to off. The node should be now again fully operational and capable of running resource operations.

    @@ -2923,7 +3199,7 @@

    ready

    -

    server

    +

    server

    Remote nodes may have a configured server address which should be used when contacting the node. This command prints the server address if configured, else the node name.

    @@ -2936,7 +3212,7 @@

    server

    -

    show

    +

    show

    Show a node definition. If the node parameter is omitted, then all nodes are shown.

    Usage:

    @@ -2946,7 +3222,7 @@

    show

    -

    standby

    +

    standby

    Usage:

    @@ -2969,7 +3245,7 @@

    standby

    -

    status-attr

    +

    status-attr

    Edit node attributes which are in the CIB status section, i.e., attributes which hold properties of a more volatile nature. One typical example is attribute generated by the pingd utility.

    @@ -2987,13 +3263,13 @@

    status-attr

    -

    utilization

    +

    utilization

    Edit node utilization attributes. These attributes describe hardware characteristics as integer numbers such as memory size or the number of CPUs. By setting the placement-strategy cluster property appropriately, it is possible then to distribute resources based on resource requirements and node size. See also -resource utilization attributes.

    +resource utilization attributes.

    Usage:

    @@ -3010,15 +3286,15 @@

    utilization

    -

    site - GEO clustering site support

    +

    site - GEO clustering site support

    A cluster may consist of two or more subclusters in different and distant locations. This set of commands supports such setups.

    -

    ticket

    +

    ticket

    Tickets are cluster-wide attributes. They can be managed at the site where this command is executed.

    It is then possible to constrain resources depending on the -ticket availability (see the rsc_ticket command +ticket availability (see the rsc_ticket command for more details).

    Usage:

    @@ -3033,10 +3309,10 @@

    ticket

    -

    options - User preferences

    +

    options - User preferences

    The user may set various options for the crm shell itself.

    -

    add-quotes

    +

    add-quotes

    The shell (as in /bin/sh) parser strips quotes from the command line. This may sometimes make it really difficult to type values which contain white space. One typical example is the configure @@ -3061,7 +3337,7 @@

    add-quotes

    -

    check-frequency

    +

    check-frequency

    Semantic check of the CIB or elements modified or created may be done on every configuration change (always), when verifying (on-verify) or never. It is by default set to always. @@ -3069,18 +3345,18 @@

    check-frequenc

    The checks require that resource agents are present. If they are not installed at the configuration time set this preference to never.

    -

    See Configuration semantic checks for more details.

    +

    See Configuration semantic checks for more details.

    -

    check-mode

    +

    check-mode

    Semantic check of the CIB or elements modified or created may be done in the strict mode or in the relaxed mode. In the former certain problems are treated as configuration errors. In the relaxed mode all are treated as warnings. The default is strict.

    -

    See Configuration semantic checks for more details.

    +

    See Configuration semantic checks for more details.

    -

    colorscheme

    +

    colorscheme

    With output set to color, a comma separated list of colors from this option are used to emphasize:

      @@ -3131,7 +3407,7 @@

      colorscheme

    -

    editor

    +

    editor

    The edit command invokes an editor. Use this to specify your preferred editor program. If not set, it will default to either the value of the EDITOR environment variable or to one of the @@ -3148,7 +3424,7 @@

    editor

    -

    manage-children

    +

    manage-children

    Some resource management commands, such as resource stop, when the target resource is a group, may not always produce desired result. Each element, group and the primitive members, can have a @@ -3189,7 +3465,7 @@

    manage-childre ask, the user will be asked for each member what is to be done.

    -

    output

    +

    output

    crm can adorn configurations in two ways: in color (similar to for instance the ls --color command) and by showing keywords in upper case. Possible values are plain, color-always, color, @@ -3201,25 +3477,25 @@

    output

    --color=always).

    -

    pager

    +

    pager

    The view command displays text through a pager. Use this to specify your preferred pager program. If not set, it will default to either the value of the PAGER environment variable or to one of the standard UNIX system pagers (less,more,pg).

    -

    reset

    +

    reset

    This command resets all user options to the defaults. If used as a single-shot command, the rc file ($HOME/.config/crm/rc) is reset to the defaults too.

    -

    save

    +

    save

    Save current settings to the rc file ($HOME/.config/crm/rc). On further crm runs, the rc file is automatically read and parsed.

    -

    set

    +

    set

    Sets the value of an option. Takes the fully qualified name of the option as argument, as displayed by show all.

    The modified option value is stored in the user-local @@ -3237,7 +3513,7 @@

    set

    -

    show

    +

    show

    Display all current settings.

    Given an option name as argument, show will display only the value of that argument.

    @@ -3256,7 +3532,7 @@

    show

    -

    skill-level

    +

    skill-level

    Based on the skill-level setting, the user is allowed to use only a subset of commands. There are three levels: operator, administrator, and expert. The operator level allows only @@ -3276,12 +3552,12 @@

    skill-level
    Note on security

    The skill-level option is advisory only. There is nothing stopping any users change their skill level (see -Access Control Lists (ACL) on how to enforce +Access Control Lists (ACL) on how to enforce access control).

    -

    sort-elements

    +

    sort-elements

    crm by default sorts CIB elements. If you want them appear in the order they were created, set this option to no.

    Usage:

    @@ -3296,7 +3572,7 @@

    sort-elements

    -

    user

    +

    user

    Sufficient privileges are necessary in order to manage a cluster: programs such as crm_verify or crm_resource and, ultimately, cibadmin have to be run either as root or as the @@ -3317,7 +3593,7 @@

    user

    -

    wait

    +

    wait

    In normal operation, crm runs a command and gets back immediately to process other commands or get input from the user. With this option set to yes it will wait for the started @@ -3336,7 +3612,7 @@

    wait

    -

    configure - CIB configuration

    +

    configure - CIB configuration

    This level enables all CIB object definition commands.

    The configuration may be logically divided into four parts: nodes, resources, constraints, and (cluster) properties and @@ -3366,11 +3642,6 @@

    configure - CIB confi clone (promotable clones)

    -
  • -

    -ms/master (master-slave) (deprecated) -

    -
  • In order to streamline large configurations, it is possible to define a template which can later be referenced in primitives:

    @@ -3461,7 +3732,7 @@

    configure - CIB confi to the element which follows. If the element moves, its comments will follow.

    -

    acl_target

    +

    acl_target

    Defines an ACL target.

    Usage:

    @@ -3475,7 +3746,7 @@

    acl_target

    -

    alert

    +

    alert

    Version note
    @@ -3528,13 +3799,12 @@

    alert

    -

    bundle

    +

    bundle

    A bundle is a single resource specifying the settings, networking requirements, and storage requirements for any number of containers generated from the same container image.

    -

    Pacemaker bundles support Docker (since version 1.1.17) and rkt (since -version 1.1.18) container technologies.

    -

    A bundle must contain exactly one docker or rkt element.

    +

    Pacemaker bundles support Docker and Podman container technologies.

    +

    A bundle must contain exactly one docker or podman element.

    The bundle definition may contain a reference to a primitive resource which defining the resource running inside the container.

    @@ -3553,7 +3823,7 @@

    bundle

    -

    cib

    +

    cib

    This level is for management of shadow CIBs. It is available at the configure level to enable saving intermediate changes to a shadow CIB instead of to the live cluster. This short excerpt @@ -3566,15 +3836,15 @@

    cib

    Note how the current CIB in the prompt changed from live to test-2 after issuing the cib new command. See also the -CIB shadow management for more information.

    +CIB shadow management for more information.

    -

    cibstatus

    +

    cibstatus

    Enter edit and manage the CIB status section level. See the -CIB status management section.

    +CIB status management section.

    -

    clone

    +

    clone

    The clone command creates a resource clone. It may contain a single primitive resource or one group of resources.

    Promotable clones are clone resources with the promotable=true meta-attribute for the given promotable resources. @@ -3600,7 +3870,7 @@

    clone

    -

    colocation (collocation)

    +

    colocation (collocation)

    This constraint expresses the placement relation between two or more resources. If there are more than two resources, then the constraint is called a resource set.

    @@ -3622,7 +3892,7 @@

    colocation node-attribute value to color as well, the colocated resources will be placed on any node that has the same color.

    For more details on how to configure resource sets, see -Syntax: Resource sets.

    +Syntax: Resource sets.

    Usage:

    @@ -3647,7 +3917,7 @@

    colocation

    -

    commit

    +

    commit

    Commit the current configuration to the CIB in use. As noted elsewhere, commands in a configure session don’t have immediate effect on the CIB. All changes are applied at one point in time, @@ -3667,7 +3937,7 @@

    commit

    -

    default-timeouts

    +

    default-timeouts

    This command takes the timeouts from the actions section of the resource agent meta-data and sets them for the operations of the primitive.

    @@ -3688,7 +3958,7 @@

    default-tim

    -

    delete

    +

    delete

    Delete one or more objects. If an object to be deleted belongs to a container object, such as a group, and it is the only resource in that container, then the container is deleted as well. Any @@ -3702,7 +3972,7 @@

    delete

    -

    edit

    +

    edit

    This command invokes the editor with the object description. As with the show command, the user may choose to edit all objects or a set of objects.

    @@ -3719,18 +3989,12 @@

    edit

    Note on renaming element ids

    The edit command sometimes cannot properly handle modifying element ids. In particular for elements which belong to group or -ms resources. Group and ms resources themselves also cannot be +promotable resources. Group and promotable resources themselves also cannot be renamed. Please use the rename command instead.

    -

    erase

    -
    -
    -
    Deprecation note
    -

    crm configure erase is deprecated. -The replacement could be crm cluster remove [node]

    -
    +

    erase

    The erase clears all configuration. Apart from nodes. To remove nodes, you have to specify an additional keyword nodes.

    Note that removing nodes from the live cluster may have some @@ -3742,7 +4006,7 @@

    erase

    -

    fencing_topology

    +

    fencing_topology

    If multiple fencing (stonith) devices are available capable of fencing a node, their order may be specified by fencing_topology. The order is specified per node.

    @@ -3794,7 +4058,7 @@

    fencing_top

    -

    filter

    +

    filter

    This command filters the given CIB elements through an external program. The program should accept input on stdin and send output to stdout (the standard UNIX filter conventions). As @@ -3833,7 +4097,7 @@

    filter

    -

    get-property

    +

    get-property

    Show the value of the given property. If the value is not set, the command will print the default value for the property, if known.

    If no property name is passed to the command, the list of known @@ -3857,7 +4121,7 @@

    get-property

    -

    graph

    +

    graph

    Create a graphviz graphical layout from the current cluster configuration.

    Currently, only dot (directed graph) is supported. It is @@ -3888,7 +4152,7 @@

    graph

    -

    group

    +

    group

    The group command creates a group of resources. This can be useful when resources depend on other resources and require that those resources start in order on the same node. A common use of resource @@ -3897,10 +4161,6 @@

    group

    Grouped resources are started in the order they appear in the group, and stopped in the reverse order. If a resource in the group cannot run anywhere, resources following it in the group will not start.

    -

    group can be passed the "container" meta attribute, to indicate that -it is to be used to group VM resources monitored using Nagios. The -resource referred to by the container attribute must be of type -ocf:heartbeat:Xen, ocf:heartbeat:VirtualDomain or ocf:heartbeat:lxc.

    Usage:

    @@ -3915,13 +4175,11 @@

    group

    group internal_www disk0 fs0 internal_ip apache \
    -  meta target_role=stopped
    -
    -group vm-and-services vm vm-sshd meta container="vm"
    + meta target_role=stopped
    -

    load

    +

    load

    Load a part of configuration (or all of it) from a local file or a network URL. The replace method replaces the current configuration with the one from the source. The update method @@ -3947,10 +4205,10 @@

    load

    -

    location

    +

    location

    location defines the preference of nodes for the given -resource. The location constraints consist of one or more rules -which specify a score to be awarded if the rule matches.

    +resource. The location constraints are defined by a single rule +which specifies a score to be awarded if the rule matches.

    The resource referenced by the location constraint can be one of the following:

      @@ -3978,15 +4236,17 @@

      location

      The resource-discovery attribute allows probes to be selectively enabled or disabled per resource and node.

    The syntax for resource sets is described in detail for -colocation.

    +colocation.

    For more details on how to configure resource sets, see -Syntax: Resource sets.

    +Syntax: Resource sets.

    For more information on rule expressions, see -Syntax: Rule expressions.

    +Syntax: Rule expressions.

    +

    Note: pacemaker has deprecated support for multiple top-level rules +within a location constraint since version 2.1.8.

    Usage:

    -
    location <id> <rsc> [<attributes>] {<node_pref>|<rules>}
    +
    location <id> <rsc> [<attributes>] {<node_pref>|<rule>}
     
     rsc :: /<rsc-pattern>/
             | { resource_sets }
    @@ -3996,9 +4256,8 @@ 

    location

    location + | weekyears=<value>

    Examples:

    @@ -4033,8 +4291,8 @@

    location

    location conn_1 internal_www 100: node1 location conn_1 internal_www \ - rule 50: #uname eq node1 \ - rule pingd: defined pingd + rule 50: #uname eq node1 and \ + defined pingd location conn_2 dummy_float \ rule -inf: not_defined pingd or pingd number:lte 0 @@ -4044,7 +4302,7 @@

    location

    -

    modgroup

    +

    modgroup

    Add or remove primitives in a group. The add subcommand appends the new group member by default. Should it go elsewhere, there are after and before clauses.

    @@ -4061,7 +4319,7 @@

    modgroup

    -

    monitor

    +

    monitor

    Monitor is by far the most common operation. It is possible to add it without editing the whole resource. Also, long primitive definitions may be a bit uncluttered. In order to make this @@ -4082,61 +4340,7 @@

    monitor

    be shown as part of the primitive definition.

    -

    ms (master)

    -

    The ms command creates a master/slave resource type. It may contain a -single primitive resource or one group of resources.

    -

    Usage:

    -
    -
    -
    ms <name> <rsc>
    -  [description=<description>]
    -  [meta attr_list]
    -  [params attr_list]
    -
    -attr_list :: [$id=<id>] <attr>=<val> [<attr>=<val>...] | $id-ref=<id>
    -
    -

    Example:

    -
    -
    -
    ms disk1 drbd1 \
    -  meta notify=true globally-unique=false
    -
    -
    -
    -
    Note on ms deprecated
    -

    From Pacemaker-2.0, the resource type referred to as "master/slave", -"stateful", or "multi-state" is no longer a separate resource type, -but a variation of clone now referred to as a "promotable clone". -For backward compatibility, above configurations are also accepted.

    -
    -
    -
    clone disk1 drbd1 \
    -  meta promotable=true notify=true globally-unique=false
    -
    -
    -
    -
    -
    Note on id-ref usage
    -

    Instance or meta attributes (‘params` and meta) may contain -a reference to another set of attributes. In that case, no other -attributes are allowed. Since attribute sets’ ids, though they do -exist, are not shown in the crm, it is also possible to -reference an object instead of an attribute set. crm will -automatically replace such a reference with the right id:

    -
    -
    -
    crm(live)configure# primitive a2 www-2 meta $id-ref=a1
    -crm(live)configure# show a2
    -primitive a2 apache \
    -    meta $id-ref=a1-meta_attributes
    -    [...]
    -
    -

    It is advisable to give meaningful names to attribute sets which -are going to be referenced.

    -
    -
    -
    -

    node

    +

    node

    The node command describes a cluster node. Nodes in the CIB are commonly created automatically by the CRM. Hence, you should not need to deal with nodes unless you also want to define node @@ -4152,7 +4356,7 @@

    node

    [utilization [$id=<id>] [<score>:] [rule...] <param>=<value> [<param>=<value>...]] | $id-ref=<ref> -type :: normal | member | ping | remote +type :: member | remote

    Example:

    @@ -4162,10 +4366,10 @@

    node

    -

    op_defaults

    +

    op_defaults

    Set defaults for the operations meta attributes.

    For more information on rule expressions, see -Syntax: Rule expressions.

    +Syntax: Rule expressions.

    Usage:

    @@ -4178,7 +4382,7 @@

    op_defaults

    -

    order

    +

    order

    This constraint expresses the order of actions on two resources or more resources. If there are more than two resources, then the constraint is called a resource set.

    @@ -4194,7 +4398,7 @@

    order

    scores 0 and inf to keywords advisory and mandatory. That is still valid but deprecated.

    For more details on how to configure resource sets, see -Syntax: Resource sets.

    +Syntax: Resource sets.

    Usage:

    @@ -4224,7 +4428,7 @@

    order

    -

    primitive

    +

    primitive

    The primitive command describes a resource. It may be referenced only once in group, or clone objects. If it’s not referenced, then it is placed as a single resource in the CIB.

    @@ -4254,7 +4458,7 @@

    primitiveMaster/Slave resources are deprecated and replaced by Promoted/Unpromoted promotable resources if desired.

    A template may be defined for resources which are of the same type and which share most of the configuration. See -rsc_template for more information.

    +rsc_template for more information.

    Attributes containing time values, such as the interval attribute on operations, are configured either as a plain number, which is interpreted as a time in seconds, or using one of the following @@ -4338,17 +4542,39 @@

    primitive

    +
    +
    +
    Note on id-ref usage
    +

    Instance or meta attributes (‘params` and meta) may contain +a reference to another set of attributes. In that case, no other +attributes are allowed. Since attribute sets’ ids, though they do +exist, are not shown in the crm, it is also possible to +reference an object instead of an attribute set. crm will +automatically replace such a reference with the right id:

    +
    +
    +
    crm(live)configure# primitive a2 www-2 meta $id-ref=a1
    +crm(live)configure# show a2
    +primitive a2 apache \
    +    meta $id-ref=a1-meta_attributes
    +    [...]
    +
    +

    It is advisable to give meaningful names to attribute sets which +are going to be referenced.

    +
    -

    property

    -

    Set cluster configuration properties. To list the -available cluster configuration properties, use the -ra info command with cluster as arguments. +

    property

    +

    Set cluster configuration properties. When setting the maintenance-mode property, it will inform the user if there are nodes or resources that have the maintenance property.

    +

    If no property name is passed to the command, the list of known +cluster properties is printed.

    +

    To print one property’s help, use the --help option; Or use <Tab> +to complete the help text for the property on interactive mode.

    For more information on rule expressions, see -Syntax: Rule expressions.

    +Syntax: Rule expressions.

    Usage:

    @@ -4357,12 +4583,13 @@

    property

    Example:

    -
    property stonith-enabled=true
    +
    property stonith-enabled --help
    +property stonith-enabled=true
     property rule date spec years=2014 stonith-enabled=false
    -

    ptest (simulate)

    +

    ptest (simulate)

    Show PE (Policy Engine) motions using ptest(8) or crm_simulate(8).

    A CIB is constructed using the current user edited configuration @@ -4370,7 +4597,7 @@

    ptest (ptest (or crm_simulate) to show changes which would happen if the configuration is committed.

    The status section may be loaded from another source and modified -using the cibstatus level commands. In that case, the +using the cibstatus level commands. In that case, the ptest command will issue a message informing the user that the Policy Engine graph is not calculated based on the current status section and therefore won’t show what would happen to the @@ -4398,7 +4625,7 @@

    ptest (

    -

    refresh

    +

    refresh

    Refresh the internal structures from the CIB. All changes made during this session are lost.

    Usage:

    @@ -4408,7 +4635,7 @@

    refresh

    -

    rename

    +

    rename

    Rename an object. It is recommended to use this command to rename a resource, because it will take care of updating all related constraints and a parent resource. Changing ids with the edit @@ -4421,7 +4648,7 @@

    rename

    -

    role

    +

    role

    An ACL role is a set of rules which describe access rights to CIB. Rules consist of an access right read, write, or deny and a specification denoting part of the configuration to which @@ -4441,7 +4668,7 @@

    role

    status is necessary for various monitoring tools such as crm_mon(8) (aka crm status).

    For more information on rule expressions, see -Syntax: Rule expressions.

    +Syntax: Rule expressions.

    Usage:

    @@ -4476,10 +4703,10 @@

    role

    -

    rsc_defaults

    +

    rsc_defaults

    Set defaults for the resource meta attributes.

    For more information on rule expressions, see -Syntax: Rule expressions.

    +Syntax: Rule expressions.

    Usage:

    @@ -4492,7 +4719,7 @@

    rsc_defaults

    -

    rsc_template

    +

    rsc_template

    The rsc_template command creates a resource template. It may be referenced in primitives. It is used to reduce large configurations with many similar resources.

    @@ -4527,7 +4754,7 @@

    rsc_template

    -

    rsc_ticket

    +

    rsc_ticket

    This constraint expresses dependency of resources on cluster-wide attributes, also known as tickets. Tickets are mainly used in geo-clusters, which consist of multiple sites. A ticket may be @@ -4536,7 +4763,7 @@

    rsc_ticket resource (or resources) if the ticket is revoked. The default is either stop or demote depending on whether a resource is multi-state.

    -

    See also the site set of commands.

    +

    See also the site set of commands.

    Usage:

    @@ -4554,13 +4781,13 @@

    rsc_ticket

    -

    rsctest

    +

    rsctest

    Test resources with current resource configuration. If no nodes are specified, tests are run on all known nodes.

    The order of resources is significant: it is assumed that later resources depend on earlier ones.

    If a resource is multi-state, it is assumed that the role on -which later resources depend is master.

    +which later resources depend is Promoted.

    Tests are run sequentially to prevent running the same resource on two or more nodes. Tests are carried out only if none of the specified nodes currently run any of the specified resources. @@ -4582,11 +4809,11 @@

    rsctest

    -

    save

    +

    save

    Save the current configuration to a file. Optionally, as XML. Use - instead of file name to write the output to stdout.

    The save command accepts the same selection arguments as the show -command. See the help section for show +command. See the help section for show for more details.

    Usage:

    @@ -4602,51 +4829,32 @@

    save

    -

    schema

    +

    schema

    CIB’s content is validated by a RNG schema. Pacemaker supports -several, depending on version. At least the following schemas are -accepted by crmsh:

    -
    -

    Use this command to display or switch to another RNG schema.

    +several, depending on version. You can see all supported schemas by +typing <TAB><TAB> after crm configure schema.

    +

    Note that it is highly recommended to use the latest schema version.

    Usage:

    -
    schema [<schema>]
    +
    schema [<pacemaker-schema_version>]

    Example:

    -
    schema pacemaker-1.1
    +
    # To get the schema version of the current CIB, or the latest version if no cluster configured yet
    +schema
    +
    +# To set the new schema version
    +schema pacemaker-4.0
    +
    +# Then need to run `commit` to make the change effective
    +# if it's on interactive mode
    +commit
    -

    set

    +

    set

    Set the value of a configured attribute. The attribute must configured previously, and can be an agent parameter, meta attribute, utilization value or operation value.

    @@ -4672,7 +4880,7 @@

    set

    -

    show

    +

    show

    The show command displays CIB objects. Without any argument, it displays all objects in the CIB, but the set of objects displayed by show can be limited to only objects with the given IDs or by using @@ -4728,7 +4936,7 @@

    show

    | obscure:<glob> ...] -type :: node | primitive | group | clone | ms | rsc_template +type :: node | primitive | group | clone | rsc_template | location | colocation | order | rsc_ticket | property | rsc_defaults | op_defaults @@ -4756,7 +4964,7 @@

    show

    -

    tag

    +

    tag

    Define a resource tag. A tag is an id referring to one or more resources, without implying any constraints between the tagged resources. This can be useful for grouping conceptually related @@ -4775,10 +4983,10 @@

    tag

    -

    template

    +

    template

    The specified template is loaded into the editor. It’s up to the user to make a good CRM configuration out of it. See also the -template section.

    +template section.

    Usage:

    @@ -4791,18 +4999,17 @@

    template

    -

    upgrade

    +

    upgrade

    Attempts to upgrade the CIB to validate with the current version. Commonly, this is required if the error CIB not supported occurs. It typically means that the active CIB version is coming from an older release.

    -

    As a safety precaution, the force argument is required if the -validation-with attribute is set to anything other than -0.6. Thus in most cases, it is required.

    +

    As a safety precaution, the force argument is required. +Or, you can use crm -F option to do the force upgrade.

    Usage:

    -
    upgrade [force]
    +
    upgrade <force>

    Example:

    @@ -4811,14 +5018,14 @@

    upgrade

    -

    user

    +

    user

    Users which normally cannot view or manage cluster configuration can be allowed access to parts of the CIB. The access is defined by a set of read, write, and deny rules as in role definitions or by referencing roles. The latter is considered best practice.

    For more information on rule expressions, see -Syntax: Rule expressions.

    +Syntax: Rule expressions.

    Usage:

    @@ -4836,7 +5043,7 @@

    user

    -

    validate-all

    +

    validate-all

    Call the validate-all action for the resource, if possible.

    Limitations:

    -

    verify

    +

    verify

    Verify the contents of the CIB which would be committed.

    Usage:

    @@ -4872,7 +5079,7 @@

    verify

    -

    xml

    +

    xml

    Even though we promissed no xml, it may happen, but hopefully very very seldom, that an element from the CIB cannot be rendered in the configuration language. In that case, the element will be @@ -4889,14 +5096,14 @@

    xml

    -

    template - Import configuration from templates

    +

    template - Import configuration from templates

    User may be assisted in the cluster configuration by templates prepared in advance. Templates consist of a typical ready configuration which may be edited to suit particular user needs.

    This command enters a template level where additional commands for configuration/template management are available.

    -

    apply

    +

    apply

    Copy the current or given configuration to the current CIB. By default, the CIB is replaced, unless the method is set to "update".

    @@ -4909,7 +5116,7 @@

    apply

    -

    delete

    +

    delete

    Remove a configuration. The loaded (active) configuration may be removed by force.

    Usage:

    @@ -4919,7 +5126,7 @@

    delete

    -

    edit

    +

    edit

    Edit current or given configuration using your favourite editor.

    Usage:

    @@ -4928,7 +5135,7 @@

    edit

    -

    list

    +

    list

    When called with no argument, lists existing templates and configurations.

    Given the argument templates, lists the available templates.

    @@ -4940,7 +5147,7 @@

    list

    -

    load

    +

    load

    Load an existing configuration. Further edit, show, and apply commands will refer to this configuration.

    Usage:

    @@ -4950,7 +5157,7 @@

    load

    -

    new

    +

    new

    Create a new configuration from one or more templates. Note that configurations and templates are kept in different places, so it is possible to have a configuration name equal a template name.

    @@ -4976,7 +5183,7 @@

    new

    -

    show

    +

    show

    Process the current or given configuration and display the result.

    Usage:

    @@ -4986,7 +5193,7 @@

    show

    -

    cibstatus - CIB status management and editing

    +

    cibstatus - CIB status management and editing

    The status section of the CIB keeps the current status of nodes and resources. It is modified only on events, i.e. when some resource operation is run or node status changes. For obvious @@ -5002,14 +5209,14 @@

    cibstatus - CIB statu allow the user to load status sections from various sources and then insert or modify resource operations or change nodes’ state.

    The effect of those changes may then be observed by running the -ptest command at the configure level +ptest command at the configure level or simulate and run commands at this level. The ptest runs with the user edited CIB whereas the latter two commands run with the CIB which was loaded along with the status section.

    The simulate and run commands as well as all status modification commands are implemented using crm_simulate(8).

    -

    load

    +

    load

    Load a status section from a file, a shadow CIB, or the running cluster. By default, the current (live) status section is modified. Note that if the live status section is modified it @@ -5035,7 +5242,7 @@

    load

    -

    node

    +

    node

    Change the node status. It is possible to throw a node out of the cluster, make it a member, or set its state to unclean.

    @@ -5082,7 +5289,7 @@

    node

    -

    op

    +

    op

    Edit the outcome of a resource operation. This way you can tell CRM that it ran an operation and that the resource agent returned certain exit code. It is also possible to change the @@ -5115,7 +5322,7 @@

    op

    -

    origin

    +

    origin

    Show the origin of the status section currently in use. This essentially shows the latest load argument.

    Usage:

    @@ -5125,7 +5332,7 @@

    origin

    -

    quorum

    +

    quorum

    Set the quorum value.

    Usage:

    @@ -5139,7 +5346,7 @@

    quorum

    -

    run

    +

    run

    Run the policy engine with the edited status section.

    Add a string of v characters to increase verbosity. Specify scores to see allocation scores also. utilization turns on @@ -5158,7 +5365,7 @@

    run

    -

    save

    +

    save

    The current internal status section with whatever modifications were performed can be saved to a file or shadow CIB.

    If the file exists and contains a complete CIB, only the status @@ -5179,7 +5386,7 @@

    save

    -

    show

    +

    show

    Show the current status section in the XML format. Brace yourself for some unreadable output. Add changed option to get a human readable output of all changes.

    @@ -5190,7 +5397,7 @@

    show

    -

    simulate

    +

    simulate

    Run the policy engine with the edited status section and simulate the transition.

    Add a string of v characters to increase verbosity. Specify @@ -5210,7 +5417,7 @@

    simulate

    -

    ticket

    +

    ticket

    Modify the ticket status. Tickets can be granted and revoked. Granted tickets could be activated or put in standby.

    Usage:

    @@ -5226,7 +5433,7 @@

    ticket

    -

    assist - Configuration assistant

    +

    assist - Configuration assistant

    The assist sublevel is a collection of helper commands that create or modify resources and constraints, to simplify the creation of certain @@ -5234,7 +5441,7 @@

    assist - Configuration a

    For more information on individual commands, see the help text for those commands.

    -

    template

    +

    template

    This command takes a list of primitives as argument, and creates a new rsc_template for these primitives. It can only do this if the primitives do not already share a template and are of the same type.

    @@ -5245,7 +5452,7 @@

    template

    -

    weak-bond

    +

    weak-bond

    A colocation between a group of resources says that the resources should be located together, but it also means that those resources are dependent on each other. If one of the resources fails, the others @@ -5264,7 +5471,7 @@

    weak-bond

    -

    maintenance - Maintenance mode commands

    +

    maintenance - Maintenance mode commands

    Maintenance mode commands are commands that manipulate resources directly without going through the cluster infrastructure. Therefore, it is essential to ensure that the cluster does not attempt to monitor @@ -5272,7 +5479,7 @@

    maintenance - Maint

    To ensure this, these commands require that maintenance mode is set either for the particular resource, or for the whole cluster.

    -

    action

    +

    action

    Invokes the given action for the resource. This is done directly via the resource agent, so the command must be issued while the cluster or the resource is in @@ -5297,7 +5504,7 @@

    action

    -

    off

    +

    off

    Disables maintenances mode, either for the whole cluster or for the given resource.

    Usage:

    @@ -5313,7 +5520,7 @@

    off

    -

    on

    +

    on

    Enables maintenances mode, either for the whole cluster or for the given resource.

    Usage:

    @@ -5330,7 +5537,7 @@

    on

    -

    history - Cluster history

    +

    history - Cluster history

    Examining Pacemaker’s history is a particularly involved task. The number of subsystems to be considered, the complexity of the configuration, and the set of various information sources, most of @@ -5371,7 +5578,7 @@

    history - Cluster histo crm(live)history#

    -

    detail

    +

    detail

    How much detail to show from the logs. Valid detail levels are either 0 or 1, where 1 is the highest detail level. The default detail level is 0.

    @@ -5389,7 +5596,7 @@

    detail

    -

    diff

    +

    diff

    A transition represents a change in cluster configuration or state. Use diff to see what has changed between two transitions.

    @@ -5414,7 +5621,7 @@

    diff

    -

    events

    +

    events

    By analysing the log output and looking for particular patterns, the events command helps sifting through the logs to find when particular events like resources @@ -5433,7 +5640,7 @@

    events

    -

    exclude

    +

    exclude

    If a log is infested with irrelevant messages, those messages may be excluded by specifying a regular expression. The regular expressions used are Python extended. This command is additive. @@ -5452,10 +5659,10 @@

    exclude

    -

    graph

    +

    graph

    Create a graphviz graphical layout from the PE file (the transition). Every transition contains the cluster configuration -which was active at the time. See also generate a directed graph from configuration.

    +which was active at the time. See also generate a directed graph from configuration.

    Usage:

    @@ -5473,7 +5680,7 @@

    graph

    -

    info

    +

    info

    The info command provides a summary of the information source, which can be either a live cluster snapshot or a previously generated report.

    @@ -5489,7 +5696,7 @@

    info

    -

    latest

    +

    latest

    The latest command shows a bit of recent history, more precisely whatever happened since the last cluster change (the latest transition). If the transition is running, the shell will @@ -5506,7 +5713,7 @@

    latest

    -

    limit (timeframe)

    +

    limit (timeframe)

    This command can be used to modify the time span to examine. All history commands look at events within a certain time span.

    For the live source, the default time span is the last hour.

    @@ -5562,7 +5769,7 @@

    limit (

    -

    log

    +

    log

    Show messages logged on one or more nodes. Leaving out a node name produces combined logs of all nodes. Messages are sorted by time and, if the terminal emulations supports it, displayed in @@ -5585,7 +5792,7 @@

    log

    -

    node

    +

    node

    Show important events that happened on a node. Important events are node lost and join, standby and online, and fence. Use either node names or extended regular expressions.

    @@ -5601,7 +5808,7 @@

    node

    -

    peinputs

    +

    peinputs

    Every event in the cluster results in generating one or more Policy Engine (PE) files. These files describe future motions of resources. The files are listed as full paths in the current @@ -5622,7 +5829,7 @@

    peinputs

    -

    refresh

    +

    refresh

    This command makes sense only for the live source and makes crm collect the latest logs and other relevant information from the logs. If you want to make a completely new report, specify @@ -5634,11 +5841,11 @@

    refresh

    -

    resource

    +

    resource

    Show actions and any failures that happened on all specified resources on all nodes. Normally, one gives resource names as arguments, but it is also possible to use extended regular -expressions. Note that neither groups nor clones or master/slave +expressions. Note that neither groups nor clones or promotable clone names are ever logged. The resource command is going to expand all of these appropriately, so that clone instances or resources which are part of a group are shown.

    @@ -5656,7 +5863,7 @@

    resource

    -

    session

    +

    session

    Sometimes you may want to get back to examining a particular history period or bug report. In order to make that easier, the current settings can be saved and later retrieved.

    @@ -5682,7 +5889,7 @@

    session

    -

    setnodes

    +

    setnodes

    In case the host this program runs on is not part of the cluster, it is necessary to set the list of nodes.

    Usage:

    @@ -5697,7 +5904,7 @@

    setnodes

    -

    show

    +

    show

    Every transition is saved as a PE file. Use this command to render that PE file either as configuration or status. The configuration output is the same as crm configure show.

    @@ -5716,7 +5923,7 @@

    show

    -

    source

    +

    source

    Events to be examined can come from the current cluster or from a crm report report. This command sets the source. source live sets source to the running cluster and system logs. If no source @@ -5739,7 +5946,7 @@

    source

    -

    transition

    +

    transition

    This command will print actions planned by the PE and run graphviz (dotty) to display a graphical representation of the transition. Of course, for the latter an X11 session is required. @@ -5793,7 +6000,7 @@

    transition

    -

    transitions

    +

    transitions

    A transition represents a change in cluster configuration or state. This command lists the transitions in the current timeframe.

    Usage:

    @@ -5808,7 +6015,7 @@

    transitions

    -

    wdiff

    +

    wdiff

    A transition represents a change in cluster configuration or state. Use wdiff to see what has changed between two transitions as word differences on a line-by-line basis.

    @@ -5834,7 +6041,7 @@

    wdiff

    -

    report

    +

    report

    See "crm help report" or "crm report --help"