Monday, October 4, 2010

How Easy to configure ISCSI Target with Powershell integration

So as we know that Windows Storage Server 2008 R2 has been RTM and MSDN and Technet subscribers can evaluate Microsoft ISCSI Target 3.3 for Development, Test and all other non-production purposes. You can install ISCSI target on any windows server 2008 R2 system [Physical or Virtual] and then present storage from same as Vdisks. The Microsoft ISCSI Software Target 3.3 can only be installed on Windows Server 2008 R2 but not any other OS.

The cool functionality of new ISCSI target 3.3 is integration with powershell and in below screencast you will see how easy it is to automate Target creation, configuration and presentation of Vdisks to initiator servers using powershell in less than 2 minutes.

3 line powershell script which does the magic

New-IscsiServerTarget -TargetName "yyyyy" -InitiatorID IPAddress:zzzzz

New-IscsiVirtualDisk "C:\xxxxx.vhd" -size 50MB

Add-VirtualDiskTargetMapping "yyyyyy" "C:\xxxx.vhd"
Hope you find this information interesting and dont forget to try ISCSI Target 3.3 yourself!


1 comment: