content_image/1006481.jpg
Figure 12-7 shows the results in the DS GUI. 

<img src='content_image/1006481.jpg'>

The Example 12-54 with the command lshostconnect -l  shows that the relationship between the volume group and a host connection was not completely built up. The assigned host is missing in the last column and the portgrp 0  is used, which is not recommended as it is the default port group for new host ports. There is no host created yet for the AIX connection in our example. 

Be aware that the first column does not show the hostname. It is just a symbolic name for the connection for better recognition. The ID field makes the connection unique. 

dscli> lshostconnect -l Name ID WWPN HostType LBS addrDiscovery Profile portgrp volgrpID ESSIOport host ====================================================================================================================== x3650_2_54 0001 2100001B329CBB21 Linux 512 LUNPolling Linux Server 1 V4 all x3650_2_54 x3650_2_54 0002 2101001B32BCBB21 Linux 512 LUNPolling Linux Server 1 V4 all x3650_2_54 x3550_2_03 0004 21000024FF2D0F86 Windows 512 LUNPolling Windows Server 2 V8 all x3550_2_03 x3550_2_03 0005 21000024FF2D0F87 Windows 512 LUNPolling Windows Server 2 V8 all x3550_2_03 x3550_2_03 0006 21000024FF41D1CE Windows 512 LUNPolling Windows Server 2 V8 all x3550_2_03 x3550_2_03 0007 21000024FF41D1CF Windows 512 LUNPolling Windows Server 2 V8 all x3550_2_03 AIX_Server_01 000A 10000090FA13B914 pSeries 512 reportLUN IBM pSeries - AIX 0 V1 all - AIX_Server_01 000B 10000090FA13B915 pSeries 512 reportLUN IBM pSeries - AIX 0 V1 all - pE950_048 000F C05076068D1B004A pSeries 512 reportLUN IBM pSeries - AIX 4 V3 all pE950_048 pE950_048 0010 C05076068D1B004C pSeries 512 reportLUN IBM pSeries - AIX 4 V3 all pE950_048 

Note:  For best practice, it is not advised to use the host port group ID of 0. This ID ties together a group of SCSI host port objects that are accessing a common volume group. If the port group value is set to zero, the host port is not associated with any port group. It is used by default for ports that are not grouped together yet. 

When hosts are created, you can specify the  -portgrp  parameter. By using a unique port group number for each attached server, you can detect servers with multiple HBAs. 

If you want to use a single command to change the assigned volume group of several host connections (hostconnects) at the same time, assign the hostconnects to a unique port group. Then use the managehostconnect  command. This command changes the assigned volume group for all hostconnects that are assigned to a particular port group. 

## Changing host connections 

If you want to change a host connection, use the chhostconnect  command. This command can be used to change nearly all parameters of the host connection, except for the worldwide port name (WWPN). 

