How to Setup an iSCSI Target Using a Synology DS1812+ NAS

4
Posted November 5, 2012 by Patrick Kennedy in NAS Systems

Today we are going to go over iSCSI Target setup on a Synology NAS, specifically the Synology DS1812+. For those wondering, iSCSI is a block-level protocol for accessing storage. Basically what that means is that the iSCSI client can address storage in a manner very similar to if the storage was a local drive plugged into the machine. Instead of having to read an entire file, it can transfer only the portion needed. With iSCSI we have two different components. The storage server, exposing storage as an iSCSI drive to the client is setup as an iSCSI Target. The client uses the iSCSI initiator. The way to remember this is that the server provides a target for clients to initiate requests. In the past few years, iSCSI has become increasingly popular. For those looking to setup advanced VMware ESXi, Microsoft Hyper-V or Citrix environments, iSCSI is a great feature. In this guide we are going to show how to take the Synology NAS and turn it into an iSCSI target. 

Creating an iSCSI Target with a Synology NAS

Using the Synology DS1812+ NAS that the company provided for testing has shown the unit to be very easy to manage. Synology DiskStation makes setup of most things easy, and as we will see, creating an iSCSI target is one of them. The first step is to open the Synology Storage Manager application and then click on iSCSI target. From here click the create button.

Synology DS1812+ Setup iSCSI Target Screen

Synology DS1812+ Setup iSCSI Target Screen

Here you can create a name for the target. This is a very important step as an environment can have many iSCSI targets. Giving a descriptive name is important to ensure that one does not delete an in-use target later. Enabling CHAP or similar authentication method is usually a good idea.

Synology DS1812+ Create New iSCSI Target

Synology DS1812+ Create New iSCSI Target

The next step is to create a new iSCSI LUN. A LUN is short for logical unit number. LUNs allow for uniquely identifiable targets within a given iSCSI target. Synology makes this easy with a wizard. There are a few options here that you can explore. To keep this a quick guide I am going to use the first option.

Synology DS1812+ Setup iSCSI LUN

Synology DS1812+ Setup iSCSI LUN

The next step in the guide is to set a few properties. Again, descriptive names make administration much easier. Generic names like the below are not the best practice. One can see a few interesting settings. There is a STH guide explaining thin provisioning which is a good read. One can see from the screenshot below that you can create the LUN first, then the target. If you go that way, you can map the LUN to an existing target or set one up from scratch.

Synology DS1812+ Setup iSCSI LUN Properties

Synology DS1812+ Setup iSCSI LUN Properties

Next you will get a confirmation and then have a few seconds of waiting. At that point everything will be set up. The first screenshot above shows the iSCSI target setup and the below shows the associated LUN we created.

Synology DS1812+ Setup iSCSI LUN Screen

Synology DS1812+ Setup iSCSI LUN Screen

Afterwards, one can click edit and edit the properties of the target and LUN fairly easily. Do not be alarmed if you misclicked some of the advanced options. The key settings are the mapping of LUN to volume, and things like thin provisioning.

Synology DS1812+ Setup iSCSI Edit LUN

Synology DS1812+ Setup iSCSI Edit LUN

Wrapping up, hopefully this looked easy. This is another guide that can be accomplished in no more than a minute. In subsequent guides we are going to show how to use the iSCSI target to do some cool things with Windows 8 Hyper-V, Windows Server 2012, Linux and VMware ESXi. Overall, this is a solid user experience. Synology made setting up an iSCSI target and LUN very simple. For most users, I would strongly recommend using simple network shares as that is much easier. For those that are building a home lab, this is a great feature. With the Synology DS1812+ there is enough capacity and performance to run a decent lab setup using multiple protocols.


About the Author

Patrick Kennedy

Patrick has been running ServeTheHome since 2009 and covers a wide variety of home and small business IT topics. For his day job, Patrick is a management consultant focused in the technology industry and has worked with numerous large hardware and storage vendors in the Silicon Valley. The goal of STH is simply to help users find some information about basic server building blocks. If you have any helpful information please feel free to post on the forums.

4 Comments


  1.  
    Ajay Paul

    hi,

    thanks for the write up.

    im having issues sharing the newly created LUNS from my esxi hosts.

    i can mount to only one host :(, and not the other. im trying to configuere vmware HA and hence the need to view the iscsi datastore.

    any advice would be much appreciated.
    ajay




  2.  
    Gerard in flight

    Did you try multiple sessions?

    Love how easy this is. I tried under napp-it and failed. Better on-screen docs. They did a good job at describing what settings do.




  3.  
    Yoffe

    Bookmarked for when I get one for my home lab. OpenFiler was free but sucked for this. I would rather have something easy to setup and use.




  4.  
    Breakingcustom

    I’m looking at buying a 1812+ and take back my ReadyNAS Ultra 6 (non-pro) and I will be using NFS. Any tests on using NFS? I read there was an issue with it, but was fixed in a patch back in September.





Leave a Response

(required)


Newly Reviewed
 
  • Seagate Pulsar.2 200GB RAID 0 - AS SSD
  • 9.1
    Supermicro X10SRL-F Overview
  • Pliant SanDisk Lightning SLC SAS Drives
  • Linux-Bench Web Parser
  • pfsense update complete
  • Pliant SanDisk Lightning SLC SAS Drives