|
NAMEdiskcheckd —
daemon to check for disk read errors
SYNOPSIS
DESCRIPTIONdiskcheckd is a daemon which runs in the background,
reading entire disks to find any read errors on those disks. The disks which
should be scanned, and the rates at which they should be scanned, must be
specified in the configuration file, which is
/usr/local/etc/diskcheckd.conf by default.
Any blank lines or lines starting with a
‘ Either the frequency or the rate should be specified, not both, since a specified frequency will be internally converted to whatever rate will result in the disk being scanned at (approximately) that frequency. The size of the disk should not be specified if the rate is specified, since the size is used only to convert a specified frequency into a rate. If the disk is specified as “*”, then
Note that To run When
PROGRESS REPORTINGAfter every 5 minutes or so of sleep time between reads (not including time spent waiting for the reads themselves to complete),diskcheckd will update its command parameter space to
show its progress in scanning each disk. This report can be viewed using
ps(1).
FILES
EXAMPLESTo check all of /dev/ad0 for errors once every two weeks, use this entry in diskcheckd.conf:/dev/ad0 * 14 * To check the first SCSI disk for errors at approximately 64KB/s, use the following entry: /dev/da0 * * 64 To check all disks once every four weeks: * * 28 * DIAGNOSTICSIf any errors occur, they will be written to syslogd(8).HISTORYdiskcheckd first appeared in FreeBSD
5.0.
AUTHORSdiskcheckd and this manual page were written by
Ben Smithurst ⟨ben@FreeBSD.org⟩, with
input from Poul-Henning Kamp
⟨phk@FreeBSD.org⟩. The geom-aware version of the
sector->partition translation code was added by Perry
Hutchison ⟨perryh@pluto.rain.com⟩, based on a mechanism
suggested by Warner Losh
⟨imp@bsdimp.com⟩.
BUGSdiskcheckd Too much of the code assumes all disks have
512 byte sectors.
There are two versions of the code that attempts to identify and report which slice and/or partition contain a detected error. The older version, used when the DIOCGDINFO ioctl is available (i.e. prior to FreeBSD 11.0 ), does not understand either GPT partitions or dedicated BSD disks (having the BSD disklabel in place of an MBR).
Visit the GSP FreeBSD Man Page Interface. |