This page describes how to create a host group .
Before you begin
Before you create a host group, you need to obtain the iSCSI qualified name (IQN) for each client you intend to include in the host group.
To obtain the IQN from a Linux iSCSI client, do the following:
-
Access your Linux machine using SSH.
-
Find the IQN.
sudo cat /etc/iscsi/initiatorname.iscsi
-
Note the value displayed after InitiatorName=. For example, iqn.1994-05.com.redhat:client1.
To obtain the IQN from a Windows iSCSI client:
-
Open iSCSI Initiatorfrom the Startmenu.
-
Navigate to the Configurationtab.
-
Note the value in the Initiator Namefield. For example, iqn.1991-05.com.microsoft:client1.
Create a host group
Use the following instructions to create a host group using the Google Cloud console or Google Cloud CLI.
Console
-
Go to the NetApp Volumespage in the Google Cloud console.
-
Click Host groupsfrom the External connectionsmenu.
-
Click Create.
-
In the Host group detailssection, complete the following steps:
-
Enter a name for the host group in the Host group namefield. The name must be unique for each location.
-
Optional: enter a description for the host group in the Descriptionfield.
-
-
In the Locationsection, select the Regionfrom the drop-down list.
-
In the Configurationsection, select the Operating systemtype that corresponds to your iSCSI client.
-
Optional: in the Labelssection, click Add labelto enter relevant labels for reporting and querying purposes.
-
Click Continue.
-
In the Host detailssection, enter the iSCSI qualified name (IQN) of the host accessing the volume in the Initiator 1field.
-
Click Add initiatorto specify additional IQNs.
-
Click Create.
gcloud
To create a host group:
gcloud beta netapp host-groups create HOST_GROUP_NAME \ --location = LOCATION \ --type = ISCSI_INITIATOR \ --hosts = HOSTS \ --os-type = OS_TYPE \ --description = DESCRIPTION
Replace the following information:
-
HOST_GROUP_NAME: the name for the host group. -
LOCATION: the Google Cloud location (region) for the host group creation. -
HOSTS: a comma-separated list of host identifiers (IQNs) to include in the host group. -
OS_TYPE: the operating system of the hosts. The supported values includeLINUX,WINDOWS, andESXI. -
DESCRIPTION: Optional: a description for the host group.

