Using iSCSI to save you Media Center SSD

Talk about setting up your home network.
Post Reply
Venom51

Posts: 568
Joined: Sun Jun 12, 2011 7:12 pm
Location: Cumming,GA

HTPC Specs: Show details

Using iSCSI to save you Media Center SSD

#1

Post by Venom51 » Wed Aug 03, 2016 6:44 pm

I thought I would take a moment to document a method for using iSCSI to attach a magnetic disk over the network to make available to Media Center for buffering of live TV and for recording. You'll need a handful of things.

1. A Media Center client with an SSD
2. Host capable of producing an iSCSI target. This can be a Windows server, a NAS device that supports iSCSI targets, an old PC running Window 7 with the free Starwind iSCSI target software or a machine running Freenas. All of those should work for this purpose.

Start with setting up and configuring the iSCSI target server. In this example I'll use Windows 2012 R2 as that is what I am running at home. It is not loaded by default during installation so you'll have to add the Role. Open server manager, click add roles and features, find the File and Storage services item and under it select the "iSCSI Target Server".

Image

Once added you can then use the iSCSI wizard to create you targets. In the Server Manager go to the File and Storage Services menu item. When it populates find the iSCSI section.

Image

Run the wizard and it will step you through making a target. Select the drive on which you want the target to live.

Image

Click Next and give it a name.

Image

Now we have to decide on the size. The one foot note I'll add here is that when I did the math on the buffer files it looked like 20 gigs would be plenty but Media Center complained of the drive being too small. 30 Gig was the smallest I could make it and have Media Center not complain. Now I also decided to use a dynamically expanding disk sized at 100 gigs since it will only ever use the amount it needs for the buffer it should never grow that big. If you record to that drive then obviously it will need to grow to accommodate the new recordings.

Image

Click next and select New iSCSI Target.

Image

Name it and click next. I usually follow the same naming convention.

Image

Click next. Now is where we tied it to the machine on which it will be used. This consists of knowing the target name and using the iSCSI initiator on the client machine. I recommend at this point you go to the client machine and start the iSCSI initiator wizard from the administrative tools panel as that will start the iSCSI initiator service and set it to auto start on reboot.

Image

Click the "Discovery" tab and click add a discover portal. Enter the IP or DNS name of the host presenting the iSCSI target.

Image

Once you have done so leave the iSCSI initiator open and go back to the Target host. Now click on Add under Access Servers. Yo should be presented with a list of available initiators. Select the one to which you want to attach the target and click OK.

Image

Now go back to the client machine and select the Targets tab and hit refresh. You should see the name of the available target. Then click connect.

Image

It will then show up in disk a manager on the local machine as disk that needs to be initialized and partitioned. These rest is just relocating the TempRec folder. The link to those instructions is here.

Once you start playing video in Media center you should see no disk activity on the SSD. I did not include instructions for enabling authentication on the iSCSI connection as that just complicates matters a little and really isn't needed for this purpose. I also did not get into creating a VLAN in which to isolate the iSCSI traffic as for this purpose it should not be an issue. If I was setting up a high volume storage network to back end a rack of servers that would be different.

Venom51

Posts: 568
Joined: Sun Jun 12, 2011 7:12 pm
Location: Cumming,GA

HTPC Specs: Show details

#2

Post by Venom51 » Mon Jan 09, 2017 9:58 pm

So I've been running the house via the iSCSI setup since I posted this and I have to tell you it works perfectly. Obviously if your network goes to pot so does this but as long as the network is solid and runs well this performs beautifully.

User avatar
Scallica

Posts: 2797
Joined: Mon Jun 06, 2011 7:09 pm
Location: USA!

HTPC Specs: Show details

#3

Post by Scallica » Tue Jan 10, 2017 2:20 am

Is your iSCSI traffic co-mingled with your regular LAN traffic or do you have iSCSI in a VLAN?
HTPC Enthusiast / Forum Moderator - TGB.tv Code of Conduct

Venom51

Posts: 568
Joined: Sun Jun 12, 2011 7:12 pm
Location: Cumming,GA

HTPC Specs: Show details

#4

Post by Venom51 » Tue Jan 10, 2017 4:10 am

It's all in the segment. It's not like it's a high volume storage array. If I was pushing a couple gigs of traffic to and from that iSCSI box it would be worth it to stick it in a separate VLAN but for this purpose it's just not necessary. Even if I had 9 encoders to server every location in the house an active stream that would still be only 90 megs of traffic in each direction. At best if all 3 encoders are occupied we are talking 30 megs of bi-directional traffic. Well within the reason for a gig network. Hell they are hitting a single spindle in that server anyway as it's not part of the rest of the raid array in that machine. That way when it fails from being beat up all the time it's a quick and simple single drive swap out.

Post Reply