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 Initiator from the Start menu.
Navigate to the Configuration tab.
Note the value in the Initiator Name field. 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 Volumes page in the Google Cloud console.
Click Host groups from the External connections menu.
Click Create.
In the Host group details section, complete the following steps:
Enter a name for the host group in the Host group name field. The name must be unique for each location.
Optional: enter a description for the host group in the Description field.
In the Location section, select the Region from the drop-down list.
In the Configuration section, select the Operating system type that corresponds to your iSCSI client.
Optional: in the Labels section, click Add label to enter relevant labels for reporting and querying purposes.
Click Continue.
In the Host details section, enter the iSCSI qualified name (IQN) of the host accessing the volume in the Initiator 1 field.
Click Add initiator to 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.