mergerfs
mergerfs copied to clipboard
CentOS Atomic Host or CoreOS support?
I've been using mergerfs for years now on my dockerized home server but recently I've been considering a move to a more minimal, secure and maintainable OS like Centos Atomic Host or CoreOS
I've done some google sleuthing, but I haven't found any references that mention support for either.
Both OS's have a base read-only file system, and manage OS updates via containers and a git-tree like structure, so I wasn't sure if something like mergerfs would even be possible there.
Can anyone provide me with a definite yes/no regarding support for either OS?
What would cause it not to be supported? They are both modern Linux based systems.
You will run into all the normal permission issues with using containers but so long as FUSE is working mergerfs will work.
@trapexit
I guess my real question is:
Is the a way to download and install mergerfs on CoreOS without having to build it myself (and install all the related build tools and compilers)
I see pre-built packages for Fedora/Centos/Debian/etc, is there a pre-compiled linux binary I can use?
Not from me. I've only provided packages for popular platforms and built build containers to automate the process. Most other distros package it up themselves. I'm happy to add other platforms but I'll need to know which and I can look into it when I have time.
Are those OSes even supposed to have the traditional packages? Wouldn't you be using containers for most services? I can look at creating a simple image based on alpine or something. Worse case you can just install on debian or ubuntu.
Hmm, are you saying that I should be running mergerfs inside a container?
We may be talking past each other. Let me give you a bit of context for what I'm trying to do: https://github.com/mediadepot/docs - The docs are currently being re-written but the first few paragraphs explain it
Basically, I'm migrating from a dockerized full Ubuntu installation to an ultra minimal OS for my Home Server. Basically all my applications will be running within Docker containers, with the exception of MergerFS and Samba.
I'm not really looking for a mergerFS package for CoreOS, more just a linux binary that I can copy into the /usr/bin directory of my CoreOS installation. I won't have access to a full build toolchain on my server.
Hopefully that all makes sense.
Yes, running in a container.
The problem is that AFAIU you aren't supposed to be using CoreOS in that fashion. I could look into having a static binary but I don't see why you'd bother when Ubuntu, Debian, etc. w/ Docker would be easier and more inline with that usecase.
Also... while I can (and just did) statically compile mergerfs you'll still need the fuse tooling which I'm not sure is available on those OSes. Will need to check. That said... I think sticking to a traditional OS for your base is probably the best.
Hmm, it just seemed weird to run mergerfs inside a container, since I needed to share the mounted filesystem with other containers, but you're right, it looks like it might work.
CoreOS does have /dev/fuse but no mount.fuse. What other fuse tooling is required?
Just mount.fuse I think. I can look into creating a simple docker image if that helps. Might be worth writing up a howto to show how it can be done.
yeah, that would be appreciated.
it just seemed weird to run mergerfs inside a container
Remember... mergerfs is a userspace application.
You can layer packages via rpm-ostree or rebuild the os images yourself with fuse and mergerfs compiled in.