Configure iSCSI Target and Initiator - Paiet/Tech-Journal-for-Everything GitHub Wiki
Configure iSCSI Target and Initiator
Internet Small Computer System Interface Mention DAS & SANs Simple Diagram Target gets installed as a role, whereas initiator is baked in and is functioning as the storage client Configure Target
- On Target, SVR01 launch add roles and features wizard or use the following PowerShell cmdlets
Install-WindowsFeature -Name fs-iscsitarget-server -InstallManagementTools
- In Select destination Server, click File and Storage Services, click File and iSCSI Service, and then Select iSCSI Target Server. Click Next. Create iSCSI lUN. To share storage, the first thing to create an iSCSI lun (aka. iSCSI virtual disk) the iSCSI virtual disk is backed by a VHD.
- Launch Server Manager, select "File and Storage Services" tab and then click "iSCSI" tab.
- Click "to create an iSCSI virtual disk, start the new iSCSI virtual disk wizard".
- Select the server and select the volume and then click next.
- On the "Specify iSCSI Virtual Disk name window", assign a name to the virtual disk.
- Select disk size & type.
- In the "Assign iSCSI target "page, choose "New iSCSI Target" option and then click Next.
- On the "Specify target name "page, type the name for the new target, and then click Next.
- Also, you could use initiator ID via CLIENT machine: control panel . system ans security >Administrative tools> iscsi initiator >start it > configuration tab > minimize windows
- Click Next to open Access Server page.
- Click on Add and provide the Initiator Server IP Address or DNS Name . Note: You can see the initiator Server IP address is configured. Similarly, if you have to access this storage from multiple server you have to add each server IP address or DNS name.
Note: Authentication is optional if you want to secure your storage connectivity remotely then you can configure your Password. - Click create.
Note Target Status = Not connected
Configure Remote Connectivity on Initiator
- Go to Discovery tab on minimized window on SVR02, add SVR01 via quick connect
- Select Volumes and Devices tab, then auto configure.
- Launch Server Manager, click Tools menu, and then click iSCSI Target, when click will give this massage.
- Select YES
- Select Discovery tab, then click Discovery Portal, Enter the IP address or DNS name port number of the portal (Target) you want to add. Click Advanced to open Advanced Setting window, on the advanced setting, from the "local adapter" select "Microsoft iSCSI initiator" then from the "initiator IP" Select you IP Address, and then click Ok.
- Select Target and click on Refresh.
- Verify source server from iSCSI page.
Disk Management & Disk Creation Disk Management & Disk Creation
- Launch Disk Management
- To Create New volume, right click in the left-hand corner, click Online.
- Initialize Disk
- Create new simple volume. Note: rt click on disk check out properties
** PowerShell cmdlets** https://docs.microsoft.com/en-us/powershell/module/iscsi/?view=win10-ps
Configure iSCSI Target and Initiator Pt 2
On SVR02 go to initiator properties
- Target Tab
- Typer SVR01
- Done
- Go to Volumes and Devices Tab
- Select Auto Configure
- Show disk management
- Go to SVR01 show iSCSI page and connection and properties.
Internet Storage Name Service (iSNS) https://tools.ietf.org/html/rfc4171 Automatic discovery Service for large enviroments, offereing zones, groups, auto changes based on database.