From owner-freebsd-fs@FreeBSD.ORG Sat Dec 5 17:02:38 2009 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 00F7A106566C for ; Sat, 5 Dec 2009 17:02:38 +0000 (UTC) (envelope-from james-freebsd-fs2@jrv.org) Received: from mail.jrv.org (adsl-70-243-84-13.dsl.austtx.swbell.net [70.243.84.13]) by mx1.freebsd.org (Postfix) with ESMTP id 9E1E98FC13 for ; Sat, 5 Dec 2009 17:02:37 +0000 (UTC) Received: from kremvax.housenet.jrv (kremvax.housenet.jrv [192.168.3.124]) by mail.jrv.org (8.14.3/8.14.3) with ESMTP id nB5H2ajq000361; Sat, 5 Dec 2009 11:02:36 -0600 (CST) (envelope-from james-freebsd-fs2@jrv.org) Authentication-Results: mail.jrv.org; domainkeys=pass (testing) header.from=james-freebsd-fs2@jrv.org DomainKey-Signature: a=rsa-sha1; s=enigma; d=jrv.org; c=nofws; q=dns; h=message-id:date:from:user-agent:mime-version:cc:subject: references:in-reply-to:content-type:content-transfer-encoding; b=k5gsjsFVD98zMbSNaKBpDLhOKR5FeGrdgdy81NR04CZgUMzaHocWXJJcAKiddNjJ4 Fb2qIXClI1CO3oH+mm+jQANON+/Kq8HY1DUFIKYRIuu19XXwBMbEikCaOypfF94ijK7 c7/kjhyAHrVAj7EcDdoYfl74SEFIehUsLPXPMf0= Message-ID: <4B1A922C.7000909@jrv.org> Date: Sat, 05 Dec 2009 11:02:36 -0600 From: "James R. Van Artsdalen" User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 References: <20091205152757.GK73250@gremlin.foo.is> <4B1A830D.3090900@jrv.org> <4B1A8B5D.6050808@rcn.com> In-Reply-To: <4B1A8B5D.6050808@rcn.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-fs Subject: Re: ZFS and reordering drives 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: Sat, 05 Dec 2009 17:02:38 -0000 Gary Corcoran wrote: > If one were booting from ZFS, would you be out of luck (since you > wouldn't > be able to access the zpool.cache before booting), or is there a way > around this problem? Boot the CD, run fixit mode, mkdir -p /boot/zfs, import the pool, copy the resulting /boot/zfs/zpool.cache file into the pool. Import will likely mount, in fixit, fileystems with the "mountpoint" property set which may be a nuisance: some zfs unmounts may be needed in practice in fixit. > Is there any way today, to avoid using the boot assigned drive name (e.g. > /dev/ad2) when creating the zpool? Partition the disk GPT with gpart. Create one partition covering the entire disk and give that partition a label. Use that label creating the pool: ... gpart add -b 34 -s 9999 -l zfs-label -t freebsd-zfs ad0 zpool create zpool /dev/gpt/zfs-label