API Doc
Search Docs...
⌘ K
OverviewDeploymentManagementOperationReferenceGlossary
    ACOS 6.3.0
  • Arcfra Cloud Operating System>
  • CLI command>
  • Managing block storage services

Managing client host groups

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.

Viewing all client host groups

Procedure

Run the following command on any node in the cluster to view all client host groups:

zbs-meta host_group list

Output 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-2

Output note

ParameterDescription
IDThe client host group ID.
NameThe client host group name.
DescriptionThe client host group description.

Viewing basic information and associated storage resource details of a specified client host group

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]
ParameterDescription
--show_associated_resourcesOptional. Displays the associated storage resource information about the client host group. If not specified, the information is not displayed.
host_group_nameThe client host group name.
host_group_idThe 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 associated

Output note

  • Client host group basic information

    ParameterDescription
    IDThe client host group ID.
    NameThe client host group name.
    DescriptionThe client host group description.
  • Associated storage resource information

    • Associated iSCSI target information

      ParameterDescription
      Target IDThe target ID.
    • Associated iSCSI LUN information

      ParameterDescription
      Parent Target IDThe ID of the target to which the LUN belongs.
      Lun IDThe LUN ID.
    • Associated NVMe subsystem information

      ParameterDescription
      Subsystem IDThe subsystem ID.
    • Associated NVMe namespace information

      ParameterDescription
      Parent Subsystem IDThe ID of the subsystem to which the namespace belongs.
      NS IDThe namespace ID.

Creating a client host group

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]
ParameterDescription
host_group_nameThe 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
-----------  ------------------------------------

Updating a client host group

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>
ParameterDescription
host_group_nameThe name of the client host group.
new_host_group_nameRenames the client host group.
descUpdates the client host group description.

Output example

-----------  ------------------------------------
ID           45787fff-83fc-4d3b-9535-1c5934e4886b
Name         new-test-host-group
Description  new-desc
-----------  ------------------------------------

Deleting a client host group

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>

ParameterDescription
host_group_nameThe name of the client host group.
host_group_idThe ID of the client host group.

Output note

If the command succeeds, no output is displayed.