mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[GH-ISSUE #1938] Question: Are files mirrored locally? #977
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#977
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tonekk on GitHub (Apr 26, 2022).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1938
Hi,
I have a (probably really naive) question: Does s3fs mirror files locally?
Because I'm currently working on an ec2 instance (that somebody else set up), which uses s3fs and the disk is full.
It has a bucket mounted locally like this:
It seems like the files inside that bucket also use the disk space of the instance.
Is that expected or is it due to how we mount the bucket?
Thanks in advance!
@ggtakec commented on GitHub (May 22, 2022):
@tonekk Sorry for my late reply.
s3fs keeps the file on its local disk when it uploads it.(That is, your guess is correct.)
That is, user actions(such as the
cpcommand) are interpreted as system calls such aswrite/flushand passed to FUSE.And s3fs should keep the contents of the written file until it is flushed.
When it is flushed, it will start to upload the file.
Note: That you aren't using it, but if you are using the
use_cacheoption, it will cache the contents of the file to your local disk permanently (until it is updated).For example, if you try to upload a new 5GB file, your local disk will require 5GB of free space.
(If you can use multi-part upload, if you run out of disk space, it will work to use less than 5GB of disk, but it will be slower. These options are complicated, but man pages etc. Please refer to.)
If you want to keep
free disk space, consider theensure_diskfreeoption.