From owner-freebsd-questions@FreeBSD.ORG Wed Feb 9 21:42:33 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 287BC16A4CE for ; Wed, 9 Feb 2005 21:42:33 +0000 (GMT) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.199.47.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id D878743D1D for ; Wed, 9 Feb 2005 21:42:32 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id A7ECA512AF; Wed, 9 Feb 2005 13:42:31 -0800 (PST) Date: Wed, 9 Feb 2005 13:42:31 -0800 From: Kris Kennaway To: freebsd-questions@freebsd.org Message-ID: <20050209214231.GA65112@xor.obsecurity.org> References: <20050209163433.GW8365@gentoo-npk.bmp.ub> <20050209171039.GD37205@xor.obsecurity.org> <20050209173057.GX8365@gentoo-npk.bmp.ub> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PEIAKu/WMn1b1Hv9" Content-Disposition: inline In-Reply-To: <20050209173057.GX8365@gentoo-npk.bmp.ub> User-Agent: Mutt/1.4.2.1i Subject: Re: determine ufs2 %fragmentation on mounted filesystem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Feb 2005 21:42:33 -0000 --PEIAKu/WMn1b1Hv9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 09, 2005 at 11:30:57AM -0600, Nathan Kinkade wrote: > On Wed, Feb 09, 2005 at 09:10:39AM -0800, Kris Kennaway wrote: > > On Wed, Feb 09, 2005 at 10:34:33AM -0600, Nathan Kinkade wrote: > > > Does anyone know of a way to determine the %fragmentation on a mounted > > > UFS2 filesystem? An entry showed up in messages yesterday stating th= at > > > /usr has moved from time to space optimization yet the filesystem is > > > only at about 25% of it's capacity. From what I can read it seems th= at > > > the kernel might also make this switch if fragmentation becomes > > > excessive. However, this is a busy production machine running Squid,= so > > > I can't conveniently umount /usr. > >=20 > > Try dumpfs(8). > >=20 > > Kris >=20 > I had already tried dumpfs, but couldn't find any information about > actual filesystem fragmentation in the output. Actually, I think you're right..the 'frag' reported there is the fragment size. Kris --PEIAKu/WMn1b1Hv9 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCCoPHWry0BWjoQKURApdVAJ97ZejATvuUrbKGvYHd22tSCWMhZgCfcF9T eWH2CwiqtX0EQqgFiAcANtw= =iA+v -----END PGP SIGNATURE----- --PEIAKu/WMn1b1Hv9--