meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| domestic:rosplatforma:man:shaman [2023/01/26 14:18] – [OPTIONS] mchus | domestic:rosplatforma:man:shaman [2023/01/26 14:34] (current) – mchus | ||
|---|---|---|---|
| Line 22: | Line 22: | ||
| ===== DESCRIPTION | ===== DESCRIPTION | ||
| - | '' | + | '' |
| Cluster resources are objects in R-Storage clusters, such as virtual machines and Containers, configured to be managed by the R-Virtualization high availability tool. | Cluster resources are objects in R-Storage clusters, such as virtual machines and Containers, configured to be managed by the R-Virtualization high availability tool. | ||
| Line 28: | Line 28: | ||
| ===== OPTIONS | ===== OPTIONS | ||
| - | These options can be used with any '' | + | These options can be used with any '' |
| - | Set the ''// | + | Set the ''// |
| - | * '' | + | * '' |
| * '' | * '' | ||
| * '' | * '' | ||
| Line 39: | Line 39: | ||
| ===== COMMANDS | ===== COMMANDS | ||
| - | **join** [**-r, --ignore-res**] | + | |
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | * '' | ||
| + | * '' | ||
| + | * ' ' - no resource types can be relocated to the node; | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | <WRAP center round info 60%> | ||
| + | For details on creating custom resource types, see '' | ||
| + | </ | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * if a resource is available on the current node but is not registered in the shaman cluster, then the resource will be registered in the shaman cluster; | ||
| + | * if a resource is not available on the current node but is registered in the shaman cluster, then the resource will be unregistered from the shaman cluster; | ||
| + | * if a resource is available on the current node and registered in the shaman cluster but its parameters (e.g., the resource relocation priority) differ, then the resource parameters in the shaman cluster will be updated with the corresponding values from the actual resource available on the current node. | ||
| - | Enable high availability | + | The '' |
| - | **leave** [**-n, --node-ip** //< | + | The '' |
| - | + | ||
| - | Disable high availability support. If an IP address or an internal ID is specified, high availability support is disabled for the corresponding node. You can obtain the IP address and internal ID of a node using the **stat** command. | + | |
| - | + | ||
| - | **stat** [**-X, --xml**] [**-g, --group**] [**-n, --node-ip** //< | + | |
| - | < | + | |
| - | + | ||
| - | Retrieve cluster statistics once and print it in text or XML format (for the latter, specify the **-X, --xml** option). | + | |
| - | + | ||
| - | **top** [**-g, --group**] [**-n, --node-ip** //< | + | |
| - | + | ||
| - | Show dynamic cluster statistics in real time. | + | |
| - | + | ||
| - | **get-config** [**-X, --xml**] | + | |
| - | + | ||
| - | Print the global configuration settings in text or XML format. For more details, see **shaman.conf**(5). | + | |
| - | + | ||
| - | **set-config** [// | + | |
| - | + | ||
| - | Set the global configuration settings. See shaman.conf(5) for more details. If no //key=val// pairs are specified in the command line, the configuration parameters are read from standard input. | + | |
| - | + | ||
| - | **get-config-local** | + | |
| - | + | ||
| - | Print the local configuration settings in text format. For more details, see **shaman.conf**(5). | + | |
| - | + | ||
| - | **get-roles** [**-X, --xml**] | + | |
| - | + | ||
| - | Show the list of roles set for the local node. | + | |
| - | + | ||
| - | **set-roles** <// | + | |
| - | + | ||
| - | Set the list of roles for the local node.\\ | + | |
| - | Roles set for the node specify which types of resources can be relocated to the node. These roles are selected from the list of all resource types supported on the node (see ’list-supported-roles’ further). The list of roles must be separated by commas and contain no whitespaces. An asterisk (’*’) placed at the beginning of the list stands for "all roles" and means that any supported resource types can be relocated to the node. The asterisk can only be followed by one or more role names prefixed with a tilde (’~’) that excludes a role from "all roles" | + | |
| - | Examples: ’’ - no resource types can be relocated to the node; ’*’ - all types of resources can be relocated to the node; ’CT, | + | |
| - | Note: For details on creating custom resource types, see ’man shaman-scripts’. | + | |
| - | + | ||
| - | **list-supported-roles** | + | |
| - | + | ||
| - | Show the list of all roles (resource types) supported on the local node. | + | |
| - | + | ||
| - | **cleanup-broken** | + | |
| - | + | ||
| - | Attempt to relocate all broken resources to a local node without starting them. After relocation these resources can be manually migrated to desired nodes. Files of broken resources which cannot be relocated are deleted. | + | |
| - | + | ||
| - | **sync** [**-D, --dry-run**] | + | |
| - | + | ||
| - | Synchronize the list of resources registered on the current node with the list of actually available resources.\\ | + | |
| - | Rarely, the list of resources registered on a node becomes desynchronized with the actual list of clustering resources available on a node. This can happen due to software errors in multiple components. This command can be used to keep the list of resources registered on a node (from shaman’s point of view) up to date with the list of resources actually available on the current node. If the **-D, --dry-run** option is specified, then **sync** only prints the actions, but does not execute them.\\ | + | |
| - | The command synchronizes resources according to the following rules: | + | |
| - | + | ||
| - | - if a resource is available on the current node but is not registered in the shaman cluster, then the resource will be registered in the shaman cluster; | + | |
| - | + | ||
| - | - if a resource is not available on the current node but is registered in the shaman cluster, then the resource will be unregistered from the shaman cluster; | + | |
| - | + | ||
| - | - if a resource is available on the current node and registered in the shaman cluster but its parameters (e.g., the resource relocation priority) differ, then the resource parameters in the shaman cluster will be updated with the corresponding values from the actual resource available on the current node. | + | |
| - | + | ||
| - | The **stat** and **top** commands support the grouped mode when used with **-g, --group** option. In this mode, all resources are divided into three groups according to their state: (**Active**, | + | |
| - | + | ||
| - | The **stat** and **top** commands can show statistics only for the nodes with specific IP addresses, if the **-n, --node-ip** option is specified, or with specific internal IDs, if the **-N, --node-id** option is specified. In this case, the commands show the statistics only for the resources hosted on the specified node. | + | |
| ===== INTERACTIVE COMMANDS | ===== INTERACTIVE COMMANDS | ||
| - | The following interactive keyboard commands are available when running the **shaman top** command. | + | The following interactive keyboard commands are available when running the '' |
| - | ||**g**||Group or ungroup resources by their status.|| | + | |
| - | ||**v**||Show or hide additional information. | + | * '' |
| - | + | * '' | |
| - | **ENTER** or **SPACE** | + | * '' |
| - | + | * '' | |
| - | Update the screen. | + | |
| - | + | ||
| - | **q** or **Esc** or **CTRL-C** | + | |
| - | + | ||
| - | Quit the command. | + | |
| - | + | ||
| - | ||**h**||Show the help screen.|| | + | |
| ===== DISPLAYED FIELDS EXPLANATION | ===== DISPLAYED FIELDS EXPLANATION | ||
| - | The **shaman stat** and **shaman top** commands display the following information: | + | The '' |
| - | + | ||
| - | **OVERALL STATISTICS**\\ | + | |
| - | Overview of cluster nodes and resources controlled by **shaman** monitor. **\\ | + | |
| - | Nodes** | + | |
| - | + | ||
| - | Total number of nodes for which high availability is enabled. | + | |
| - | + | ||
| - | **Resources** | + | |
| - | + | ||
| - | Total number of resources controlled by **shaman**. | + | |
| - | + | ||
| - | **NODES STATISTICS**\\ | + | |
| - | Detailed statistics for each node controlled by **shaman**. **\\ | + | |
| - | SPECIAL MARKS** | + | |
| - | + | ||
| - | Node where you run the **shaman** command is marked with *****. The master node is marked with the **M** letter. | + | |
| - | + | ||
| - | **NODE_IP** | + | |
| - | + | ||
| - | IP address assigned to the node. | + | |
| - | + | ||
| - | **STATUS** | + | |
| - | + | ||
| - | State of the node. Cluster resources can be relocated to **Active** nodes only. The possible states are: **\\ | + | |
| - | Active** -- The node and the **shaman-monitor** daemon are up and running. **\\ | + | |
| - | Inactive** -- The node or the **shaman-monitor** daemon is down. **\\ | + | |
| - | No license** -- The R-Virtualization license is not installed on the node. **\\ | + | |
| - | Evacuating** -- The node has crashed and its resources are being relocated to other nodes by the master instance of the **shaman-monitor** daemon. **\\ | + | |
| - | Skipped** -- The node has crashed and its resources have not been relocated to other nodes due to the RELOCATION_SKIP_THRESHOLD limit (see shaman.conf(5)). **\\ | + | |
| - | Unknown** -- Node state cannot be determined. | + | |
| - | + | ||
| - | **NODE_ID** | + | |
| - | Internal ID of the node. | + | '' |
| + | * '' | ||
| + | * '' | ||
| - | **ROLES** | + | '' |
| - | Roles of the node. | + | '' |
| - | **RESOURCES** | + | '' |
| - | Number | + | '' |
| + | * '' | ||
| + | | ||
| + | | ||
| + | | ||
| + | * '' | ||
| + | * '' | ||
| - | **RESOURCES STATISTICS**\\ | + | '' |
| - | Detailed statistics for each resource controlled by **shaman-monitor**. **\\ | + | |
| - | SPECIAL MARKS** | + | |
| - | Resources waiting for relocation are marked with **P** (’Pool’ state). Resources that shaman-monitor has failed to relocate are marked with **B** (’Broken’ state). | + | '' |
| - | **OWNER_IP** | + | '' |
| - | IP address of the node hosting the resource. | + | '' |
| - | **OWNER_ID** | + | '' |
| - | Internal ID of the node hosting the resource. | + | '' |
| - | **PRIORITY** | + | '' |
| - | A positive value determining the relocation priority of a resource. Resources with a higher priority are relocated first. The default value is 0. | + | '' |
| - | **NOTES**\\ | + | '' |
| - | The resource statistics usually contains several resource-related fields such as **ID**, **PWRR**, and **NAME**. These fields are defined by the resource descriptions retrieved from the respective resource scripts and can be customized to meet your needs. See **shaman-scripts**(8) for details. | + | |
| ===== FILES ===== | ===== FILES ===== | ||
| - | /// | + | '' |
| - | Main **shaman** configuration file; see **shaman.conf**(5) for details. | + | Main '' |
| - | /// | + | '' |
| - | Main resource controlling script used by **shaman**; see **shaman-scripts**(8) for details. | + | Main resource controlling script used by '' |
| ===== DIAGNOSTICS | ===== DIAGNOSTICS | ||
| - | **shaman** returns 0 upon successful execution. If something goes wrong, it returns an appropriate error code: | + | '' |
| ||1 ||System error. | ||1 ||System error. | ||