RAID 0 on a Shared Server? Bad Idea

Tagged in

If you are a user on a shared server, be that shared hosting or VPS hosting, have you ever wondered, what is my host’s strategy in storage and backup? Is it as robust as it claims?

The disk array error fiasco at VPSLink, has revealed some dark side of shared servers — or when the server hardware setup is out of your control. How would you know that your hosting company is using RAID 0 with SATA drives that is probably having double the failure rate as the drives are stripped?

Tough luck.

First of all, I am currently a VPSLink customer simply because of the unbeatable pioneer discount (<$13/month for a 256Mb OpenVZ VPS). So far the performance is quite acceptable for its price, and I can rest easy knowing that they are backed by a big hosting company (Spry.com) and not some garage operations.

However, although I’ve acknowledged that VPSLink provides budget VPS hosting, I was quite surprised that RAID 0 was used to provide performance and sacrifice reliability. Further more, the performance was actually not that great (VPS was often starving on IO), showing how many VPS they have packed into one server to bring down the price.

Fortunately, my VPS was not affected by this incident. A few things to think about though.

RAID 0 Stripping on VPS? Bad Idea

IO contention is quite often the bottleneck of VPS. However, I do not think using RAID 0 is a feasible solution to this problem.

With RAID Level 0, you basically split up your file system into lots of tiny slices, and then put alternate slices onto each of the two drives in the RAID set up. The advantage is speed gain in both reading and writing from/to the disk drives, as operations on consecutive blocks can be done in parallel.

However it is also at the expense of reliability. If one drive fails, you pretty much will loose the entire volume, as it is impossible to extract out files when you only have alternate blocks. And believe, disk drives do fail very frequently especially when you have a large sample. Even Google has no exception.

In web hosting world, loosing a drive in RAID 0 usually means extensive down-time — taking the server down, fsck the file system, scavenge the /lost+found, restore from backups, etc — which often translates to loosing customers. In fact, I would not host my websites on a host with less than redundancy provided by RAID 1, where there is always a hot mirror. With RAID 1 mirroring, you get only half the overall capacity. You still get the same reading speed, but writing will be only as fast as with a single drive. But I will rather write my files back slowly, than risking my entire file system fried.

How Storage is Handled at Your Shared Server?

That brings us to the next question — how is the storage handled at your shared server? With a dedicated server provider, it is easy. You tell them how you like it to be done! With my other two VPS hosts, SliceHost and GPLHost, at least it was stated clearly on the website that RAID1 is implemented.

However, there are many VPS and shared hosts out there who never mention their storage arrangement on their website. Some just say “RAID” (in VPSLink’s case). Some just give you a size in number of gigabytes. That alone should make you worried.

Backup, Whose Responsibility?

VPSLink claims to have nightly backups (from their RAID 0 drive array to a separate SATA drive), however they seem to have issues restoring the backups and applies incremental changes.

Sometimes I do wonder, should we rely on hosts to backup our servers for us?

The answer is a big NO. While the host is responsible for performing regular backups, it will be considered stupid not to have your own off-site backups. How are you doing it, it is up to you (I have briefly talked about it previously). However, make sure you do it! An earthquake can hit US east coast and sub-merge the entire Seattle into the Pacific Ocean — and you cannot tell VPSLink/Spry that they need to somehow find some divers to rescue the hard disks containing your data, can you?

And let’s face it. Web hosting is a commodity, despite denial from those in the industry. Not happy with the current host? Can’t get the site back up in time? As long as you keep your own sets of backups, you are free to just pack up and leave. Find another host, upload your files, migrate the DNS, and you are good to go.

Should I Stick with VPSLink?

Well. They are cheap, and I am getting the service I expected. Moreover I prepaid to June so I am not in hurry to leave before then.

However my VPS there is really under utilised — I am only running a few low traffic sites and cron jobs on it. I might as well get rid of it unless there is any new project that I need to off-load onto it. Not likely with my current schedule…

Anyone interested in buying a cheap 256Mb VPS off me that’s on a RAID 0 disk array? :)

Comments

Gravatar

VPSLink really botched the job on this one. Their lack of communication and attention to support tickets over this multi-day multi-issue fiasco was astounding. When they did manage to get the VPS back online it was with 9 day old restores. When they finally acknowledged that the resorts were old, a bunch of us had already spent our Sundays rebuilding our VPSes. When they did finally respond to my tickets they said their own backs were from “about 30 hours prior to the drive failure”. This really makes me question their backup plans.

You are correct, the customer is responsible for making backups. However an hosting provider’s system should be set up in a fashion that if a failure occurs which is not the customer’s fault the backups should be recent not 30+ hours old.

I’m leaving them for good once I get my Slice setup.

Gravatar

Mike — I agree that if a host who stated the backup is provided, they should have done it properly. In fact if I am running a VPS hosting company, I won’t even advertise a backup service as I am too scared that I will flop it, stuff up all my customers’ files and are responsible for them.

At the same time, I am only trying to stress the fact that customers should never rely only the backup services the host provides. More redundancy the better.

By the way, just saw Joyent’s BingoDisk has 10Gb storage/unlimited bandwidth for $19/year. No, I am not an affiliate :) Oh, you also have a DreamHost account — that pretty much solves all the off-line backup problems :)

Gravatar

Thanks for explaining this Scotty. The situation you encountered boggles my mind. We’ll be sticking w/ RAID1 or RAID10 for the foreseeable future.

Gravatar

I guess I learned the hard way — after many crashes and loss of valuable data :(

Gravatar

Yes Dreamhost is a great inexpensive dumping ground for rsync and other backups.

Gravatar

We run RAID-10 (after a double disk failure with RAID-5 one time). I can count the number of times we’ve had 2 “DEGRADED” disks in a RAID-10 array on 1 hand… but for those 5 times I’m extremely grateful for it :)

Gravatar

Hey Scotty,

Please forgive my very simple questions here, am very very new!

  1. What tools/services (free) can I use to measure both VPS hosting and shared host performance?

without doing any actual coding/editing of html on my pages…

Futhermore, what actual key perfomance variables should I be looking at/looking out for?

Cheers

Don

Gravatar

Hey Don,

You need a http server for your site ? I suggest you to look at xampp home page …

Include apache+mysql+php+proftp and others … is a wonderful AIO (All In One)

I hope this reply can help you!

Cheers! laffin

Post new comment

The content of this field is kept private and will not be shown publicly.

More information about formatting options