ISCSI Target Configuration

From CafeWiki

Jump to: navigation, search

This entry addresses the setup and configuration of an iSCSI target on Openfiler. Since I really don't have a clue what I'm doing this will be pretty stream-of-consciousness for the time being.

This blog entry helped to get me started.

  • under Block Devices add partitions to the physical HDs that will be used
  • if RAID is to be used, from Software RAID select the partions for use as a RAID array and create the array (see General Openfiler Configuration)
  • under iSCSI target | Target configuration: Add new iSCSI Target
    • NOTE: Even though it isn't obvious, you do not need to accept the default Target IQN offered in the Add box. It is possible to type in a target IQN of your choosing. I'm not sure how much latitude you really have, but it certainly works to replace the alphanumeric string after the last "." with something more friendly.
      • For example, I used "iqn.2006-01.com.openfiler:tsn.ESX" rather than "iqn.2006-01.com.openfiler:tsn.04a3e8f03bc3" as the target for the ESXi host.
      • This makes it much easier to remember what each target is intended to be used for and to ensure that when you set up an initiator, that you pick the correct target.
    • try mapping a LUN in the next tab - oops, doesn't work
  • head to System | Network Setup and add a new network access configuration
  Name  	Network/Host  	Netmask  	Type
  dave-net 	192.168.100.0 	255.255.255.0 	Share
  • now if you head back to iSCSI target | LUN Mapping you can map a LUN to the target network just set up
  Name	                LUN Path	        R/W Mode	SCSI Serial No.         SCSI Id.	   Transfer Mode	Map LUN
  test iscsi target	/dev/group1/testvol1	write-thru	f6Zb9Z-GYwr-YgUW	f6Zb9Z-GYwr-YgUW   blockio
  • under Services, disable then enable the iSCSI Target Server
  • head back to Volumes and see that testvol1 now shows up as part of group1
  • then I got stuck and wandered away...

NOTE: Depending on where the hard drives have been prior to use in the Openfiler box they may have non-msdos partitions on them. This happened to be the case when I installed Openfiler on one disk while the other disks were disconnected. After the install these drives came up in gpt format. There are a couple of ways to deal with this:

  • If you don't mind starting over, re-install Openfiler with all disks in the system and make sure that Openfiler initializes all of the disks. They don't need to be partitioned, or
  • Pull out the install hard drive, then boot the box with an old DOS or Win98 setup disk and run the DOS fdisk command to initialize each of the disks.
Personal tools