this post was submitted on 26 Jan 2025
32 points (92.1% liked)
Linux
49418 readers
2362 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Looked up this mergerfs, I have to say that it goes over my head quite a bit, if the point is to pool the drive capacity then what's the advantage of using that over the native capabilities of btrfs?
So I could do that for the root folder as well I imagine?
Good point about the
/mnt
thing, I think I'll go with that, at least initiallybtrfs multi device file systems have some limitations. Adding a drive is instant, but if you want to stripe the data using raid0, that requires a lengthy balancing operation. The alternative is "single" mode, which does not concern itself with striping, and just pools the storage available. The disadvantage, is that in single mode you get the risk of raid0, with no performance benefit. btrfs does not actually make sure that the different blocks that constitute a single file end up on the same drive, which means that if one fails, you still likely lose everything.
MergerFS does not mess with any of the filesystems being combined. It can be configured to work in different ways, but each drive will remain its own, consistent, functioning file system. Drives can be browsed individually, removed, added etc. Instantly. To "empty" a drive, you just move the files on it to the rest by using the non merged folders. By default, "writing" a new file will always go to the drive with the most free space, and individual files cannot be stored "across" several drives even though the contents of a folder can be. This way, whatever is on each drive, can never be damaged by the failure of another drive.
So the benefits are isolation, and convenience. The downside is a definite performance hit, which may not be significant depending on your system or what you're storing in the merged filesystem.
No. And you wouldn't want to. First for the performance hit. Second, because mergerfs merges folders (drives have to be mounted, first), and uses a third as a mountpoint. As an example, to "expand" your home folder, you'd move your homefolder somewhere else, then merge that moved folder with the new drive (which you still have to mount somewhere), and then you'd mount the resulting file system where your old home folder was before.
You could even have two folders on the second drive. Use one to merge somewhere you want to pool all your storage, and the other to put stuff on the second drive in a way where losing the first won't make half the files go missing. You might use that to store a copy of the OS install on the first drive, for example.
That sounds promising, but I feel like it is quite complex for me, maybe I'll look into it again another time, thanks for the suggestion and explaining to me though!