Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Aug 2011 12:24:38 -0500
From:      Adam Vande More <amvandemore@gmail.com>
To:        Jeremy Chadwick <freebsd@jdc.parodius.com>
Cc:        freebsd-fs@freebsd.org, Martin Cracauer <cracauer@cons.org>
Subject:   Re: ZFS zpool mirror drive replacement confusion
Message-ID:  <CA%2BtpaK3ORZ=-%2B0pA9uTcA%2BUTSRBf5GoD1Qm0kJ%2BJKMaoi5jH9w@mail.gmail.com>
In-Reply-To: <20110811165140.GA1421@icarus.home.lan>
References:  <20110811160314.GA25076@cons.org> <20110811165140.GA1421@icarus.home.lan>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Aug 11, 2011 at 11:51 AM, Jeremy Chadwick
<freebsd@jdc.parodius.com>wrote:

> The problem is something I have run into myself many times.  It's a
> syntax-specific "quirk" with the zpool command, and ONLY applies when
> working with mirrors.  Furthermore, the "gotcha" may be gone with ZFSv28
> (which you aren't running); I'm not sure.
>
> The "quirk" is that you have to specify the name of an existing
> (working) mirror device *before* the new device you're attempting to
> integrate.  E.g. "zpool {command} pool {existingdev} {newdev}", rather
> than "zpool {command} pool {newdev}".  Failure to provide the name of
> the device of the existing mirror member results in the pool becoming
> a stripe, which you have no way to recover from without recreating the
> entire pool.
>
> I would show you an example but all my systems run ZFSv28 and I can't
> seem to find any online documentation which helps back up my statement.
> I hope someone else here can phrase what I'm trying to say in a more
> eloquent manner and provide documentation/references confirming it.
>

I think you mean this but I'm not sure I'd agree it's a quirk.  If there is
an understanding of zpools, mirrors, and vdev's it seems like a logical
syntax.  However, the unforgiving nature of vdev's does put some fear in me
whenever I make an change.

http://www.solarisinternals.com/wiki/index.php/ZFS_Troubleshooting_Guide#Disk_Replacement_Example

-- 
Adam Vande More



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BtpaK3ORZ=-%2B0pA9uTcA%2BUTSRBf5GoD1Qm0kJ%2BJKMaoi5jH9w>