From owner-freebsd-stable@FreeBSD.ORG Wed Jan 15 18:06:08 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B9B0FCC3 for ; Wed, 15 Jan 2014 18:06:08 +0000 (UTC) Received: from smtp.fagskolen.gjovik.no (smtp.fagskolen.gjovik.no [IPv6:2001:700:1100:1:200:ff:fe00:b]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 45A961382 for ; Wed, 15 Jan 2014 18:06:07 +0000 (UTC) Received: from mail.fig.ol.no (localhost [127.0.0.1]) by mail.fig.ol.no (8.14.7/8.14.7) with ESMTP id s0FI5uH9004712 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 15 Jan 2014 19:05:56 +0100 (CET) (envelope-from trond@fagskolen.gjovik.no) Received: from localhost (trond@localhost) by mail.fig.ol.no (8.14.7/8.14.7/Submit) with ESMTP id s0FI5uLc004709 for ; Wed, 15 Jan 2014 19:05:56 +0100 (CET) (envelope-from trond@fagskolen.gjovik.no) X-Authentication-Warning: mail.fig.ol.no: trond owned process doing -bs Date: Wed, 15 Jan 2014 19:05:56 +0100 (CET) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= Sender: Trond.Endrestol@fagskolen.gjovik.no To: FreeBSD stable Subject: Re: GPT label for ZFS GPT partitions no longer recognized (Was: New FreeBSD snapshots and virtual machine disk images (20140106 r260369)) In-Reply-To: Message-ID: References: <20140108020825.GX64543@glenbarber.us> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) Organization: Fagskolen Innlandet OpenPGP: url=http://fig.ol.no/~trond/trond.key MIME-Version: 1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mail.fig.ol.no Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jan 2014 18:06:08 -0000 On Tue, 14 Jan 2014 17:11+0100, Trond Endrestøl wrote: > On Tue, 7 Jan 2014 21:08-0500, Glen Barber wrote: > > > o 10.0-PRERELEASE amd64 > > > FreeBSD-10.0-PRERELEASE-amd64-20140106-r260369-disc1.iso > > I tried the experimental ZFS stuff in bsdinstaller, I chose a mirrored > pool using 4K disk blocks, and I noticed the zfs0 and zfs1 labels are > indeed shown when running gpart show -l after the first reboot, but > only the gptboot{0,1} and swap{0,1} labels shows up in the /dev/gpt > directory. I guess gnop is doing some mischief to the GPT. I did some googling and found out that during the zpool import step of the gnop create, zpool create, zpool export, gnop destroy, zpool import dance, you should tell ZFS (or actually zpool) to look for devices in the /dev/gpt directory, like this: zpool import -d /dev/gpt -o cachefile=/tmp/zpool.cache zroot I believe you still need to copy the temporary cachefile to the /boot/zfs directory in the BE. Luckily, this treatment doesn't hide the /dev/gpt/zfs{0,1} GPT labels after rebooting. I think it would be better for all of us if usr.sbin/bsdinstall/scripts/zfsboot would run zpool import with the -d option after destroying the *.nop devices, until the scenario with the missing GPT labels is resolved. Any thoughts? -- +-------------------------------+------------------------------------+ | Vennlig hilsen, | Best regards, | | Trond Endrestøl, | Trond Endrestøl, | | IT-ansvarlig, | System administrator, | | Fagskolen Innlandet, | Gjøvik Technical College, Norway, | | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | +-------------------------------+------------------------------------+