'\" t .\" Title: lizardfs-filerepair .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: 06/17/2017 .\" Manual: \ \& .\" Source: \ \& .\" Language: English .\" .TH "LIZARDFS\-FILEREPAIR" "1" "06/17/2017" "\ \&" "\ \&" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" lizardfs-filerepair \- repair broken files .SH "SYNOPSIS" .sp .nf \fBlizardfs filerepair\fR [\fB\-n\fR|\fB\-h\fR|\fB\-H\fR] \fIFILE\fR\&... .fi .SH "DESCRIPTION" .sp \fBfilerepair\fR deals with broken files (those which cause I/O errors on read operations) to make them partially readable\&. In case of missing chunk it fills missing parts of file with zeros; in case of chunk version mismatch it sets chunk version known to \fBmfsmaster\fR to highest one found on chunkservers\&. .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBNote\fR .ps -1 .br .sp Because in the second case content mismatch can occur in chunks with the same version, it\(cqs advised to make a copy (not a snapshot!) and delete original file after "repairing"\&. .sp .5v .RE .SH "OPTIONS" .PP \fB\-c\fR .RS 4 This option enables correct\-only mode, which will restore chunk to a previous version if possible, but will never erase any data\&. .RE .PP \fB\-n\fR, \fB\-h\fR, \fB\-H\fR .RS 4 These options are described in lizardfs(1)\&. .RE .SH "COPYRIGHT" .sp Copyright 2008\-2009 Gemius SA, 2013\-2016 Skytechnology sp\&. z o\&.o\&. .sp LizardFS 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 3\&. .sp LizardFS 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\&. .sp You should have received a copy of the GNU General Public License along with LizardFS\&. If not, see http://www\&.gnu\&.org/licenses/\&. .SH "SEE ALSO" .sp lizardfs(1)