Configure iSCSI Targets and Initiators and iSCSI Virtual Disks
Configure iSCSI Targets and Initiators and iSCSI Virtual Disks
The iSCSI virtual disk wizard will list only servers for which the iSCSI Target
Server role is installed, and
the created virtual disk will be created under a folder named,
"<driveletter>:\iSCSIVirtualDisk\<name>\<name>.
vhdx"but can be saved under a custom path if desired. iSCSI virtual disks can be
fixed size, dynamically expanding or differencing.
Once the iSCSI virtual disk wizard is completed, you do not have to go through it
again to add more virtual
disks to the storage pool. Instead simply enter, new-iscsivirtualdisk -path
"desired path.vhdx" -size (desired
size in GB, e.g. 10GB).
Clustered disks can be made Clustered Shared Volumes that nodes in the cluster can
write to. Multiple nodes
in the the cluster can write to the CSV at the same time provided that one node is
the CSV co-ordinator, ensuring that no data conflicts occur.
iSCSI virtual disks are enumerated in Server Manager>File and Storage Services
(left hand pane of Server Manager)> iSCSI. Any disks in this list that were created
using the above powershell command won't yet have
an assigned iSCSI target. To add a target for such a disk, right-click on it and
select 'Assign iSCSI target'.
This will allow you to assign either an existing target, or to create a new one.
Adding target servers for the initiator can be done via IP address or DNS name.
A default gateway should be configured on the NIC of each server involved in order
for iSCSI to work properly.
iSCSI virtual disks can be brought online from any server that can see them.
To bring them online, go to File and Storage Services> Disks> right-click iSCSI
virtual disk>
select 'bring online'. To initialize, right click and select 'initialize'. To
create a volume, right-click and
select 'new volume'.