Archive for the 'Linux' Category

Jan 31 2008

More VMware Server in Production

Published by Brian under Clustering, Linux, Tlf, vmware

I happened to run across this fella today, who also runs a very large VMware Server farm in a production environment. He makes a few mentions of his architecture which is slightly different than our approach, however it could prove handy to someone else building out such a thing.

2 responses so far

Jan 25 2008

Building the EtherSAN: Part 2

Published by Brian under Clustering, Linux, Networking, Storage, ethersan

In the first part of “Building the EtherSan”, I outlined The Linux Fix’s business needs and reasons for building out an ethernet-based storage area network (SAN), a relatively uncommon platform. In this part I discuss the design and products that were chosen to prove its viability before purchasing equipment for testing.

So the time had come to build out a rig and see if this new idea would work. Worries about a failure of the test were unwarranted: If I ran into a major problem while testing, I would always be able to repurpose the equipment in another fashion.

Here’s a crude diagram of what I was trying to achieve.

As you probably notice, there is a blatant single point of failure–the ethernet switch. Normally, intuition says implement two switches and do failover. Problem is that would require more money in terms of a second switch and additional NICs for the client servers. In my experience the switch would be the least likely to fail, while the servers would be the most likely–so it was a calculated and designed-in risk. Besides, it would be trivial to add another switch and do it “right” at a later date.

I had no prior experience shopping for dedicated disk storage, so to get an idea of what was available I shot an email off to ePowerhouse PC, a customer of ours. I explained the goals we were trying to achieve as well as our need for low entry price.

Terry at ePC has been a great resource for getting The Linux Fix parts quickly, and uncommon ones at that. He made a suggestion of using arrays from a company called Infortrend, since ePC was already a reseller for that particular vendor. After doing some more research I found an Infortrend fiber-based array that used lower-priced (but still high performing) SATA-II hard disks for storage. After some specification digging and decision making, I chose the EonStor A24F-R2430, which provides dual-redundant SATA-to-3bgps Fiber controller modules with an eight-port integrated fiber switch. A nice, elegant, all-in-one solution. Did I mention it supports 24 hard drives? TLF’s storage needs would be solved for quite some time! It turned out to be a great choice, a perfect blend of value and performance for us.

For the head-end NFS cluster servers, I chose a pair of low-end Dell PowerEdge 860 1U servers. The PowerEdge 860 has an available PCIe slot for a fiber host bus adapter (HBA), as well as an optional quad-core Xeon. Being that these servers were going to be clustered, I was not overly concerned with individual redundancy and opted for a cheaper software-based RAID solution on each. However, the pricey Dell Remote Access Controller was necessity because of RedHat’s Cluster Suite. RHCS requires a “fencing” device in order to reboot a server remotely in the event of error–and the DRAC suffices for that task (there are shortcomings to this, do your own research!). As I had mentioned in the previous article, fiber equipment is insanely expensive; in our case the Emulex fiber HBA was 20% of the server price! However, the lower entry price of the PowerEdge 860 offset that and we still ended up with a bargain.

As for the ethernet switch, I fell back to my old reliable favorite, the Dell PowerConnect 5324. It’s worked well for TLF in the past, is reliable, and provides plenty of bang for the buck.

Finally, I purchased twenty four 250 gigabyte SATA-II drives. At the time, 250 gig hard disks were the price-to-value point, and depending on the type of RAID used on the array, we would end up with roughly 5 terabytes of usable space. An important detail that Terry mentioned to me was to ensure the hard drive model was included on Infortrend’s compatibility list, and that made the decision on which models to purchase easier.

Overall price tag for the equipment came out to approximately $16,000, and broke down about like this:

PowerEdge 860 Servers (w/HBA): $1,200/ea
PowerConnect 5234 GigE Switch: $800
EonStor A24F-R2430: $11,000
Seagate SATA HDs 250GB: $2800

Sounds expensive, but when pricing out equivalent storage options from a well-known vendor such as NetApp, $3.00/gb isn’t a bad deal at all. The only thing left was to ensure I was going to get a well performing, expandable storage network.

All that was left to do was wait for the equipment to arrive and being my tests, which will be the topics I cover in the next post. Stay tuned!

2 responses so far

Jan 24 2008

Clever cp enhancement

Published by Brian under Linux, Scripting

