0

I'm building a household Ubuntu 14.04 server and just installed two 3TB drives for the files and media. The box (HP DC7900 SFF) uses Intel Matrix RAID which, according to wikipedia is neither hardware nor software RAID but firmware RAID. I'm thinking of installing two partitions on each drive (four total) and mirroring (RAID1, ~2.5TB) the files with one partition from each drive and striping (RAID0, ~1TB) the media with the other two partitions, for a total of ~3.5TB.

The other option is to mirror/RAID1 both drives, so a lesser total of ~3TB.

If we're streaming a movie, listening to music, and reading/writing files, would the first RAID0 & RAID1 configuration give us the best performance or would just going straight RAID1 be faster? I understand if each partition was on its own disk it would be faster, but don't know if there are performance issues with the configuration I'm proposing. I like the extra 0.5TB we'd get from the first configuration but would be happy to give it up for better performance. I need the redundancy, so going all RAID0 isn't an option.

3 Answers 3

0

Well, using both RAID1 and RAID0 (RAID10) would be faster then just RAID1, but that requires a minimum of 4 drives. Unless you wish to purchase more drives. Stick with RAID1 which gives mirroring but no performance boost.

2
  • Thanks for the thoughts, but I'm not interested in RAID10 since that would give me mirroring on all my data which isn't what I want for me media. If I had four disks, I'd RAID0 two for the media so I'd max the disk space and speed and I'd RAID1 the other two for mirroring important files. What I'm proposing is 4 partitions (2 on each drive) and doing a RAID0 with one partition from each drive and a RAID1 from the other partition of each drive. I'll update my question to make it clearer. Commented Aug 2, 2015 at 0:29
  • Its a little non-standard as you normally raid entire drives but that doesn't matter as long as it works. With only a single partition on each drive you wouldn't have to worry about size of the individual partitions. But if you have two partitions on each drive you have to estimate the needs of both before creating. Resizing would probably not work on the fly. Commented Aug 2, 2015 at 10:04
0

Although what you proposed would work, it doesnt make a lot of sense.

First off, I will propose a better solution: Use three 3TB drives and do a RAID5. RAID5 gives you the redundancy and speed. It allows for the loss of any single drive, while still functioning during its degraded state. RAID5 also gives a performance boost, as data is written sequentially to each drive. This gives you 6TB of faster and redundant data.

Now, lets talk about your solution. Since you didnt mention any hardware, I can only assume you are using software RAID. Software RAIDs do provide redundancy, however the performance boost they give is minimal, as the computer is performing the RAID calculations. On top of that, you are creating two volumes across two disks. Again, your method would work, but if you decided to watch a movie and use files at the same time, you would be thrashing your disks and lose a lot of performance.

4
  • After reading your post I researched the RAID technology on my box (HP DC7900 SFF) and it uses Intel Matrix RAID which, according to wikipedia is neither hardware nor software RAID but firmware RAID? Not sure if that influences your answer. I like your 3TB solution but am hoping to stick with two. So, in your movie/files scenario, would the two disks get less thrashed with straight RAID1? Commented Aug 2, 2015 at 1:05
  • I updated my post to reflect that it's firmware RAID. Commented Aug 2, 2015 at 1:23
  • @buttonsrtoys That would be hardware RAID on the motherboard. That is definitely better than software RAID, performance wise. As for your second question in the comment, going full RAID1 would be better IMO then your original idea, but you lose 1/2 your available space. WIth RAID5, you lose only 1/3 of the space.
    – Keltari
    Commented Aug 2, 2015 at 1:31
  • Awesome. Many thanks. I can afford to lose 1/2 the disk space, so your answer helps a lot. Commented Aug 2, 2015 at 1:44
0

Since you are talking about RAID on partitions, I'm assuming you must be talking about software RAID (mdadm on Ubuntu).

Typically media files tends to be large and don't lend themselves well to caching at OS level. So to be able to use your media, you need to be able to read as much data without undue head movement. But you would be reading from both disks. (RAID0).

Should you now start reading or writing to the data area, your disk heads will be moving between the two partitions of one disk (on which the media file is). You would have gotten a speed benefit most likely from you mirroring for data, but if the media file portion you are reading happens to be on that disk, you disk head will have moved away from the data partition and needs to move back.

So your disks are going to be working hard to keep up if you use both partitions simultaneously.

Big disk caches may help, but media files tend to be big. So it will be a race to read media files vs read/writing data while trying to keep two disparate actions happy.

Since you require 1TB unprotected, you may as well rather use a fourth 1TB disk if possible.

The other option is to mirror/RAID1 both drives, so a lesser total of ~3TB.

This would probably be a better option. If you use two directories, say /disk2/data and /disk2/media, you would share the free space. (Typically people tend to overspec.)

Additionally you could put your RAID1 disk in LVM and get the benefit of future painless expansion. It will also allow for flexible volume growth/shrinkage and data migration while maintaining two separate mount points for data and media if you really need to, all with one RAID1-volume.

1
  • I see what mean about sharing free space and introducing excessive head movement. @Keltari also commented on the software RAID issue, so I update my post to clarify it's a firmware RAID (not sure if this affects things). In your scenario of reading a large media file while writing a data file, would RAID1 be smart enough to read the media file from Disk1 while writing the data file to Disk2 to minimize head movement? Then, when the movie was over or maybe sufficiently buffered it would mirror the data file? Commented Aug 2, 2015 at 1:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .