table of contents
rozo_trashd(8) | User Manuals | rozo_trashd(8) |
NAME¶
rozo_trashd - RozoFS trash daemon
SYNOPSIS¶
rozo_trashd [ PARAMS ] [ OPTIONS ]
DESCRIPTION¶
RozoFS provides the ability to associate a local trash for each created directory. When a file is deleted, rather than removing the file from the current RozoFS filesystem, the file is moved towards the trash of its parent directory.
At any moment, a user can restore a file/directory that has been moved in its parent trash. However, the system cannot keep indefinitely files in the trashes and for that purpose, RozoFS provides for each export a trash process whose job is to remove files/directories that are older than a configured retention delay.
The rozo_trashd daemon can operates either in one shot mode or background mode.
When it operates in one shot mode, once all the files/directories are been scanned searching for file/directories to delete, it stops, and needs to be restarted manunally for a next run. When it operates in background mode, once a full scanning has been done, it sleeps waiting for the next period of activation defined by the user.
During the deletion process, the rozo_trashd process periodically provides statistics concerning the progress of the deletion. The information provided are:
These statistics are found in the following files: /var/run/rozo_trashd/result_trash_<eid> or /var/run/rozo_trashd/result_trash_<eid>.json where <eid> designates the export for which rozo_trashd is run.
There is one rozo_trashd process per RozoFS exported filesystem. The rozo_trashd daemon MUST be run on server that supports the active exportd. rozo_trashd RozoFS storage rebalancer. The goal of the rebalancer is to move files within a RozoFS Volume in order to balance the storage. The process MUST run on the same node as the exportd where the volume is defined. It can be started either as a background process or in one shot mode. When it is started in the one shot mode, the process ends when the balance criteria are met.
PARAMS¶
OPTIONS¶
FILES¶
/var/run/rozo_trashd/result_trash_<eid> , /var/run/rozo_trashd/result_trash_<eid>.json
REPORTING BUGS¶
Report bugs to <bugs@fizians.org>.
COPYRIGHT¶
Copyright (c) 2016 Rozo Systems. <http://www.rozofs.com>
Rozofs is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
Rozofs is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
AUTHOR¶
Rozo Systems <http://www.rozofs.com>
SEE ALSO¶
rozofs(7), export.conf(5), rozo_trashd.conf(5), exportd(8)
MARCH 2017 | RozoFS |