I've setUp the NFS Server on three machines each has 2 TB data storage size. So i've collectively 8 TB space on these three serves.

Now i've a situation that i've file of 8TB at NTFS client machine. I want to mount it transparently to these server.

sudo mount ServerIP:/folder/already/setup/to/be/shared/home/username/folder/in/your/local

Can someone please tell me some mechanism that we can mount same directory of NFS client to multiple NFS Servers. SO that i can store the file 8TB in size.



Let’s say we have three disks but you wish to share with NFS clients and may be such situation when you want to mount multiple drives to single drive,..

Solution: Of course we can mount the disks on three separate mount points and export those. Or we can mount the three disks on three mount points inside the same directory and export the parent directory.

The problem with both solutions is you have to “balance” the data among the disks - and it will make navigating your TViX, WDTV or Popcorn more annoying. You could use RAID or LVM to handle all this for you. But. What if you already have data on the disks? What happens if one of the disks dies? With RAID0 or LVM your data is gone.

Luckily we have the best of both worlds: mhddfs

mhddfs is a FUSE plugin that combines data from several directories and present it in one directory. The only downside is that you do not know (or control) where a file is created.

Let’s say you combine /dir1, /dir2 and /dir3 under /virtual. Previously you had /dir1/my_content. This is now /virtual/my_content. If you write a file to /virtual/my_content it will not necessarily end up in /dir1/my_content. This also mean you can not predict what data is lost if you lose a disk.

The plugin is available in Ubuntu

$ sudo apt-get install mhddfs

Using it is pretty simple

$ sudo mkdir /export/hest
$ sudo mhddfs /dir1,dir2,dir3 /export/hest
[sudo] password for alj: 
mhddfs: directory '/dir1' added to list
mhddfs: directory '/dir2' added to list
mhddfs: directory '/dir3' added to list
mhddfs: mount to: /export/hest
mhddfs: move size limit 4294967296 bytes

The “move size limit” deserves an explanation:

if free space size threshold if a drive has the free space less than the threshold specified then another drive will be chosen while creating a new file. If all the drives have free space less than the threshold specified then a drive containing most free space will be chosen.

                      589G  329G  260G  56% /export/hest

To mount the combined directory during boot, at this to /etc/fstab:

mhddfs#/dir1,/dir2,/dir3 /export/hest fuse defaults,allow_other 0 0

we can export the combined directory using NFS or Samba. If you export the combined directory using NFS you need to add the fsid option in /etc/exports

  • Anyone working on the same domain or problem.. welcome here for disucssion – Imran Nov 12 '13 at 13:04

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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