Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have 4 hard disks (1 Tb each) on server.

It's debian wheezy, amd64. Disks 2,3 and 4 are not partitioned yet.

I have to join them into single partition, it must be single filesystem/mountpoint for web application.

What is there best way to do this: lvm, software raid md, or maybe exotic filesystems?

Also in case of using lvm or md, what is recommended filesystem? ext3, ext4, raiserfs?

Thank you.

share|improve this question

closed as primarily opinion-based by Zoredache, ewwhite, Falcon Momot, cole, Dave M Nov 27 '13 at 23:00

Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise.If this question can be reworded to fit the rules in the help center, please edit the question.

What are your needs for the data? Performance or just raw space? What kind of data integrity requirements? – Shane Madden Nov 26 '13 at 22:54
I need raw mount point - raw space. About data integrity - i will use rsync to the same neighbor server, with the same disks layout each hour. – Andrii Kupchanko Nov 26 '13 at 23:06
You think you are going to be able to rsync ~3-4TB of data once an hour? Good luck with that. I hope you have a small number of large files that aren't changing very often. – Zoredache Nov 26 '13 at 23:10
@Zoredache - exactly. Files are > 1 Gb, and changes on this partition will not be often. – Andrii Kupchanko Nov 26 '13 at 23:21
up vote 1 down vote accepted

I highly recommend MHDDFS. MHDDFS is a FUSE file system that allows you to combine multiple drives (or partitions) into a single mount point. The idea is that you mount all of your partitions, then tell MHDDFS which partitions you want to include for a particular mount point. MHDDFS will fill the first drive until it is full, then move on to the next, making sure no files span multiple drives.

Pros: * File format independent * Easy to add/remove drives * sudo apt-get install mhddfs

Cons: * Lose a drive, lose all data on that drive

Extra info:

Syntax: mhddfs /mnt/first_partition,/mnt/second_partitions.... /mnt/final_mount_point

share|improve this answer
Perfect. Seems like i will definitely use exactly this solution. – Andrii Kupchanko Nov 26 '13 at 23:29
The upside if you are just rsyncing from another system is after losing a drive it will only have to restore the files from that drive. – Grant Nov 26 '13 at 23:31

RAID in any mode except stripe (RAID 0) protects against a single disk failure trashing your data.

LVM allows you to (amongst other things) join disparate storage pools together.

ZFS does both of these and more.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.