A clever fellow I ran across used a dash of strace folded in with some shell functionality to give the ubiquitous `cp’ command a wget-like progress bar:

% cp_p /mnt/raid/pub/iso/debian/debian-2.2r4potato-i386-netinst.iso > /dev/null 

76% [===========================================>                ]

Granted, you could probably do the same with a few pipes and `pv‘, but this gets a medal for cleverness!

Full blog post here.

No responses yet

Jan 16 2008

Building the EtherSAN: Part 1

Published by Brian under Clustering, Linux, Networking, Storage, ethersan

One of the first roadblocks I ran into growing The Linux Fix was disk space. Even a few years ago our primary storage file system was exceeding 450 gigabytes, and growing fast making a flexible storage a key point. After some trials (and errors!) the most recent and cost effective solution has become something we like to call the “Ether-SAN”.

When starting out, local disk storage worked just fine for us. A few large SAS or SCSI drives behind a cached RAID controller offered plenty of performance. Most web hosts start with a single server, and there is really no need to look any further. In fact, that local storage sufficed for us quite a long time–three years–even with a few servers in the mix. When we started running short on other boxes we simply exported some via NFS from the server with space.

Of course this didn’t work for long. The time came when we needed more than one web server to host the same sites. NFS still worked for that, but the problem turned into an architectural one–a “spiderweb” of servers hosting data to each other, letting available storage dictate the network design.

Mixing application and storage boxes is just simply not a good idea. Though it may work at first, tuning and maintaining your installation becomes far more difficult than it needs to be–and that in turn can cause your customers grief. Stop right there! The time had come for us to invest in a central storage platform. This is the first serious dive into investing that The Linux Fix needed to make, and it had dollar signs floating like sugar plums in my head.

Researching storage options always lead to one of two solutions: Network based (NAS, usually over NFS) or direct-attached SAN. First, some background on the idea behind both.

A NAS device sits on the network with the rest of your servers and gets an IP address–just like any other server. Storage from the NAS is served up via the protocol of your choice (NFS for Linux/Unix) and usually doesn’t have a very large price tag. The downside, of course, is that the network is then taxed with your storage traffic and is often limited in expansion to the device or server select to perform this duty. Not much of an improvement over the setup of old other than delaying the inevitable.

Direct attached is basically just a NAS with the ability to plug servers directly into it, usually via fiber channel. This offers fantastic performance, but isn’t really an option unless there is money to burn. Entry level SAN disk arrays ($$$) only offer a few direct-attach points, for which you will need fiber-HBA cards for your servers ($$$). Then when running out of direct-attach points on your SAN, a fiber switch ($$$) is needed. After that is said and done, spending $10,000 building out a fiber-based network isn’t unrealistic–and we had not considered the cost of disks yet.

While pondering the situation, an idea hit. Why not build an ethernet-based SAN, instead of a fiber-based SAN? This would combine the best of both worlds: A dedicated gigabit ethernet network carrying NFS traffic. The final rendition would be an expandable NFS cluster, direct attached to a fiber disk array with redundant controllers and cache. The expensive part–fiber cards and disk array–would remain a fixed cost, and expansion could be done in terms of cheap methods, namely ethernet switches and NFS servers!

So a plan was in place, and it needed some testing before I was going to bet the business on it. Stay tuned, and I’ll touch on the steps taken to build out and test this idea in the next articles.

No responses yet

Oct 16 2007

New hosting stuff

Published by Brian under Linux, The Interweb, Tlf

Whew… after a few months of solid work on TLF stuff, we finally hit a big milestone–the opening of www.tlfhosting.com, which will eventually become the main jump for all things hosting related at the ‘Fix.Right now it’s pretty skeletal, but it’s a start.

A big component of this is the shared server hosting stuff which is now all handled under H-Sphere–an all encompassing control panel, distribution, and load-management system. The super cool thing is that it reduces management in a huge way allowing TLF to sell really nice shared sever hosting for super-cheap, like $4.50/mo. Go sign up!

TLF also been enlisted as an official domain registrar, as well as a reseller for Comodo–meaning TLF is now a one-stop shop. You just visit that control panel and you’re off and running.

The next phase is to get our VPS stuff finished up and migrate the rest of the internal TLF stuff to the new VMware server, freeing up the old one for customer VM’s.I can almost see the light at the end of the tunnel!

No responses yet

« Prev - Next »