Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Feb 2004 16:06:46 -0500
From:      Chuck Swiger <cswiger@mac.com>
To:        Mark Hessler <mark.hessler@verizon.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Other ways to check/repair disks besides fsck?
Message-ID:  <402E8DE6.2060602@mac.com>
In-Reply-To: <402E8931.2020509@verizon.net>
References:  <402E8931.2020509@verizon.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Mark Hessler wrote:
> Are there any other approaches to checking/repairing disks besides fsck 
> after a power outage? 

Certainly, however it would help to know what types of problems you are 
concerned about reparing: physical media errors, data corruption within the 
filesystem (truncated files, open files with unwritten data, etc), or other 
kinds of problems?

You can use RAID mirroring against physical data loss.

You can use tripwire or other checksumming routines to verify whether file 
contents are intact.

You can compare files against backups, and restore if needed.

You can use software which performs fault-tolerance transaction processing-- 
for instance, databases with transaction rollback capabilities.

You can mount the filesystem with -o sync to keep data+metadata more 
consistant at the expense of performance.

You can obtain a UPS and shutdown cleanly in the event of power outage.

-- 
-Chuck



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?402E8DE6.2060602>