Enable iSCSI Target server role and configure in Windows Server 2012

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:

1iscsitargeta

2iscsitargeta

2.Choose the Role-based or feature-based installation option and click next:

3iscsitargeta

3.Select the server you want to enable iSCSI Target and click next:

4iscsitargeta

4. Select the iSCSI Target Role :

5iscsitargeta

and click Add Feature and click next:

6iscsitargeta

7iscsitargeta

5. Click install  to confirm the installation:

8iscsitargeta

10iscsitargeta

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:

11iscsitargeta

7. Select Volume or Custom Path for select iSCSI virtual disk location:

12iscsitargeta

8. Give a name for virtual disk and click next:

13iscsitargeta

9. Specify size and type for virtual  disk and click Next:

14iscsitargeta

15iscsitargeta

10. Give a name for Target Name and click next:

16iscsitargeta

11. Click Add and select method to identify the initiator and click OK and then click Next:

17iscsitargeta

18iscsitargeta

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  :

19iscsitargeta

13. Click Create :

20iscsitargeta

21iscsitargeta

Once all completed you will see iSCSI target created:

22iscsitargeta

14. To connect iSCSI target Launch the iSCSI initiator Properties from Server Manager -> Tools

23iscsitargeta

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.

24iscsitargeta

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:

25iscsitargeta

If you Enable CHAP click on the Advanced button andspecify CHAP information:

26iscsitargeta

17. Connection established.

27iscsitargeta

You can see your iSCSI disk under Disks, You can make online it , create volume and use it.

28iscsitargeta