📄 amcheck.8
字号:
.\" Title: amcheck.\" Author: .\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>.\" Date: 05/13/2008.\" Manual: .\" Source: .\".TH "AMCHECK" "8" "05/13/2008" "" "".\" disable hyphenation.nh.\" disable justification (adjust text to left margin only).ad l.SH "NAME"amcheck - run Amanda self-checks.SH "SYNOPSIS".HP 8\fBamcheck\fR [\-am] [\-w] [\-sclt] [\-M\ \fIaddress\fR] \fIconfig\fR [\fIhost\fR\ [\fIdisk\fR...]...] [\-o\ \fIconfigoption\fR]....SH "DESCRIPTION".PP\fBAmcheck\fRruns a number of self\-checks on both the\fIAmanda\fRtape server host and the\fIAmanda\fRclient hosts\..PPOn the tape server host,\fBamcheck\fRcan go through the same tape checking used at the start of the nightly\fBamdump\fRrun to verify the correct tape for the next run is mounted\..PP\fBAmcheck\fRcan also do a self\-check on all client hosts to make sure each host is running and that permissions on filesystems to be backed up are correct\..PPYou can specify many host/disk expressions, only disks that match an expression will be checked\. All disks are checked if no expressions are given\..PPSee the\fBamanda\fR(8)man page for more details about\fIAmanda\fR\..SH "OPTIONS".PP\fB\-s\fR.RS 4Run the tape server local and tape checks (same as\fB\-lt\fR)\..RE.PP\fB\-c\fR.RS 4Run the client host checks\. Multiple specific clients can be checked by specifying the client name\..RE.PP\fB\-l\fR.RS 4Run the local tests (e\.g\. permissions) on the server host\..RE.PP\fB\-t\fR.RS 4Run the tape tests on the server host\..RE.PP\fB\-w\fR.RS 4Enables a DESTRUCTIVE check for write\-protection on the tape (which would otherwise cause the subsequent\fBamdump\fRto fail)\. If the tape is writable, this check causes all data after the tape label to be erased\. If the label_new_tapes option is enabled, this check may ERASE any non\-Amanda tape in the drive or changer\. The check enable the tape tests on the server host and is only made if the tape is otherwise correct\..RE.PP\fB\-m\fR.RS 4Nothing is printed, but mail is sent if any errors are detected\. The mail goes to the\fBmailto\fRaddress specified in the\fIamanda\.conf\fRfile or the\fIaddress\fRvalue if\fB\-M\fRis set\..RE.PP\fB\-a\fR.RS 4Like\fB\-m\fRbut the mail is always sent\..RE.PP\fB\-M\fR \fIaddress\fR.RS 4Mail the report to\fIaddress\fRinstead of the\fBmailto\fRvalue from\fIamanda\.conf\fR\. Implies\fB\-m\fR\..RE.PP\fIhost\fR [\fIdisk\fR]*.RS 4Specify the host and disk on which the command will work\..RE.PP\fB\-o\fR \fIconfigoption\fR.RS 4See the "\fBCONFIGURATION OVERRIDE\fR" section in\fBamanda\fR(8)\..RE.PPThe default is\fB\-cs\fR\..SH "EXAMPLES".PPIn this example, both the tape server and client tests are run\. The results are displayed on standard output\..sp.RS 4.nf% amcheck daily\fIAmanda\fR Tape Server Host Check\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-/amanda2/amanda/work: 911475 KB disk space available, that\'s plenty\.NOTE: skipping tape\-writable test\.Tape VOL10 label ok\.Server check took 34\.966 seconds\.\fIAmanda\fR Backup Client Hosts Check\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-WARNING: northstar: selfcheck request timed out\. Host down?WARNING: drinkme: selfcheck request timed out\. Host down?WARNING: scruffy: selfcheck request timed out\. Host down?Client check: 136 hosts checked in 51\.945 seconds, 3 problems found\.(brought to you by \fIAmanda\fR 2\.5\.0) .fi.RE.PPIn this example, if the line\fBmailto csd\-amanda\fRis in\fIamanda\.conf\fR, mail will be sent to\fBcsd\-amanda\fRif the server check returns an error\..sp.RS 4.nf% amcheck \-s \-m daily .fi.RE.SH "MESSAGES".PPfatal slot \fIslot\fR: \fIerror message\fR.RS 4(error) The tape changer detected some kind of fatal error while trying to load slot\fIslot\fR\..RE.PPslot \fIslot\fR: \fIerror message\fR.RS 4(warning) The tape changer detected some kind of non\-fatal error (e\.g\. an empty slot was detected) while trying to load slot\fIslot\fR, or an error was detected trying to read the tape label\..RE.PPslot \fIslot\fR: date \fIYYYYMMDD\fR label \fIlabel\fR (\fIresult\fR).RS 4(info) Tape\fIlabel\fRin slot\fIslot\fRwas loaded and found to have been last written on\fIYYYYMMDD\fR\. If the tape is new, the date field will be an\fIX\fR\. The\fIresult\fRmay be one of:.PPexact label match.RS 4This is the expected tape\..RE.PPno match.RS 4This label does not match the\fBlabelstr\fRpattern in\fIamanda\.conf\fR\. Tape scanning will continue\..RE.PPactive tape.RS 4This tape is still active and cannot be overwritten\. Tape scanning will continue\..RE.PPfirst labelstr match.RS 4This tape is the first one that matches the\fBlabelstr\fRpattern in\fIamanda\.conf\fR\. Tape scanning will continue if necessary\..RE.PPlabelstr match.RS 4This tape is the next one that matches the\fBlabelstr\fRpattern in\fIamanda\.conf\fR\. Tape scanning will continue\..RE.sp.RE.PPERROR: cannot look up dump user \fIuser\fR.RS 4(error) Dump user\fIuser\fRfrom\fIamanda\.conf\fRcould not be found in the system password information\..RE.PPERROR: cannot look up my own uid (\fIuid\fR).RS 4(error) User id\fIuid\fRrunning\fBamcheck\fRcould not be found in the system password information\..RE.PPERROR: running as user \fIrunuser\fR instead of \fIdumpuser\fR.RS 4(error)\fBAmcheck\fRshould be run as the dump user\fIdumpuser\fRfrom\fIamanda\.conf\fRinstead of\fIrunuser\fR\..RE.PPERROR: program dir \fIdirectory\fR: not accessible.RS 4(error) The directory\fIAmanda\fRexpects to find its auxiliary programs in,\fIdirectory\fR, is not accessible\..RE.PPERROR: program \fIprogram\fR: does not exist.RS 4(error) Program\fIprogram\fRneeded on the tape server could not be found\..RE.PPERROR: program \fIprogram\fR: not a file.RS 4(error) Program\fIprogram\fRneeded on the tape server exists but is not a file\..RE.PPERROR: program \fIprogram\fR: not executable.RS 4(error) Program\fIprogram\fRneeded on the tape server exists but is not executable\..RE.PPWARNING: program \fIprogram\fR: not setuid\-root.RS 4(warning) Program\fIprogram\fRneeded on the tape server exists but should be owned by user "root" and setuid\..RE.PPERROR: \fIXXX\fR dir \fIdirectory\fR: not writable.RS 4(error) Directory\fIdirectory\fRis either not writable, i\.e\. the dump user will not be able to create or remove files, or cannot be accessed, perhaps because a parent directory does not allow search permission\. The\fIXXX\fRmay be:.PPlog.RS 4for the\fIAmanda\fRlog directory (see\fBlogdir\fRin\fBamanda\.conf\fR).RE.PPoldlog.RS 4for the directory that holds the old log files (see\fBlogdir\fRin\fBamanda\.conf\fR).RE.PPinfo.RS 4for an\fIAmanda\fRdatabase information directory (see\fBcurinfo\fRin\fBamanda\.conf\fR) or.RE.PPindex.RS 4for an\fIAmanda\fRindex directory (see\fBindexdir\fRin\fBamanda\.conf\fR).RE.PPtapelist.RS 4for the\fIAmanda\fRtapelist directory (see\fBtapelist\fRin\fBamanda\.conf\fR).RE.sp.RE.PPNOTE: \fIXXX\fR dir \fIdirectory\fR: does not exist.RS 4(info) A database (info) or index directory does not exist or cannot be accessed\. This might just mean this is a new client or disk, but if that is not the case, this should be treated as an error\..RE.PPNOTE: it will be created on the next run.RS 4(info) This indicates the info directory listed in the previous message will be created on the next run\..RE.PPERROR: \fIXXX\fR dir \fIname\fR: not a directory.RS 4(error)\fBAmcheck\fRexpected\fIname\fRto be a directory, but it is something else (e\.g\. file)\..RE.PPWARNING: info file \fIfile\fR: does not exist.RS 4(warning) File\fIfile\fRdoes not exist in the text format database\. Since the parent directories do exist, the file should already have been created\..RE.PPERROR: info file \fIname\fR: not a file.RS 4(error)\fBAmcheck\fRexpected\fIname\fRto be a file, but it is something else (e\.g\. file)\..RE.PPERROR: info file \fIfile\fR: not readable.RS 4(error) The text format database file\fIfile\fRis not readable\..RE.PPERROR: log file \fIfile\fR: not writable.RS 4(error) Log file\fIfile\fR(file\fBlog\fRin\fBlogdir\fRfrom\fBamanda\.conf\fR) is either not writable, or cannot be accessed, perhaps because a parent directory does not allow search permission\..RE.PPERROR: tape list \fItapelist\fR: not writable.RS 4(error)\fIAmanda\fRtape list file\fItapelist\fR(see\fBtapelist\fRin\fBamanda\.conf\fR) is not writable or was not found\..RE.PPERROR: tape list \fItapelist\fR: parse error.RS 4(error)\fIAmanda\fRtape list file\fItapelist\fR(see\fBtapelist\fRin\fBamanda\.conf\fR) could not be read or parsed\..RE.PPWARNING: tapedev is /dev/null, dumps will be thrown away.RS 4(warning) The\fBtapedev\fRparameter in\fBamanda\.conf\fRis set to\fI/dev/null\fRand\fIAmanda\fRuses that when debugging to throw all the dump images away\..RE.PPWARNING: hold file \fIfile\fR exists.RS 4(info) Hold file\fIfile\fRexists and will cause\fBamdump\fRto pause at the beginning until it is removed\..RE.PPERROR: holding disk \fIdisk\fR: statfs: \fIerror message\fR.RS 4(error) An error was returned from the\fIstatfs\fRsystem call on holding disk\fIdisk\fR(maybe because it does not exist)\..RE.PPERROR: holding disk \fIdisk\fR: not writable.RS 4(error) Holding disk\fIdisk\fR, is not writable, probably because the caller does not have write permission or a parent directory does not allow search permission\..RE.PPWARNING: holding disk \fIdisk\fR: available space unknown \fIN\fR KB requested\..RS 4(warning)\fBAmcheck\fRcould not determine the amount of available space on holding disk\fIdisk\fRto see if there were at least\fIN\fRKBytes available\..RE.PPWARNING: holding disk \fIdisk\fR: only \fIF\fR KB free (\fIR\fR KB requested)\..RS 4(warning)\fIamanda\.conf\fRrequested\fIR\fRKBytes of free space on holding disk\fIdisk\fR, but only\fIF\fRKBytes were available\. 10 MBytes is subtracted for each backup process (see the\fBinparallel\fR\fIamanda\.conf\fRoption) to allow for unexpected overruns\..sp.it 1 an-trap.nr an-no-space-flag 1.nr an-break-flag 1.brNoteEven though this message is listed as a warning, it causes\fBamcheck\fRto exit with a non\-zero status\..RE.PPHolding disk \fIdisk\fR: \fIN\fR KB disk space available, that\'s plenty\..RS 4(info) There was sufficient free space on holding disk\fIdisk\fR\..RE.PPWARNING: holding disk \fIdisk\fR: only \fIF\fR KB free, using nothing.RS 4(warning) Holding disk\fIdisk\fRhas\fIF\fRKBytes of free space, but that is not enough for what is requested in\fIamanda\.conf\fR\..RE.PPHolding disk \fIdisk\fR: \fIF\fR KB disk space available, using \fIU\fR KB.RS 4(info) Holding disk\fIdisk\fRhas\fIF\fRKBytes of free space and\fIAmanda\fRwill be using up to\fIU\fRKbytes\..RE.PPWARNING: if a tape changer is not available, runtapes must be set to 1\..RS 4(warning) The\fBruntapes\fR\fIamanda\.conf\fRoption must be set to 1 if the\fBtpchanger\fR\fIamanda\.conf\fRoption is not set\..RE.PPERROR: \fIerror message\fR\..RS 4(error) An error was detected while initializing the tape changer\..RE.PPERROR: \fItape device\fR: \fIerror message\fR\..RS 4(error) An error was detected while processing the tape label\..RE.PPERROR: cannot overwrite active tape \fIlabel\fR\..RS 4(error) Tape\fIlabel\fRis still active and cannot be used\..RE.PPERROR: label \fIlabel\fR doesn\'t match labelstr \fIpattern\fR \..RS 4(error) The label on tape\fIlabel\fRdoes not match the\fBlabelstr\fR\fIamanda\.conf\fRoption\..RE.PP(expecting a new tape).RS 4(info) The tape is not OK and a new tape was expected\..RE.PP(expecting tape \fIlabel\fR or a new tape).RS 4(info) The tape is not OK and either tape\fIlabel\fRor a new tape was expected\..RE.PPERROR: tape \fIlabel\fR label ok, but is not writable\..RS 4(error) Tape\fIlabel\fRis OK, but the write enable test failed\..RE.PPTape \fIlabel\fR is writable\..RS 4(info) Tape\fIlabel\fRis OK and the write enable test succeeded\..RE.PPNOTE: skipping tape\-writable test\..RS 4(info) The tape write test (see the\fB\-w\fRoption) was not enabled\..RE.PPWARNING: skipping tape test because amdump or amflush seem to be running, WARNING: if they are not, you must run amcleanup.RS 4(warning) It looked to\fBamcheck\fRlike either\fBamdump\fRor\fBamflush\fRwere running because a log file or amdump file exists\. If they are not running, you probably need to run\fBamcleanup\fRto clear up a previous failure\. Otherwise, you need to wait until they complete before running\fBamcheck\fR\..RE.PPNOTE: skipping tape checks.RS 4(info) The tape tests are being skipped because you used the\fB\-t\fRcommand line option\..RE.PPWARNING: \fIcompress\fR is not executable, server\-compression and indexing will not work.RS 4(warning) Compression program\fIcompress\fRis not executable, so compression on the tape server host and creating index files will not work\..RE.PPTape \fIlabel\fR label ok\..RS 4(info) Tape\fIlabel\fRis OK for the next run\..RE.PPServer check took \fIS\fR seconds\..RS 4(info) Reports how long the tape server host checks took\..RE.PPERROR: \fIhost\fR: could not resolve hostname.RS 4(error) Could not look up client hostname\fIhost\fR\..RE.PPClient check: \fIH\fR hosts checked in \fIS\fR seconds, \fIN\fR problems found\..RS 4(info) Reports the number of client hosts checked, how long it took and the number of errors detected\..RE.PPWARNING: \fIhost\fR: selfcheck request timed out\. Host down?.RS 4(warning) There was no response from\fIhost\fRwhen trying to do the client checks\. The host might really be down or it might not be configured properly\..RE.PPERROR: \fIhost\fR NAK: \fImessage\fR.RS 4(error)\fIHost\fRreported a negative acknowledgment error of\fImessage\fRto the status check request\..RE.PPERROR: \fIhost\fR NAK: [NAK parse failed].RS 4(error)\fBAmcheck\fRcould not parse the negative acknowledgment error from\fIhost\fR\. There might be an\fIAmanda\fRversion mismatch between the host running\fBamcheck\fRand\fIhost\fR\..RE.PPERROR: \fIhost\fR [mutual\-authentication failed].RS 4(error) Kerberos authentication failed while contacting\fIhost\fR\..RE.PPERROR: \fIhost\fR: \fImessage\fR.RS 4(error) Error\fImessage\fRwas reported by the status check on\fIhost\fR\..RE.SH "AUTHOR".PPJames da Silva,<jds@amanda\.org>: Original text.PPStefan G\. Weichinger,<sgw@amanda\.org>, maintainer of the\fIAmanda\fR\-documentation: XML\-conversion.SH "SEE ALSO".PP\fBamanda\fR(8),\fBamdump\fR(8),\fI\%http://wiki.zmanda.com\fR
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -