You are not logged in.

#1 2012-07-31 12:29:59

Enverex
Member
From: UK
Registered: 2007-06-13
Posts: 159
Website

Usable Union Filesystems?

I'm in a situation where I'd like to union my drives simply to make accessing their content easier from other applications. i.e. I don't want to have to add multiple "sources" to applications, such as "Music 1", "Music 2" etc and some applications don't even allow adding of more than one source (or destination, depending what I'm doing) so this is quite often a necessity.

I'm avoiding RAID because I'd like to be able to add and remove drives with little hassle, plus if one drive dies, I'd rather not lose everything, at least in this setup I only lose what's on the single drive, not all drives (Mirrored RAID isn't an option due to cost and the fact I would need far more drive bays than I have).

Anyway, with that out of the way, what options do people see as viable at the moment? I'm having trouble finding even a single one as they all seem very poorly supported. I would have thought this was something people used quite often as it seems like a highly useful feature to have.

AUFS3 needs a custom built kernel, so I'd rather avoid that (I'm trying to keep the system as vanilla as possible).

mhddfs looked ideal but the performance is dire, as shown below from my tests earlier:

URandom (Fuse, Real)
204800000 bytes (205 MB) copied, 92.3259 s, 2.2 MB/s
204800000 bytes (205 MB) copied, 32.0806 s, 6.4 MB/s

Zero (Fuse, Real)
204800000 bytes (205 MB) copied, 16.8018 s, 12.2 MB/s
204800000 bytes (205 MB) copied, 1.62708 s, 126 MB/s

So what other options do I have? If someone knows of some other idea that would also fulfil the requirements I'm looking for, please voice it.

Offline

#2 2012-07-31 13:49:56

Wilco
Member
Registered: 2008-11-09
Posts: 440

Re: Usable Union Filesystems?

You probably want unionfs

I've used AUFS in the past but after some updates I switched to unionfs and it's even easier to setup and use. If I remember correctly I only had to setup fstab and after that four different disk directories are now all mapped to one central directory.

Offline

#3 2012-07-31 13:59:47

Enverex
Member
From: UK
Registered: 2007-06-13
Posts: 159
Website

Re: Usable Union Filesystems?

Isn't UnionFS also FUSE based though? I'd assume that because of that, it's going to perform just as well (or rather, as bad as) mhddfs. That said, I'll try it anyway and let you know how I get on.

Offline

#4 2012-08-01 09:13:03

Enverex
Member
From: UK
Registered: 2007-06-13
Posts: 159
Website

Re: Usable Union Filesystems?

Wilco wrote:

You probably want unionfs

I've used AUFS in the past but after some updates I switched to unionfs and it's even easier to setup and use. If I remember correctly I only had to setup fstab and after that four different disk directories are now all mapped to one central directory.

Looks like UnionFS is just as bad.

Direct Disk
100000+0 records in
100000+0 records out
204800000 bytes (205 MB) copied, 1.74819 s, 117 MB/s

UnionFS
100000+0 records in
100000+0 records out
204800000 bytes (205 MB) copied, 13.3022 s, 15.4 MB/s

So both FUSE implementations result in roughly 1/10th the performance of using the disk without the FUSE layer. That's an obscene performance loss.

Does anyone know of any others or any special trick to avoiding this performance penalty?

Offline

#5 2012-08-01 09:22:38

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: Usable Union Filesystems?

AUFS isn't FUSE based. And neither is unionfs, though I think there's also a FUSE version.

You'll have to get over the "don't want to compile my own kernel" thing and go with AUFS.

Offline

#6 2012-08-01 10:07:26

Enverex
Member
From: UK
Registered: 2007-06-13
Posts: 159
Website

Re: Usable Union Filesystems?

Gusar wrote:

AUFS isn't FUSE based. And neither is unionfs, though I think there's also a FUSE version.

You'll have to get over the "don't want to compile my own kernel" thing and go with AUFS.

I can only find a FUSE version of UnionFS in the repos/AUR which gave the impression it's the only really usable version. I'll test AUFS to see what performance is like.

Offline

#7 2012-08-13 08:10:46

Enverex
Member
From: UK
Registered: 2007-06-13
Posts: 159
Website

Re: Usable Union Filesystems?

Bringing this back to life for a related question. AUFS3 has been working fine but I've run into a problem. One of the drives has filled up, but it's overflowing to the next drive in the list or doing any form of branch balancing. Wikipedia (erk) claims that AUFS supports this, but I've not seen any mention or information in support of this anywhere else.

Anyone know how to use branch balancing on AUFS, if it does indeed support it?

Offline

#8 2012-08-29 11:20:23

detto
Member
Registered: 2006-01-23
Posts: 510

Re: Usable Union Filesystems?

Interesting thread!
I'm also looking for a solution as I plan to set up a storage pool for all my media data like pictures, music, videos and documents.

The first solutions I stumbled upon were:
Drobo
RAID 1
RAID 5
RAID 0 , JBOD
Windows 8 Storage Spaces

NONE of these are exactly what I'm looking for though.
All of these work pretty much the same in the regard for what I'm looking forward to. They all cost too much, waste too much hdd space and/or are unsafe (JBOD, RAID 0, Windows 8 Storage Spaces without Redundancy).

So, after weeks of searching I found that the only solutions seem to exist in the UNIX world, well hello again my old friend ArchLinux! smile
Now I heard of UnionFS, Union Mount, AUFS and MHDDFS. THere are probably more?
I haven't installed my ArchLinux yet but would like to know which is "the best".
Music, pictures, videos and documents would all land on one big pool and would be used in programs like Banshee and XBMC. Pretty much my media HDD station or HTPC.

Filling up one drive after another is also useful for simpler backups. That way I'd only have to care about one single drive that needs to be mirrored and that's it.
I'm still wondering why all the world is using RAID and whatnot when there are probably so much better solutions out there. Of course I now have to test HOW good those really are, but hope is there at least. smile

Would be nice to see what your following findings are Enverex.

Offline

#9 2012-08-29 11:27:32

Enverex
Member
From: UK
Registered: 2007-06-13
Posts: 159
Website

Re: Usable Union Filesystems?

AUFS seems to be the best, it has no performance hit that I can see and is configurable to work in lots of different ways.
The downside with AUFS is that you need to use the AUFS friendly kernel in AUR or the "linux-pf" kernel, also in AUR.

Any that run in userspace (i.e. FUSE) rather than kernel have MASSIVE performance hits.

Offline

#10 2012-08-29 12:06:57

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,954
Website

Re: Usable Union Filesystems?

Nobody mentioned LVM yet. Maybe I don't see something obvious as the reason for it, but for me it looks like the solution, since you can install any filesystem onto an LVM partition.


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#11 2012-08-29 16:56:16

ehlo
Member
From: England
Registered: 2010-04-04
Posts: 66

Re: Usable Union Filesystems?

If you're happy to have one music folder with subfolders such as Music1, Music2 inside it then you could consider bind mounts?

Offline

#12 2012-08-30 14:16:04

detto
Member
Registered: 2006-01-23
Posts: 510

Re: Usable Union Filesystems?

@SanskritFritz: I'd have to take a look at LVM and see if it fulfills the need. Is there any good documentation available that you're aware of?

@ehlo: Subfolders is not an option for me, it's the same as symlinking folders to another place.
The goal is to have a extendable storage pool that consists of independent hard drives. In that pool overlapping folders (hdd1/music, hdd2/music,..) get merged.

Offline

#13 2012-08-30 14:40:47

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,954
Website

Re: Usable Union Filesystems?

detto wrote:

@SanskritFritz: I'd have to take a look at LVM and see if it fulfills the need. Is there any good documentation available that you're aware of?

Well, I just took the wiki, it explains it very well: https://wiki.archlinux.org/index.php/Lvm


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#14 2012-08-30 15:48:04

detto
Member
Registered: 2006-01-23
Posts: 510

Re: Usable Union Filesystems?

And here comes another contender big_smile
http://code.google.com/p/sfs/

Offline

#15 2012-09-01 18:20:16

Enverex
Member
From: UK
Registered: 2007-06-13
Posts: 159
Website

Re: Usable Union Filesystems?

LVM can't easily have a disk pulled out and accessed separately afaik, I remember reading up on it and it had a lot of similar issues to RAID when it came to disks dying and having to undergo work to get everything back in order again.

detto wrote:

And here comes another contender big_smile
http://code.google.com/p/sfs/

Also ruled out for the reason I ruled the others out:

SFS is built on top of FUSE (the "filesystem in userspace" layer).

Anything that runs in userspace will have -crippling- performance.

Offline

#16 2012-09-02 08:41:49

detto
Member
Registered: 2006-01-23
Posts: 510

Re: Usable Union Filesystems?

I have the same feeling about it. LVM was no option back in the time, it sounded too complicated and was not that easy like a mhddfs for example.
Of course, I prefer a solution without FUSE too.
As far as I know, that would only be AUFS for now?

Offline

#17 2012-09-02 11:02:29

Enverex
Member
From: UK
Registered: 2007-06-13
Posts: 159
Website

Re: Usable Union Filesystems?

That's my finding so far, unfortunately (wouldn't be a pain if it didn't require a custom kernel).

Offline

#18 2012-09-02 11:07:43

progandy
Member
Registered: 2012-05-17
Posts: 5,321

Re: Usable Union Filesystems?

Enverex wrote:

That's my finding so far, unfortunately (wouldn't be a pain if it didn't require a custom kernel).

If you find some people who share your needs you coud set up a common build server and a repository.
Edit: Linux-pf includes aufs3 among other patches and has a repository

Last edited by progandy (2012-09-02 11:11:06)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#19 2012-09-02 12:22:56

Enverex
Member
From: UK
Registered: 2007-06-13
Posts: 159
Website

Re: Usable Union Filesystems?

Yeah, that's what I'm using. By custom kernel I simply meant "not the stock Arch one".

Offline

#20 2012-09-03 17:39:54

detto
Member
Registered: 2006-01-23
Posts: 510

Re: Usable Union Filesystems?

I found overlayfs today, it's in the Ubuntu kernel I guess?

But it's hard to find any info about it. Still don't know wether it allows to overlay just one directory over another, or if it can handle multiple (more than 2) directories.

Offline

#21 2012-09-03 17:50:41

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: Usable Union Filesystems?

Overlayfs is extremely simple. It's literally what the name says - one filesystem laid on top of another. And the "lower" filesystem is always read-only. As such it doesn't meet the needs you guys here have. That's why I didn't mention it. The primary use of it are livecd/liveusb distros.

If you're interested anyway, the upstream code is here: http://git.kernel.org/?p=linux/kernel/g … ;a=summary <- v13 is for kernel 3.4; v14 is for kernel 3.6. For kernel 3.5, you'll need to get patches from the Ubuntu kernel - I have a link for that too somewhere, I can search for it if someone wants.

Last edited by Gusar (2012-09-03 17:54:07)

Offline

#22 2012-09-03 18:05:49

detto
Member
Registered: 2006-01-23
Posts: 510

Re: Usable Union Filesystems?

That's a bummer.

Well then still aufs3 or mhddfs for me. Can't believe we have 2012 and no other practical solution exists to this.

Offline

#23 2012-09-03 22:53:46

Enverex
Member
From: UK
Registered: 2007-06-13
Posts: 159
Website

Re: Usable Union Filesystems?

detto wrote:

That's a bummer.

Well then still aufs3 or mhddfs for me. Can't believe we have 2012 and no other practical solution exists to this.

It's actually gone backwards, these things used to be better supported. Strange really.

Offline

#24 2012-09-04 00:13:58

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: Usable Union Filesystems?

Enverex wrote:

It's actually gone backwards, these things used to be better supported.

When? UnionFS and AUFS were always external patches, union-mount has been in development since forever and is still not complete, overlayfs is relatively new.

Or are you referring to the fact that AUFS used to be part of the Arch kernel a long time ago? It was a pain in the butt (new kernels couldn't be released because the devs would need to wait for AUFS to get updated), and also went against the Arch policy of sticking as close as possible to upstream.

The thing is, I don't really see the big deal about needing to compile your own kernel.

Offline

#25 2012-09-04 13:59:52

Lynden
Member
Registered: 2011-11-10
Posts: 23

Re: Usable Union Filesystems?

You could try ZFS, the module version, not the FUSE one.
http://zfsonlinux.org

I'm not sure how stable it is though.

Offline

Board footer

Powered by FluxBB