Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 05 Dec 2009 11:02:36 -0600
From:      "James R. Van Artsdalen" <james-freebsd-fs2@jrv.org>
Cc:        freebsd-fs <freebsd-fs@freebsd.org>
Subject:   Re: ZFS and reordering drives
Message-ID:  <4B1A922C.7000909@jrv.org>
In-Reply-To: <4B1A8B5D.6050808@rcn.com>
References:  <20091205152757.GK73250@gremlin.foo.is> <4B1A830D.3090900@jrv.org> <4B1A8B5D.6050808@rcn.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B1A922C.7000909>