Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Are there way to mount the different disks as one directory? Assuming I have some disks with ext4 partitions:

/dev/sda1 1Tb mounted as /store1
/dev/sda2 2Tb  mounted as /store2
/dev/sdb1 2Tb  mounted as /store3
/dev/sdb2 2Tb  mounted as /store4
 I would like to have some /storeall with 7Tb space...

I would like to merge them as a one logical directory, so I can fill that with one rsync command. is it possible on Linux? Which FS should I use?

Thanks in advanced
Arman.

share|improve this question

3 Answers 3

up vote 10 down vote accepted

mhddfs is exactly what you are looking for: http://romanrm.ru/en/mhddfs

You can mount like this:

mhddfs /dev/sda1,/dev/sda2,/dev/sdb1,/dev/sdb2 /storeall/

and unmount like this:

fusermount -u /storeall

If one disk fails you only loose the files that was stored on that particular disk. If your data is important for you and you would like your data to survive a disk failure you should consider a RAID setup instead (search for mdadm).

edit: PS! The devices you mount can even have different filesystems!

share|improve this answer

This isn't a filesystem problem, it is a partitioning problem.

What you want to do is remove the filesystems on these disks (backup any data that is already on them), then create a LVM volume set across all four disks. Then you can create a filesystem in that volume set, and mount that filesystem to a single place and fill it that way.

Be aware that there won't be any redundancy to this, and if you lose any of the four disks, you'll likely lose the data on ALL of them.

share|improve this answer
    
Thanks for suggestion. unfortunately the lvm does not work some of the disks are RAIDS from remote machines...they can be mounted via NFS. I think I found some solution like GlusterFS. I am still reading the documentation... –  Arman Oct 15 '10 at 12:42

Check out UnionFS , it might help you.

share|improve this answer
    
Thanks for pointing it, are there port for the windows? –  Arman Nov 4 '10 at 12:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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