mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-25 09:26:25 -05:00
Misc doc updates
This commit is contained in:
parent
1180fd6dd3
commit
1729835b8c
6 changed files with 144 additions and 56 deletions
|
|
@ -1,18 +1,18 @@
|
|||
# Usage and Functionality
|
||||
|
||||
## Can mergerfs be used with filesystems which already have data / are in use?
|
||||
## Can mergerfs be used with filesystems which already have data?
|
||||
|
||||
Yes. mergerfs is really just a proxy and does **NOT** interfere with
|
||||
the normal form or function of the filesystems, mounts, paths it
|
||||
manages. A userland application that is acting as a
|
||||
man-in-the-middle. It can't do anything that any other random piece of
|
||||
software can't do.
|
||||
the normal form or function of the filesystems, mounts, or paths it
|
||||
manages. It literally is interacting with your filesystems as any
|
||||
other application does. It can not do anything that any other random
|
||||
piece of software can't do.
|
||||
|
||||
mergerfs is **not** a traditional filesystem that takes control over
|
||||
the underlying block device. mergerfs is **not** RAID. It does **not**
|
||||
manipulate the data that passes through it. It does **not** shard data
|
||||
across filesystems. It merely shards some **behavior** and aggregates
|
||||
others.
|
||||
the underlying disk or block device. mergerfs is **not** RAID. It does
|
||||
**not** manipulate the data that passes through it. It does **not**
|
||||
shard data across filesystems. It only shards some **behavior** and
|
||||
aggregates others.
|
||||
|
||||
|
||||
## Can filesystems be removed from the pool without affecting them?
|
||||
|
|
@ -37,7 +37,7 @@ Yes.
|
|||
|
||||
## How do I migrate data into or out of the pool when adding/removing filesystems?
|
||||
|
||||
You don't need to. See the previous question's answer.
|
||||
There is no need to do so. See the previous questions.
|
||||
|
||||
|
||||
## How do I remove a filesystem but keep the data in the pool?
|
||||
|
|
@ -47,18 +47,29 @@ config and copy (rsync) the data from the removed filesystem into the
|
|||
pool. The same as if it were you transfering data from one filesystem
|
||||
to another.
|
||||
|
||||
If you wish to continue using the pool while performing the transfer
|
||||
simply create a temporary pool without the filesystem in question and
|
||||
then copy the data. It would probably be a good idea to set the branch
|
||||
to `RO` prior to doing this to ensure no new content is written to the
|
||||
filesystem while performing the copy.
|
||||
If you wish to continue using the pool with all data available while
|
||||
performing the transfer simply create a temporary pool without the
|
||||
branch in question and then copy the data from the branch to the
|
||||
temporary pool. It would probably be a good idea to set the branch
|
||||
mode to `RO` prior to doing this to ensure no new content is written
|
||||
to the filesystem while performing the copy. However, it is typically
|
||||
good practice to run rsync or rclone again after the first copy
|
||||
finishes to ensure nothing is left behind.
|
||||
|
||||
NOTE: Above recommends to "copy" rather than "move" because you want
|
||||
to ensure that your data is transfered before wiping the drive or
|
||||
filesystem.
|
||||
|
||||
|
||||
## Can filesystems be written to directly? Outside of mergerfs while pooled?
|
||||
## Can filesystems still be used directly? Outside of mergerfs while pooled?
|
||||
|
||||
Yes, however, it's not recommended to use the same file from within the
|
||||
pool and from without at the same time (particularly
|
||||
writing). Especially if using caching of any kind (cache.files,
|
||||
cache.entry, cache.attr, cache.negative_entry, cache.symlinks,
|
||||
cache.readdir, etc.) as there could be a conflict between cached data
|
||||
and not.
|
||||
Yes, out-of-band interaction is generally fine. Remember that mergerfs
|
||||
is just a userland application like any other software so its
|
||||
interactions with the underlying filesystems is no different. It would
|
||||
be like two normal applications interacting with the
|
||||
filesystem. However, it's not recommended to write to the same file
|
||||
from within the pool and from without at the same time. Especially if
|
||||
using page caching (`cache.files!=off`) or writeback caching
|
||||
(`cache.writeback=true`). That said this risk is really not
|
||||
really different from the risk of two applications writing to
|
||||
the same file under normal conditions.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue