Scroll to navigation

rozo_trashd(8) User Manuals rozo_trashd(8)


rozo_trashd - RozoFS trash daemon


rozo_trashd [ PARAMS ] [ OPTIONS ]


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:

- the number of files/directories scanned,
- the number failures while attempting to delete files/directories.
- the total amount of bytes that have been successfully deleted.

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.


Use eid as the exportd identifier as defined in the export configuration file: /etc/rozofs/export.conf (or /usr/local/etc/rozofs/export.conf according to install options)


Print help.
This option defines the delay in hours between two activation of the rozo_trashd process. (default 12 h).
Use file as configuration file default is /etc/rozofs/export.conf (or /usr/local/etc/rozofs/export.conf according to install options)
that option defines the retention time of files/directories in the trashes. The information is given in days unit.
that option when set, indicates that the rozo_trashd process operates in continuous mode.
that option sets the rozo_trashd process in verbose mode.
that option defines the maximum deletion rate per second applied to files and directories (default:10).
that option defines the maximun i-node scanning rate per second. (default: none).
When that option is provided, the frequency , deletion rate, scanning rate and verbose mode are read from that configuration file. When it is provided rozo_trashd operates automatically in continuous mode (default: none).


/var/run/rozo_trashd/result_trash_<eid> , /var/run/rozo_trashd/result_trash_<eid>.json

The current result files associated with exportd <eid>.
/etc/rozofs/export.conf or /usr/local/etc/rozofs/export.conf
The system wide configuration file. See export.conf(5) for further details.
The log file. See syslogd(8) and syslog.conf(5) for further details.


Report bugs to <>.


Copyright (c) 2016 Rozo Systems. <>

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 <>.


Rozo Systems <>


rozofs(7), export.conf(5), rozo_trashd.conf(5), exportd(8)

MARCH 2017 RozoFS