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.
|-e, --exportd eid||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)|
|-h, --help||Print help.|
|-f,--frequency hours||This option defines the delay in hours between two activation of the rozo_trashd process. (default 12 h).|
|-c,--config file||Use file as configuration file default is /etc/rozofs/export.conf (or /usr/local/etc/rozofs/export.conf according to install options)|
|--older days||that option defines the retention time of files/directories in the trashes. The information is given in days unit.|
|--cont||that option when set, indicates that the rozo_trashd process operates in continuous mode.|
|--verbose||that option sets the rozo_trashd process in verbose mode.|
|-rate count||that option defines the maximum deletion rate per second applied to files and directories (default:10).|
|--scan count||that option defines the maximun i-node scanning rate per second. (default: none).|
|--cfg <trashd.conf>||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./var/log/syslog
Report bugs to <bugs>.
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/>.
Rozo Systems <http://www.rozofs.com>