From owner-freebsd-fs@FreeBSD.ORG Mon Oct 24 02:16:05 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 426171065676 for ; Mon, 24 Oct 2011 02:16:05 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta14.emeryville.ca.mail.comcast.net (qmta14.emeryville.ca.mail.comcast.net [76.96.27.212]) by mx1.freebsd.org (Postfix) with ESMTP id 2740D8FC15 for ; Mon, 24 Oct 2011 02:16:04 +0000 (UTC) Received: from omta24.emeryville.ca.mail.comcast.net ([76.96.30.92]) by qmta14.emeryville.ca.mail.comcast.net with comcast id oRY01h0031zF43QAESFxm6; Mon, 24 Oct 2011 02:15:57 +0000 Received: from koitsu.dyndns.org ([67.180.84.87]) by omta24.emeryville.ca.mail.comcast.net with comcast id oSH31h00R1t3BNj8kSH37a; Mon, 24 Oct 2011 02:17:04 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id F1FA7102C1C; Sun, 23 Oct 2011 19:16:03 -0700 (PDT) Date: Sun, 23 Oct 2011 19:16:03 -0700 From: Jeremy Chadwick To: Artem Belevich Message-ID: <20111024021603.GA58557@icarus.home.lan> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-fs@freebsd.org Subject: Re: Anyway to change pool to use the gpt label instead of gptid? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Oct 2011 02:16:05 -0000 On Sun, Oct 23, 2011 at 07:01:31PM -0700, Artem Belevich wrote: > On Sun, Oct 23, 2011 at 6:49 PM, Larry Rosenman wrote: > > On Sun, 23 Oct 2011, Artem Belevich wrote: > > > >> On Sun, Oct 23, 2011 at 5:52 PM, Larry Rosenman wrote: > >>> > >>> Is there any way to convert this setup to use the GPT labels instead of > >>> the > >>> the GPT UUID's in zpool status/zpool iostat? > >> > >> You can try exporting the pool and then importing it back with "zfs > >> import -d /dev/gpt" > > > > Really hard to do with root on this pool :) > > You may be able to solve that part with LiveCD. I'm still not quite > sure where device info is kept -- in the pool or in > /boot/zfs/zpool.cache. ... Both. icarus# zpool status data pool: data state: ONLINE scan: resilvered 279G in 1h0m with 0 errors on Thu Aug 11 22:43:38 2011 config: NAME STATE READ WRITE CKSUM data ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 ada1 ONLINE 0 0 0 ada3 ONLINE 0 0 0 errors: No known data errors icarus# strings /boot/zfs/zpool.cache | egrep 'ada[13]' /dev/ada1 /dev/ada1 /dev/ada3 /dev/ada3 icarus# dd if=/dev/ada1 of=/dev/stdout count=128 | strings | grep 'ada1' 128+0 records in 128+0 records out 65536 bytes transferred in 0.013422 secs (4882725 bytes/sec) /dev/ada1 /dev/ada1 icarus# dd if=/dev/ada3 of=/dev/stdout count=128 | strings | grep 'ada3' 128+0 records in 128+0 records out 65536 bytes transferred in 0.023449 secs (2794838 bytes/sec) /dev/ada3 /dev/ada3 Larry, have you considered avoiding ZFS on root and instead just using gmirror on your OS partition (not the entire disk, and not the swap partition)? I've read that gmirror "just works" and is reliable, including booting from it, and supports hot spares. Thought I remember there being some caveat to swap being stored under gmirror -- the man page mentions caveats that relate to getting kernel panics/dumps -- so that may be a problem. Using multiple partitions and mirroring only the UFS/UFS2 partition sounds like a better choice. I know it would be ideal to have it all controlled with ZFS, I understand/hear you (especially since I just got done harping on added complexity, re: GPT labels vs. device names), but welcome to the mess. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, US | | Making life hard for others since 1977. PGP 4BD6C0CB |