I found that moosefs trash take too much of my disk space. according to moosefs documentation, it will keep it for a while in case user want it back. But How to clean it up manually to save space?
how to manually empty moosefs trash folder to save space
1.7k Views Asked by scott huang At
1
There are 1 best solutions below
Related Questions in MOOSEFS
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
In order to purge MooseFS' trash, you need to mount special directory called "MooseFS Meta".
Create mountdir for MooseFS Meta directory first:
and mount
mfsmeta
:If your Master Server Host Name differs from default
mfsmaster
and/or port differs from default9421
, use appropriate switch, e.g.:Then you can find your deleted files in
/mnt/mfsmeta/trash/SUBTRASH
directory. Subtrash is a directory inside/mnt/mfsmeta
named000..FFF
. Subtrashes are helpful if you have many (e.g. millions) of files in trash, because you can easily operate on them using Unix tools likefind
, whereas if you had all the files in one directory, such tools may fail.If you do not have many files in trash, mount Meta with
mfsflattrash
parameter:or if you use Master Host Name or Port other than default:
In this case your deleted files will be available directly in
/mnt/mfsmeta/trash
(without subtrash).In both cases you can remove files by simply using
rm file
or undelete them by moving them toundel
directory available in trash or subtrash (mv file undel
).Remember, that if you do not want to have certain files moved to trash at all, set "trash time" (in seconds) for these files to
0
prior to deletion. If you set specific trash time for a directory, all the files created in this directory inherit trash time from parent, e.g.:You can also set a trash time to other value, e.g. 1 hour:
For more information on specific parameters passed to
mfsmount
ormfssettrashtime
, seeman mfsmount
andman mfstrashtime
.Hope it helps!
Peter