OK or ERROR.
Commands
The storage device commands have the general form:MANAGE STORAGE DEVICE command [ parameters ].
STORAGE DEVICE ADD
This command adds one or more storage devices to the system. A storage device is added to a specific node. It is assigned to a module when the module is added in that node (see MODULE ADD above) and cannot be assigned to an existing module. This command is accepted only if the system is theSETUP state.
Synopsis
FORCE
Optional parameter. By default, a storage device will not be added if it already belongs to a different Regatta system. If this option is specified, devices that belong to another Regatta system will be added.
The device will be removed from the other system by force, and the impact on the other system is undefined.
NODE
Required parameter. The name of the node in which the storage device is added.
NAME
Required parameter. This name must be unique among all of the system’s storage devices, and will be used to identify the devices in queries and other commands.
DESCRIPTION
Optional parameter. Free text that is added to the storage device.
PATH
Required parameter. Specify the path to the device inside the node.
When using shared networked storage devices, it’s important to specify a path that will not change if the node is restarted or if the module is moved to another node. One way to accomplish that is to use a path based on the device’s universally unique ID (UUID).
STORAGE DEVICE MODIFY
This command modifies the attributes of a storage device. SynopsisPATH
Required parameter. Specify the local path to the device inside the node.
When using shared networked storage devices, it’s important to specify the uuid-based path so that the module will be reconnected to the same device when it’s moved to another node.
If the device is assigned to an active module, changing the path will take effect in the module only upon module restart.
DESCRIPTION
Optional parameter. Free text that is added to the storage device.
STORAGE DEVICE SHOW
This command shows the attributes of storage devices. Synopsis- A list of storage devices and their basic attributes
- A detailed list of attributes for a specific storage device
FILTER
Filter the result by some criterion. In the first variant of this command, nodes can be filtered by state. In the second variant, attributes can be filtered by attribute name. Currently the filtering is by exact match, no support for regular expressions. Only one filter can be specified.
DETAILED
Show a more detailed list of attributes for each module. See more details in the Output section below.
Output
For the first variant, the output of the command is tabular, with each row representing a storage device. The following table lists the columns of the output. If the DETAILED option is specified, then in addition to those columns, all the attributes listed below in the output of STORAGE DEVICE SHOW ATTR command are also included for each storage device. In this variant, only their current values are shown and not their set values.
For the second variant, the output of the command is tabular, with each row representing an attribute of the specified storage device. The following table lists the columns of the output.
For each of the columns listed in the output of the first variant, there is a row in the second variant’s output.