From owner-freebsd-stable@FreeBSD.ORG Thu Dec 31 21:54:23 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 10B891065692 for ; Thu, 31 Dec 2009 21:54:23 +0000 (UTC) (envelope-from eric@mikestammer.com) Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) by mx1.freebsd.org (Postfix) with ESMTP id D55C98FC12 for ; Thu, 31 Dec 2009 21:54:22 +0000 (UTC) Received: from vdsl-151-118-129-45.dnvr.qwest.net ([151.118.129.45] helo=mail.mikestammer.com) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.68) (envelope-from ) id 1NQSS9-000AFy-Pd; Thu, 31 Dec 2009 21:21:05 +0000 Received: from [192.168.1.107] (c-24-10-148-96.hsd1.ut.comcast.net [24.10.148.96]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: eric@mikestammer.com) by mail.mikestammer.com (Postfix) with ESMTPSA id CFAEFE23; Thu, 31 Dec 2009 14:21:02 -0700 (MST) X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 151.118.129.45 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX18bIJpjOnpvuvdYCtvI3wDfMosrdOtpHy4= Message-ID: <4B3D15BB.2080808@mikestammer.com> Date: Thu, 31 Dec 2009 14:20:59 -0700 From: Eric User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0 MIME-Version: 1.0 To: hartzell@alerce.com References: <19261.3612.150477.365986@gargle.gargle.HOWL> In-Reply-To: <19261.3612.150477.365986@gargle.gargle.HOWL> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: ZFS and disappearing glabels X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list 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 21:54:23 -0000 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! Eric