From owner-freebsd-questions@FreeBSD.ORG Mon Feb 27 22:53:15 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1E475106564A for ; Mon, 27 Feb 2012 22:53:15 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 6FD3A8FC0C for ; Mon, 27 Feb 2012 22:53:14 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [IPv6:2001:8b0:151:1:fa1e:dfff:feda:c0bb]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id q1RMrA4a051576 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Mon, 27 Feb 2012 22:53:10 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: OpenDKIM Filter v2.4.3 smtp.infracaninophile.co.uk q1RMrA4a051576 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1330383190; bh=cgGitw8UY0h6q/hcrRb7cNGZdfkgBKGCuRr4dub74Xk=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Cc; b=FKknQK+hzxGSadGB3ENZVewgFxJ8z/wL5hrjfzyUtqFzT0lc6FKrptOR+UhC9gGLR qZsyKE76yo6TnWItiby+TgjqNWs2bzcqUEriW95j73lsZ13ULZYb5YcgOH00ldtM2H 0DK9YpNPpV2zlcgdCrcRo3hF+yfTCFm3s5+79O/E= Message-ID: <4F4C094C.1010900@infracaninophile.co.uk> Date: Mon, 27 Feb 2012 22:53:00 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4F4BFB09.9090002@weogeo.com> In-Reply-To: <4F4BFB09.9090002@weogeo.com> X-Enigmail-Version: 1.3.5 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigE0BD73882A3371C489855253" X-Virus-Scanned: clamav-milter 0.97.3 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Subject: Re: "find" not traversing all directories on a single zfs file system 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: Mon, 27 Feb 2012 22:53:15 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigE0BD73882A3371C489855253 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 27/02/2012 21:52, Robert Banfield wrote: > Long version: I'm new to FreeBSD and ZFS (many years of linux > experience though), so my apologies if I'm missing something > straightforward here. This is a tile server which has tens of millions= > of mostly small files. I'm logged in as root, and there is no networke= d > file system anywhere in the mix. I'm using the version of find > installed with FreeBSD 9.0-RELEASE amd64. >=20 > cd /zfs_mount_point/mydir > find . &> ../file_list >=20 > I would presume that file_list contains a list of every file and > directory inside of /zfs_mount_point/mydir, however some directories > contain only the directory entry without any of the file and > subdirectories it contains. These are all actual directories -- no symbolic link or anything like that? I assume permissions are not the problem? All directories have at least mode r_x for your user id? (Hmmm... but you are logged in as root -- can't be that then.) How about ACLs? Are you using those at all on your filesystem? The symptoms you are observing are definitely incorrect, and not at all what the vast majority of find(1) users would experience. Something is definitely a bit fubar on your machine. It would be useful to try and establish if it is the find(1) program giving bogus results, or whether it is some other part of the system. Do other methods of printing out the filesystem contents suffer from the same problem -- eg. 'ls -R .' or 'tar -cvf /dev/null .' Is there anything in the system log or printed on the console? (Note: I always find it useful to enable the console.log and all.log by uncommenting the relevant lines in /etc/syslog.conf and following the other instructions there.) Also, is this 9.0-RELEASE straight from the installation media, or did you compile it yourself? If you compiled it yourself, what compiler did you use (gcc or clang)? What optimization and what architecture settings -- trying to tweak such things for maximum optimization frequently leads to dissapointment. If you installed onto ZFS, what procedure did you follow, given that bsdinstall doesn't have that capability yet? Was it by following one of the well-known recipes like http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot = ? Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matthew@infracaninophile.co.uk Kent, CT11 9PW --------------enigE0BD73882A3371C489855253 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk9MCVUACgkQ8Mjk52CukIzPGgCfZSsXewibxHTchp4XQDT1b8oA cPYAn01M7J5yTjA7SY3fATaSX4871JmC =eUY7 -----END PGP SIGNATURE----- --------------enigE0BD73882A3371C489855253--