## Creating Fibre Channel hosts 

To create an FC host, complete the following steps: 

1. Rescan the SAN on the SAN Volume Controller system by using the detectmdisk command, as shown in Example 8-16. 

IBM_2145:ITSO:superuser> detectmdisk 

Note:  The detectmdisk  command does not return any response. 

If the zoning is implemented correctly, any new WWPNs should be discovered by the SAN Volume Controller system after running the detectmdisk  command. 

2. List the candidate WWPNs and identify the WWPNs belonging to the new host, as shown in Example 8-17. 

IBM_2145:ITSO-SV1:superuser> lsfcportcandidate fc_WWPN 2100000E1E09E3E9 2100000E1E30E5E8 2100000E1E30E60F 2100000E1EC2E5A2 2100000E1E30E597 2100000E1E30E5EC 

3. Run the mkhost  command with the required parameters, as shown in Example 8-18. 

IBM_2145:ITSO-SV1:superuser> mkhost -name ITSO-VMHOST-03 -fcwwpn 2100000E1E30E597:2100000E1E30E5EC Host, id [3], successfully created IBM_2145:ITSO-SV1:superuser> 

## Creating iSCSI hosts 

Before you create an iSCSI host in the SAN Volume Controller system, you must know the IQN address of the host. To find the IQN of the host, see your host operating system-specific documentation. 

Create a host by completing the following steps: 

1. Create the iSCSI host by using the mkhost  command, as shown in Example 8-19. 

IBM_2145:ITSO-SV1:superuser> mkhost -iscsiname iqn.1994-05.com.redhat:e6ff477b58 -name RHEL-Host-06 Host, id [4], successfully created IBM_2145:ITSO-SV1:superuser> 

2. The iSCSI host can be verified by using the lshost  command, as shown in Example 8-20. 

IBM_2145:ITSO-SV1:superuser> lshost 4 id 4 name RHEL-Host-06 

