In the previous recipe, you created an iSCSI target. In this recipe, you will implement an iSCSI initiator that enables you to use the iSCSI target across the iSCSI network. You use the iSCSI feature included in Windows Server 2016 (and Windows 10) to access the target. Note that, by default, the iSCSI initiator does not start automatically. To use an initiator on an iSCSI client computer, you have to start the service (msiscsi
) and enable the service to start on reboot automatically.
This recipe, which you run on server FS1
, assumes you have created an iSCSI target as shown on the Creating an iSCSI target recipe.
- Adjust the startup type and start the service:
Set-Service -Ma,e msiscsi -StartupType 'Automatic'Start-Service =Name msiscsi
- Add the iSCSI portal:
New-IscsiTargetPortal ` -TargetPortalAddress Srv1.Reskit.Org ` -TargetPortalPortNumber 3260
- Find the
SalesTarget
iSCSI target on the portal:
$Target = Get-IscsiTarget...