mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-12-03 05:10:14 -05:00
Add doc pages for minfreespace and moveonenospc + other misc updates
This commit is contained in:
parent
1f3ebcf418
commit
c769e959e8
9 changed files with 170 additions and 70 deletions
22
mkdocs/docs/faq/have_you_considered.md
Normal file
22
mkdocs/docs/faq/have_you_considered.md
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# "Have You Considered?"
|
||||
|
||||
## Have you considered limiting drive spinup?
|
||||
|
||||
Yes. See [Limiting Drive Spinup](limit_drive_spinup.md).
|
||||
|
||||
|
||||
## Have you considered porting to MacOS?
|
||||
|
||||
Yes, but the FUSE implementation on MacOS has gotten a bit complicated
|
||||
and fragmented. I'm not opposed to supporting it but given the low
|
||||
demand, lack of the author having a modern MacOS system, the fact
|
||||
mergerfs does not use standard
|
||||
[libfuse](https://github.com/libfuse/libfuse) API, and MacOS FUSE
|
||||
situation it is unlikely.
|
||||
|
||||
|
||||
## Have you considered porting mergerfs to Windows (WinFsp)?
|
||||
|
||||
Similar to MacOS the demand is very low and mergerfs does not use the
|
||||
[libfuse](https://github.com/libfuse/libfuse) library so porting to
|
||||
WinFsp would first mean porting it to `libfuse`.
|
||||
|
|
@ -84,39 +84,6 @@ an error back to the application making the request.
|
|||
Should FUSE gain the ability mergerfs will be updated to support it.
|
||||
|
||||
|
||||
## Why do I get an "out of space" / "no space left on device" / ENOSPC error even though there appears to be lots of space available?
|
||||
|
||||
First make sure you've read the sections above about policies, path
|
||||
preservation, branch filtering, and the options `minfreespace`,
|
||||
`moveonenospc`, `statfs`, and `statfs_ignore`.
|
||||
|
||||
mergerfs is simply presenting a union of the content within multiple
|
||||
branches. The reported free space is an aggregate of space available
|
||||
within the pool (behavior modified by `statfs` and
|
||||
`statfs_ignore`). It does not represent a contiguous space. In the
|
||||
same way that read-only filesystems, those with quotas, or reserved
|
||||
space report the full theoretical space available.
|
||||
|
||||
Due to path preservation, branch tagging, read-only status, and
|
||||
`minfreespace` settings it is perfectly valid that `ENOSPC` / "out of
|
||||
space" / "no space left on device" be returned. It is doing what was
|
||||
asked of it: filtering possible branches due to those settings. Only
|
||||
one error can be returned and if one of the reasons for filtering a
|
||||
branch was `minfreespace` then it will be returned as
|
||||
such. `moveonenospc` is only relevant to writing a file which is too
|
||||
large for the filesystem it's currently on.
|
||||
|
||||
It is also possible that the filesystem selected has run out of
|
||||
inodes. Use `df -i` to list the total and available inodes per
|
||||
filesystem.
|
||||
|
||||
If you don't care about path preservation then simply change the
|
||||
`create` policy to one which isn't. `mfs` is probably what most are
|
||||
looking for. The reason it's not default is because it was originally
|
||||
set to `epmfs` and changing it now would change people's setup. Such a
|
||||
setting change will likely occur in mergerfs 3.
|
||||
|
||||
|
||||
## Why does the total available space in mergerfs not equal outside?
|
||||
|
||||
Are you using ext2/3/4? With reserve for root? mergerfs uses available
|
||||
|
|
|
|||
|
|
@ -2,23 +2,22 @@
|
|||
|
||||
## I modified mergerfs' config but it still behaves the same.
|
||||
|
||||
mergerfs, like most filesystems, are given their options/arguments
|
||||
at mount time. Unlike most filesystems, mergerfs also has the ability
|
||||
to modify certain options at [runtime](../runtime_interfaces.md).
|
||||
mergerfs, like other filesystems, are given their options/arguments at
|
||||
mount time. You can not simply modify the [source of the
|
||||
configuration](../quickstart.md#usage) and have those settings applied
|
||||
any more than you would for other filesystems. It is the user's
|
||||
responsibility to [restart](../setup/upgrade.md) mergerfs to pick up
|
||||
the changes or use the [runtime interface](../runtime_interfaces.md).
|
||||
|
||||
That said: mergerfs does not actively try to monitor typical methods
|
||||
of configuration (nor should it.) As such if changes are made to
|
||||
`/etc/fstab`, a systemd unit file, etc. it will have no knowledge of
|
||||
those changes. It is the user's responsibility to
|
||||
[restart](../setup/upgrade.md) mergerfs to pick up the changes or use
|
||||
the [runtime interface](../runtime_interfaces.md).
|
||||
NOTE: the [runtime interface](../runtime_interfaces.md) is **just**
|
||||
for runtime changes. It does **NOT** save those changed values
|
||||
anywhere.
|
||||
|
||||
|
||||
## Why are all my files ending up on 1 filesystem?!
|
||||
|
||||
Did you start with empty filesystems? Did you explicitly configure a
|
||||
`category.create` policy? Are you using an `existing path` / `path
|
||||
preserving` policy?
|
||||
Did you start with empty filesystems? Are you using an `existing path`
|
||||
policy?
|
||||
|
||||
The default create policy is `epmfs`. That is a path preserving
|
||||
algorithm. With such a policy for `mkdir` and `create` with a set of
|
||||
|
|
@ -37,6 +36,39 @@ and wish your files to be spread across all your filesystems change
|
|||
restrictive [policy](../config/functions_categories_policies.md).
|
||||
|
||||
|
||||
## Why do I get an "out of space" / "no space left on device" / ENOSPC error even though there appears to be lots of space available?
|
||||
|
||||
First make sure you've read the sections above about [policies, path
|
||||
preservation, branch
|
||||
filtering,](../config/functions_categories_policies.md) and the
|
||||
options `minfreespace`, [moveonenospc](../config/moveonenospc.md),
|
||||
[statfs](../config/statfs.md), and
|
||||
[statfs_ignore](../config/statfs.md#statfs_ignore).
|
||||
|
||||
mergerfs is simply presenting a union of the content within multiple
|
||||
branches. The reported free space is an aggregate of space available
|
||||
within the pool (behavior modified by `statfs` and
|
||||
`statfs_ignore`). It does not represent a contiguous space. In the
|
||||
same way that read-only filesystems, those with quotas, or reserved
|
||||
space report the full theoretical space available. Not the practical
|
||||
usable space.
|
||||
|
||||
Due to using an `existing path` based policy, setting a [branch's
|
||||
mode](../config/branches.md#branch-mode) to `NC` or `RO`, a
|
||||
filesystems read-only status, and/or `minfreespace` setting it is
|
||||
[perfectly
|
||||
valid](../config/functions_categories_policies.md#filtering) that
|
||||
`ENOSPC` / "out of space" / "no space left on device" be returned when
|
||||
attempting to create a file despite there being actual space available
|
||||
somewhere in the pool. It is doing what was asked of it: filtering
|
||||
possible branches due to those settings. If that is not the behavior
|
||||
you want you need to modify the settings accordingly.
|
||||
|
||||
It is also possible that the filesystem selected has run out of
|
||||
inodes. Use `df -i` to list the total and available inodes per
|
||||
filesystem.
|
||||
|
||||
|
||||
## Why isn't the create policy working?
|
||||
|
||||
It probably is. The policies rather straight forward and well tested.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue