How to create an iSCSI target with FreeNAS

FreeNAS, among its many sharing options, offers a complete support to iSCSI. We’ve already seen how to create an iSCSI target on Windows Server 2012 and 2012 R2, with FreeNAS you can set up an iSCSI target even faster, just a bunch of clicks and you’ll be ready.

The first step is to enable the iSCSI service. Open the Control Services tab under the menu Services and launch the iSCSI service:

How to create an iSCSI target with FreeNAS

Navigate to the Block (iSCSI) menu:

How to create an iSCSI target with FreeNAS

Under the Portals tab click Add Portal:

How to create an iSCSI target with FreeNAS

You’ll be able to configure a network interface (with its IP address) as the Portal:

How to create an iSCSI target with FreeNAS

Go to the Target tab and click Add Target:

How to create an iSCSI target with FreeNAS

Give it a name and select the Portal Group ID (in our example there’s only an ID available):

How to create an iSCSI target with FreeNAS

An Extent is a storage unit shared through iSCSI. You can use a physical device or a file as Extent. In our example we configured a file (so a virtual storage unit) deployed in our RaidZ volume. We chose a maximum size of 2GB:

How to create an iSCSI target with FreeNAS

How to create an iSCSI target with FreeNAS

The Extent must be associated to a Target, a quite easy step:

How to create an iSCSI target with FreeNAS

How to create an iSCSI target with FreeNAS

Configuration completed! You can now connect your Windows PC/server to the iSCSI target. Open the iSCSI Initiator from the Control Panel. Specify the IP address used during the Portal configuration and click Quick Connect:

How to create an iSCSI target with FreeNAS

How to create an iSCSI target with FreeNAS

Go to the Volume and Devices tab and click Auto Configure:

How to create an iSCSI target with FreeNAS

The new volume will appear:

How to create an iSCSI target with FreeNAS

You’re ready to use the new iSCSI volume:

How to create an iSCSI target with FreeNAS

Comments