A client host group is a collection of client hosts. When you associate a storage resource with a client host group, it is associated with all client hosts in the group.
Procedure
Run the following command on any node in the cluster to view all client host groups:
zbs-meta host_group listOutput example
ID Name Description
------------------------------------ ------------------- -------------
26bbbf0d-1c66-4ed6-b7cd-01e420137ce5 test-group-1
adf9f50f-2ed9-46d2-9891-581ea28e9239 test-group-3
eb01b152-4565-46cf-b67c-b958d8c56b24 test-group-2Output note
| Parameter | Description |
|---|---|
ID | The client host group ID. |
Name | The client host group name. |
Description | The client host group description. |
Procedure
Run the following command on any node in the cluster to view the basic information and associated storage resources of a specified client host group.
View by client host group name:
zbs-meta host_group show <host_group_name> [--show_associated_resources]View by client host group ID:
zbs-meta host_group show_by_id <host_group_id> [--show_associated_resources]| Parameter | Description |
|---|---|
--show_associated_resources | Optional. Displays the associated storage resource information about the client host group. If not specified, the information is not displayed. |
host_group_name | The client host group name. |
host_group_id | The client host group ID. |
Output example
----------- ------------------------------------
ID 26bbbf0d-1c66-4ed6-b7cd-01e420137ce5
Name test-group-1
Description
----------- ------------------------------------
Associated Targets
Target ID
------------------------------------
2734d5ce-006e-4b35-a69c-fffefea1dcc0
Associated Luns
Parent Target ID Lun ID
------------------------------------ --------
2734d5ce-006e-4b35-a69c-fffefea1dcc0 1
69af0b7d-e684-4cd6-9d46-d9f459daa36f 2
No subsystem associated
No namespace associatedOutput note
Client host group basic information
| Parameter | Description |
|---|---|
ID | The client host group ID. |
Name | The client host group name. |
Description | The client host group description. |
Associated storage resource information
Associated iSCSI target information
| Parameter | Description |
|---|---|
Target ID | The target ID. |
Associated iSCSI LUN information
| Parameter | Description |
|---|---|
Parent Target ID | The ID of the target to which the LUN belongs. |
Lun ID | The LUN ID. |
Associated NVMe subsystem information
| Parameter | Description |
|---|---|
Subsystem ID | The subsystem ID. |
Associated NVMe namespace information
| Parameter | Description |
|---|---|
Parent Subsystem ID | The ID of the subsystem to which the namespace belongs. |
NS ID | The namespace ID. |
Procedure
Run the following command on any node in the cluster to create a client host group and set its name and description:
zbs-meta host_group create <host_group_name> [--desc DESC]| Parameter | Description |
|---|---|
host_group_name | The client host group name. |
--desc <DESC> | The client host group description. |
Output example
----------- ------------------------------------
ID 45787fff-83fc-4d3b-9535-1c5934e4886b
Name test-host-group
Description test-desc
----------- ------------------------------------Procedure
Run the following command on any node in the cluster to update the client host group. This is a full update command, and all parameters must be specified:
zbs-meta host_group update <host_group_name> <new_host_group_name> <desc>| Parameter | Description |
|---|---|
host_group_name | The name of the client host group. |
new_host_group_name | Renames the client host group. |
desc | Updates the client host group description. |
Output example
----------- ------------------------------------
ID 45787fff-83fc-4d3b-9535-1c5934e4886b
Name new-test-host-group
Description new-desc
----------- ------------------------------------Procedure
Run the following command on any node in the cluster to delete the client host group:
Delete by client host group name:
zbs-meta host_group delete <host_group_name>
Delete by client host group ID:
zbs-meta host_group delete_by_id <host_group_id>
| Parameter | Description |
|---|---|
host_group_name | The name of the client host group. |
host_group_id | The ID of the client host group. |
Output note
If the command succeeds, no output is displayed.