The iSCSI Target Server is the server component which provides the block storage to initiators.
Follow steps below to set up iSCSI Target server in Windows Server 2012:
1.To Enable iSCSI Target we need to enable iSCSI Target Server role in the Server Manager:
2.Choose the Role-based or feature-based installation option and click next:
3.Select the server you want to enable iSCSI Target and click next:
4. Select the iSCSI Target Role :
and click Add Feature and click next:
5. Click install to confirm the installation:
6. Click Close to exit .
iSCSI Target can be managed by Server Manager. On Server Manager, a new iSCSI page will be displayed, as follow. Click “To create on iSCSI virtual disk, start the New iSCSI Virtual Disk Wizard” to create iSCSI Virtual Disk:
7. Select Volume or Custom Path for select iSCSI virtual disk location:
8. Give a name for virtual disk and click next:
9. Specify size and type for virtual disk and click Next:
10. Give a name for Target Name and click next:
11. Click Add and select method to identify the initiator and click OK and then click Next:
12. CHAP is an authentication mechanism defined by the iSCSI standard to secure access to the target. It allows the initiator to authenticate to the Target, and in reverse allowing the Target to authenticate against the initiator.
Note: You cannot retrieve the CHAP information once it is set. If you lose the CHAP information, it will need to be set again.
This is test that why i will keep this page default :
13. Click Create :
Once all completed you will see iSCSI target created:
14. To connect iSCSI target Launch the iSCSI initiator Properties from Server Manager -> Tools
15. Go to the Discovery tab page and click on the Discover Portal. Add the IP address of the iSCSI Target Server and click OK.
16. On the Targets tab you can see discovered targets, Click Connect , It will allow the initiator to connect to the target and access associated disks:
If you Enable CHAP click on the Advanced button andspecify CHAP information:
17. Connection established.
You can see your iSCSI disk under Disks, You can make online it , create volume and use it.