Skip to content

Commit

Permalink
Dev: doc: Add help info for crm sbd sublevel
Browse files Browse the repository at this point in the history
  • Loading branch information
liangxin1300 committed Aug 20, 2024
1 parent 667ca8a commit 5d17668
Showing 1 changed file with 66 additions and 1 deletion.
67 changes: 66 additions & 1 deletion doc/crm.8.adoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:man source: crm
:man version: 4.6.0
:man version: 5.0.0
:man manual: crmsh documentation

crm(8)
Expand Down Expand Up @@ -2012,6 +2012,71 @@ Example:
utilization xen1 set memory 4096
...............

[[cmdhelp_sbd,SBD management]]
=== `sbd` - SBD management

This level is for managing the SBD (STONITH Block Device) daemon.

[[cmdhelp_sbd_configure,configure SBD]]
==== `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
- Newly setup SBD configuration on a running cluster
- Update the existing parameters
- Add more devices to the existing disk-based SBD configuration

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 [device=<dev>]... [watchdog-device=<dev>] [watchdog-timeout=<integer>] [allocate-timeout=<integer>] [loop-timeout=<integer>] [msgwait-timeout=<integer>]
# For disk-less SBD
crm sbd configure show [sysconfig|property]
crm sbd configure device="" [watchdog-device=<dev>] [watchdog-timeout=<integer>]
...............

example:
...............
configure show
configure show disk_metadata
configure show sysconfig
configure show property
configure device="/dev/sdb1;/dev/sdb2"
configure device=/dev/sdb1 device=/dev/sdb2
configure device=/dev/sdb1 watchdog-timeout=30 msgwait-timeout=60
configure device="" watchdog-timeout=30
...............

[[cmdhelp_sbd_status,show SBD status]]
==== `status`

Show the status of the SBD daemon.

Usage:
...............
status
...............

[[cmdhelp_sbd_remove,remove SBD configuration]]
==== `remove`

Remove part of devices from the SBD configuration, or remove SBD
service from the cluster.

Usage:
...............
remove
remove [<device> ...]
...............

[[cmdhelp_node,Node management]]
=== `node` - Node management

Expand Down

0 comments on commit 5d17668

Please sign in to comment.