You are not logged in.
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/sSo 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
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
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
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/sSo 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
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
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
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
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! ![]()
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. ![]()
Would be nice to see what your following findings are Enverex.
Offline
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
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
If you're happy to have one music folder with subfolders such as Music1, Music2 inside it then you could consider bind mounts?
Offline
@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
@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
And here comes another contender ![]()
http://code.google.com/p/sfs/
Offline
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.
And here comes another contender
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
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
That's my finding so far, unfortunately (wouldn't be a pain if it didn't require a custom kernel).
Offline
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
Yeah, that's what I'm using. By custom kernel I simply meant "not the stock Arch one".
Offline
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
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
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
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
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
You could try ZFS, the module version, not the FUSE one.
http://zfsonlinux.org
I'm not sure how stable it is though.
Offline