From owner-freebsd-stable@FreeBSD.ORG Thu Dec 31 22:12:35 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5CA11106568B for ; Thu, 31 Dec 2009 22:12:35 +0000 (UTC) (envelope-from hartzell@almost.alerce.com) Received: from merlin.alerce.com (merlin.alerce.com [64.62.142.94]) by mx1.freebsd.org (Postfix) with ESMTP id 455988FC1D for ; Thu, 31 Dec 2009 22:12:34 +0000 (UTC) Received: from merlin.alerce.com (localhost [127.0.0.1]) by merlin.alerce.com (Postfix) with ESMTP id B1DF133C64; Thu, 31 Dec 2009 14:12:34 -0800 (PST) Received: from almost.alerce.com (w092.z064001164.sjc-ca.dsl.cnc.net [64.1.164.92]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by merlin.alerce.com (Postfix) with ESMTP id 5761C33C62; Thu, 31 Dec 2009 14:12:34 -0800 (PST) Received: by almost.alerce.com (Postfix, from userid 503) id AA4455EA012; Thu, 31 Dec 2009 14:12:33 -0800 (PST) From: George Hartzell MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19261.8657.603888.598018@gargle.gargle.HOWL> Date: Thu, 31 Dec 2009 14:12:33 -0800 To: Eric In-Reply-To: <4B3D15BB.2080808@mikestammer.com> References: <19261.3612.150477.365986@gargle.gargle.HOWL> <4B3D15BB.2080808@mikestammer.com> X-Mailer: VM 8.0.12 under 22.3.1 (i386-apple-darwin9.6.0) X-Virus-Scanned: ClamAV using ClamSMTP Cc: freebsd-stable@freebsd.org, hartzell@alerce.com Subject: Re: ZFS and disappearing glabels X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hartzell@alerce.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Dec 2009 22:12:35 -0000 Eric writes: > On 12/31/2009 1:48 PM, George Hartzell wrote: > > > > I've set up a system as described here. > > > > http://wiki.freebsd.org/RootOnZFS/ZFSBootPartition > > > > Using the 8.0 Release DVD and then csup'ing to RELENG_8 and > > rebuilding. > > > > I set it up with a single drive, the only change that I made was that > > after creating ad10s1a I glabeled it as disk0, then added > > /dev/label/disk0 to the pool. > > > > That worked great. > > > > Then I added a second larger drive, giving it an MBR, a bsd label, and > > an s1a partition that I glabeled as disk1. I attached that to the > > pool and it resilvered happily. > > > > However, when I rebooted I found that the pool now consists of > > label/disk0 and ad12s1a. I detached ad12s1a, relabeled it as disk1, > > and attached disk1 to the pool again. It resilvered fine. Running > > strings on /boot/zfs/zpool.cache shows /dev/label/disk0 and > > /dev/label/disk1. > > > > But, when I reboot I find I'm back to label/disk0 and ad12s1a. At > > this point strings on zpool.cache lists /dev/label/disk0 and ad12s1a. > > > > I'd like to have the device independence of using labels, and am also > > worried about problems caused by the different "disk" sizes (since the > > glabeled partition is 512 bytes smaller). > > > > Any ideas what's going wrong? > > > > Thanks, > > > > > i ran into the same issues. every reboot i would have to fight to > relabel the drive (on 7.2). I upgraded to 8 and used GPT for everything > (and ZFS on root) and i have not had any issues. I would recommend going > that route. You can still label the drives with labels. > > This is the docs I followed: > > http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/Mirror > > Works great! I'm running something like that on another machine, but can't on this one. The gory details include the fact that this is a mac pro. It's EFI firmware only does magic bios emulation if it sees an MBR formatted disk and so setting things up via GPT won't work for me. I did try it using the link that you pointed to above and it wouldn't boot. Tried it via the apple's firmware "choose a boot disk by holding down the option key" trick and via rEFIt. g.