From owner-freebsd-fs@FreeBSD.ORG Sat Oct 20 16:32:41 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by hub.freebsd.org (Postfix) with ESMTP id A6119E70 for ; Sat, 20 Oct 2012 16:32:41 +0000 (UTC) (envelope-from ae@FreeBSD.org) Received: from [127.0.0.1] (hub.FreeBSD.org [8.8.178.136]) by mx2.freebsd.org (Postfix) with ESMTP id 738943B4EA5; Sat, 20 Oct 2012 16:32:40 +0000 (UTC) Message-ID: <5082D202.9010701@FreeBSD.org> Date: Sat, 20 Oct 2012 20:32:02 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:15.0) Gecko/20121010 Thunderbird/15.0.1 MIME-Version: 1.0 To: David Wimsey Subject: Re: gptzfsboot very slow References: In-Reply-To: X-Enigmail-Version: 1.4.3 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigB57FEB64709315C762B2E4C0" Cc: "freebsd-fs@freebsd.org" X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Oct 2012 16:32:42 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigB57FEB64709315C762B2E4C0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 20.10.2012 12:50, David Wimsey wrote: > My file server is configured with zfs root based on > http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/Mirror >=20 > When booting, after it gets past the BIOS drive C: is disk0 (one line > for each of the 6 drives as expected) part, drops to a new line and > the rotating twiddle starts its bit. At first it moves a long at a > almost normal looking speed, then it starts only ticking away slowly, > maybe once or twice a minute. >=20 > It appears that its scanning the entire drive or something odd. Its > hard to tell if its doing it on all the drives as half of them are on > a RocketRAID card (configured as JBOD) which doesn't have a LED > indicator attached to it for showing activity. >=20 > There are a total of 6 drives in the machine. >=20 > 2 drives are SSDs which are sliced up to provide the root mirror > vdev, a mirrored vdev for the zip if the main pool on the machine and > each provide a slice L2ARC. Some of the remaining space is in a > small pool 3 of the HDDs are part of a raidz vdev for my main pool.=20 > The remaining HDD is a hot spare. >=20 > If I remove the HDDs from the system and just let the SSDs handle the > boot, its faster but still far longer than it should be, so when I'm > in a hurry I unplug the 4 HDDs, boot, wait for it to get to the > FreeBSD boot menu, plug the HDDs back in and send it on its marry > way. >=20 > This can not be expected behavior in my mind. Why is it doing so > much disk thrashing when the pools are all perfectly clean. Hi, David. These lines are not from gptzfsboot, but from the loader. You can try the loader(8) from the FreeBSD 10-CURRENT, you may take it from recent snapshot: https://pub.allbsd.org/FreeBSD-snapshots/amd64-amd64/10.0-HEAD-20121006-J= PSNAP/stage/trees/boot/zfsloader --=20 WBR, Andrey V. Elsukov --=20 WBR, Andrey V. Elsukov --------------enigB57FEB64709315C762B2E4C0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQEcBAEBAgAGBQJQgtIhAAoJEAHF6gQQyKF6q1IH+gOvIvfMx6TQNRJZvl2M0WFT oEsZZzBbFYCk7mLxuf92ScbCzoBhiiTgONV0uziVqIhWUNxSsNqtHVHttK0SFq1B uHG1/laZiN5hLNjRYtRAQfN6Nr0mTeH9O4VVJk9chXzhlqcF5r3whpWvHjrKgJhf mvjd3CMbxpBWmTbD0eX4SSMo2+MDS3pmhMXPGVrnoSm0fthUWxVUvqp0WOYbqRMX OkpG0hvTkQ4W4p/7CbsG9FHlyMf+c+k9bOnQcAuDyVgXN6edstH7SWxboGduba+K MKPVZrWl/bpUZdYmngL33SIVMlpDRDpFnzhd+Eij5+5h74EYNsWyPi0rp3JILuk= =JPI6 -----END PGP SIGNATURE----- --------------enigB57FEB64709315C762B2E4C0--