FreeNAS 8.0 iSCSI 3 – Configuring Targets And Extents

FreeNAS 8.0 iSCSI 3 – Configuring Targets And Extents

Configuring Targets And Extents

The final step in configuring iSCSI on a FreeNAS Version 8.0 RELEASE server is to configure the Targets and Extents.  For this article we will be configuring an iSCSI Disk Target.  An iSCSI Disk Target effectively takes one of the disks in the server and deploys it to the Initiators (Clients) as a Raw block device.  The presented iSCSI Disk will be just like a new hard disk in the Initiator (Client) machine and will require partitioning and formatting before use.

Configuring iSCSI Disk Targets

The first part of the configuration is to configure the Target required.  To configure the Target perfom the following steps :-

  • Logon to the FreeNAS Web Console as an administrative account
  • Expand Services in the left hand pane and then expand iSCSI
  • Expand the Targets branch and click on Add Target
  • Configure the Target Name to the desired name
  • Configure the Type as Disk
  • Configure the Portal Group ID as 1 (The Portal set up in the first article)
  • Configure the Initiator Group ID as 1 (The Initiator Group set up in the first article)
  • Click on OK to create the new Target

Configuring Device Extents

The next part of the configuration is to configure the Extent required on the server for our iSCSI Disk Target which is a Device Extent.  To configure the Device Extent perform the following steps :-

  • Logon to the FreeNAS Web Console as an administrative account
  • Expand Services in the left hand pane and then expand iSCSI
  • Expand the Device Extents branch and click on Add Extent
  • Configure the Extent Name to desired name
  • From the Disk Device drop down box select the disk ID required

N.B. Ensure you select the correct Disk Device ID

  • Click on OK to create the new Device Extent

Associating The Target And Extent

The final part of the configuration is to associate the Target with the Extent on the server.  To associate the Target with the Extent perform the following steps :-

  • Logon to the FreeNAS Web Console as an administrative account
  • Expand Services in the left hand pane and then expand iSCSI
  • Expand the Target / Extents branch and click on Add Target / Extent
  • From the Target drop down box select the iSCSI Disk Target required
  • From the Extent drop down box select the Device Extent required
  • Click on OK to create the new Association