From owner-freebsd-questions Mon Mar 26 13:13:56 2001 Delivered-To: freebsd-questions@freebsd.org Received: from clmboh1-smtp3.columbus.rr.com (clmboh1-smtp3.columbus.rr.com [65.24.0.112]) by hub.freebsd.org (Postfix) with ESMTP id E57AB37B719 for ; Mon, 26 Mar 2001 13:13:53 -0800 (PST) (envelope-from wmoran@iowna.com) Received: from iowna.com (dhcp065-024-023-038.columbus.rr.com [65.24.23.38]) by clmboh1-smtp3.columbus.rr.com (8.11.2/8.11.2) with ESMTP id f2QLB8H09530; Mon, 26 Mar 2001 16:11:09 -0500 (EST) Message-ID: <3ABFB14A.EF4E0A28@iowna.com> Date: Mon, 26 Mar 2001 16:14:50 -0500 From: Bill Moran X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.2-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: dyu@cdknet.com Cc: freebsd-questions@FreeBSD.ORG Subject: Re: defragment... References: <002501c0b62b$64ddf290$1900a8c0@glass> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG dyu wrote: > > hi all, > > I was wondering, is it necessary to defrag my FreeBSD server drives one in a > while like in Windows? > if so, what command or software is good? > thanks, No, the FFS (the filesystem that FreeBSD uses) defragments itself on the fly during normal operation and needs no manual defragmentation. There are (supposedly) some weird usage circumstances where this doesn't work properly and the filesystem can get pretty disorganized, but this usually happens only when the filesystem is very close to full. As long as you keep a good percentage of free space, there's no problem (see "man tunefs" for more details) If it does get messy and need fixed, you'll need backup your data, reformat the filesystem and restore to defrag. This happens pretty seldom and there's really no need for a defrag tool. The upshot is that the filesystem doesn't really need any regular maintenance. If you're curious about technical details, the file /usr/share/doc/papers/diskperf.ascii.gz has a really interesting writeup on how it works. -Bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message