From owner-freebsd-questions@FreeBSD.ORG Thu Mar 1 22:41:43 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BB44316A400 for ; Thu, 1 Mar 2007 22:41:43 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id 6BADB13C48D for ; Thu, 1 Mar 2007 22:41:43 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id l21Md60I086364; Thu, 1 Mar 2007 17:39:06 -0500 (EST) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id l21Md5wR086363; Thu, 1 Mar 2007 17:39:05 -0500 (EST) (envelope-from jerrymc) Date: Thu, 1 Mar 2007 17:39:05 -0500 From: Jerry McAllister To: Norberto Meijome Message-ID: <20070301223905.GA86318@gizmo.acns.msu.edu> References: <539c60b90703010849x33dd4bbbt8f6ca6aa0c8e83a0@mail.gmail.com> <20070301192109.A24369@chylonia.3miasto.net> <20070302085100.125cf488@localhost> <20070301221738.GA86154@gizmo.acns.msu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070301221738.GA86154@gizmo.acns.msu.edu> User-Agent: Mutt/1.4.2.2i Cc: Wojciech Puchar , Steve Franks , FreeBSD Users Questions Subject: Re: defrag X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Mar 2007 22:41:43 -0000 On Thu, Mar 01, 2007 at 05:17:38PM -0500, Jerry McAllister wrote: > On Fri, Mar 02, 2007 at 08:51:00AM +1100, Norberto Meijome wrote: > > > On Thu, 1 Mar 2007 19:22:32 +0100 (CET) > > Wojciech Puchar wrote: > > > > > backup+restore will be defrag > > > > you mean : backup, format, (reinstall if needed, depending on method of backup) > > and restore - or simply restore on top (if you backed up everything and can > > access your drive offline). > > > > simply overwriting the existing files won't change anything, would it? You'd > > need a clean slate to do a defrag this way... > > Well, it would do some, but for the greatest effect, you would need: > dump + rm -rf * + restore > That would get it all. > > You could be really extreme and do: > dump + newfs + restore > if you wanted to, to be sure of a clean file system > > You would not need a reformat (though some people really mean newfs > when they say reformat) and you would not need any reinstall. But, > if you did this on the root partition, you would have to to the > restore from some other boot such as on a different disk or from > the fixit utility on the installation CD. That shouldn't be > necessary for any other file system unless you foolishly put /sbin > in a partition other than / (root). Of course, I should have re-emphasized that this is not needed. You will not improve performance. Its only value might be to exercise every used file block on the filesystem to make sure it is still readable. And for that you don't need to nuke and rewrite things. Just doing the backup (which you should do anyway) will read up all used file space (except what you might have marked as nodump). -- or the other possible value - to placate mal-informed management. ////jerry > > ////jerry > > > _________________________ > > {Beto|Norberto|Numard} Meijome > > > > Software isn't released.... it escapes. > > > > I speak for myself, not my employer. Contents may be hot. Slippery when wet. > > Reading disclaimers makes you go blind. Writing them is worse. You have been > > Warned. > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"