Red Hat Training

A Red Hat training course is available for Red Hat Gluster Storage

4.9. hosts

The host resource type groups all host resources in a Red Hat Storage Console.

Table 4.19. 

Name Type Description Required User Creatable User Updatable
--name string The name of the host. Yes Yes Yes
--address string The IP address or hostname for the host. Yes Yes Yes
--cluster-id | name string Defines the cluster that includes the host. Yes Yes Yes
--port int The port for communication with the VDSM daemon running on the host. No Yes Yes

Example 4.17. Creating a new host

[RHSC shell (connected)]# add host --name Host1 --address host1.example.com --root_password p@55w0rd! --cluster-name Default

Example 4.18. Updating a host

[RHSC shell (connected)]# update host Host1 --name Host2

Example 4.19. Deleting a host

[RHSC shell (connected)]# remove host Host1
The following table lists actions for a host resource.

Table 4.20. Host actions

Action Description
activate Activate a host.
deactivate Deactivate a host.
approve Approve a host.
install Install VDSM on a host.
commitnetconfig Save the network configuration.