Recently I took on the challenge of converting some of my home server disk space to iSCSI SAN storage.  While this may seem like overkill for a household network (and you may be right), I had several reasons that drove me to this solution.  However, the main reason and the focus of this article was to simplify network storage for my Windows Vista Media Center setup.

In my case I wanted to add additional storage to my living room Media Center PC.  I had been toying with the idea for sometime, but had only limited success configuring Media Center to use a network location for it's television recording storage.  The advantage that an iSCSI SAN provided was that any storage pools appear to the Media Center PC as a local drive.  With this goal in mind I set off into the unknown ...

After several nights of research, a few false starts, and a load of caffeine I came up with a workable solution.  Here is a quick breakdown of the software I used:

  • Microsoft Windows Server 2008
  • Microsoft Windows Visa Ultimate
  • Rocket Division StarWind
  • iSCSI Initiator

Windows Server is not required and there are quite a few different ways this could be configured, but this is the setup I had on hand at the time. 

The basic plan of action was to use a spare hard drive in the server as an iSCSI target, point the living room PC to this target, then configure Vista Media Center to use the new storage.

  1. Install StarWind on the server.
  2. Configure storage on the server as an iSCSI target.
  3. Configure iSCSI Initiator on the client PC.
  4. Configure applications to use new storage location.

What is a Target and What is an Initiator?
In the iSCSI world a "target" is the storage being served.  The "initiator" is the client requesting access to the target storage.  In the example illustrated here the target is the stored shared by the Windows Server 2008.  The initiator is the Windows Vista Media Center.

 

Setting up the Server
The server setup starts by downloading and installing the iSCSI target software.  Rocket Division provides a great solution StarWind that will do exactly what is needed.  Even better this software is completely free for our basic needs. 

I downloaded StarWind and installed the application on my Windows Server 2008 machine.  The setup is straight forward, and I had no problems what so ever.  Once installed, I fired up the StarWind program and then commenced scratching my head.  Fortunately once I determine what needed to be done, the process proved to be quite simple.

Login to the Default Connection
When you look at main screen of StarWind for the first time you should see just the basic information.  At this point there isn't much you can do.  The trick is to right-click "localhost:3260" and select "Connect".  When prompted for a username and password enter "test" into both fields and click the OK button.  Once the connection has been established devices (storage) need to added.

StarWind01

Add a Device
Adding a device is the process of assigning storage space to the iSCSI connection.  This is the space that will become a local drive on a client machine.  To add a device simply right-click on the connection "localhost:3260" and select "Add Device".  From the "Device type selection" window choose Disk Bridge device.  This will assign an entire physical hard drive as an iSCSI target.

StarWind02

There are quite a few different choices for the type of device to assign.  I had a new drive I wished to allocate entirely to my media center.  If you wish to use only a portion of a drive you could use an "Image File device" instead.  This creates the iSCSI target within a single file on the server.  You can specify the file size and even enlarge if you decide you need more storage in the future.

Next you must select the physical drive you would like to assign as a target.  Make sure you verify the physical drive number in the Disk Management because PhysicalDrive0 may not be your C:\ drive.  You want to be sure not to specify your C:\ system drive since the local system will no longer be able to access the targeted drive.

StarWind03

Finally you can name the device.  I gave mine the simple name of "Data", just to ensure that I knew which device was the one I just created.  After the device is created successfully you should be directed back to the main StarWind screen, only now the new device you added should display below the "localhost:3260" connection.

StarWind04 StarWind05

 

Setting up the Media Center PC
The client PC setup really just consists of configuring the storage using Microsoft's iSCSI Initiator program.  This application is included in Windows Vista, but it can be downloaded free for use with other Microsoft operating systems.

Add a Target Portal
The first thing to do when you run the iSCSI Initiator is to select the "Discovery" tab and configure a target portal.  The target portal is the machine hosting the iSCSI storage, in our case the Windows Server 2008 machine running StarWind.  Simply click the "Add Portal" button enter the network name or IP address of the target portal and click "OK". 

iSCSIInitiator01 iSCSIInitiator02

Add a Target
Once the target portal has been assigned, select the "Targets" tab.  This should now display any iSCSI target devices you have added to the target portal.  In our example, an iSCSI target named "data" should display.  Highlight the desired target and click the "Log on" button.  Check "Automatically restore this connection when the computer restarts", and click "OK".

iSCSIInitiator03 iSCSIInitiator04

Assign a Drive Letter
Once the target has been configured, a new drive letter should automatically be drive be assigned.  Once you verify the storage is available you can permanently assign that drive letter by selecting the "Volumes and Devices" tab and clicking the "Autoconfigure" button.  This step will reduce confusion as it ensures that the drive letter will not change.

iSCSIInitiator05

Configuring Media Center
Once I completed the iSCSI configuration on both my Windows Server 2008 and on my Windows Vista PC I was able to move my Media Center recording over to the new drive.  I then added the new drive letter as a location for Recorded TV from the Media Center application.  No special configurations or hacks to Media Center were necessary because the storage appeared as if it were a local hard drive.  Media Center now goes about it's way happily never caring that the data is stored on another computer in my office upstairs.

 

Summary
So after overcoming the unknown factor of the iSCSI world the actual process is quite simple.  I have repeated this process for several other storage solutions I have been needing.  The setup is simple and the solution can resolve a wide variety of issues.  I hope this walk though will break down the barrier to entry for others who may wish to use some of this more advanced technology, without becoming an enterprise network administrator.