From owner-freebsd-fs@FreeBSD.ORG Thu Aug 11 16:36:09 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 267F9106566B for ; Thu, 11 Aug 2011 16:36:09 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id BF70C8FC0C for ; Thu, 11 Aug 2011 16:36:08 +0000 (UTC) Received: by vxh11 with SMTP id 11so2406250vxh.13 for ; Thu, 11 Aug 2011 09:36:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=vJu2FTEovBDMYTegJQRPdSRNSS1+sOrPGy35M1XLuyo=; b=e8WQqJO10jzyk+djFjQrzKZ/+RzmbK+YYz/MkBPZlNYBIIjmXHWjcbtWNLCi0DB/AL xXySrj6lxC1xfqGXLcdEl4I1dHmYt6+cG0FFMG+6UeyIg3+Mhu7TZGKUNdfh8rBvgCBD vAiFVvauDP9R6nIlo7+o14ANLpY/gykUcKDl8= MIME-Version: 1.0 Received: by 10.220.57.11 with SMTP id a11mr3026766vch.4.1313080567852; Thu, 11 Aug 2011 09:36:07 -0700 (PDT) Received: by 10.220.186.134 with HTTP; Thu, 11 Aug 2011 09:36:07 -0700 (PDT) In-Reply-To: <4E44038F.7000001@FreeBSD.org> References: <20110811160314.GA25076@cons.org> <4E44038F.7000001@FreeBSD.org> Date: Thu, 11 Aug 2011 09:36:07 -0700 Message-ID: From: Freddie Cash To: Andriy Gapon Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-fs@freebsd.org, Martin Cracauer Subject: Re: ZFS zpool mirror drive replacement confusion 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: Thu, 11 Aug 2011 16:36:09 -0000 On Thu, Aug 11, 2011 at 9:30 AM, Andriy Gapon wrote: > on 11/08/2011 19:03 Martin Cracauer said the following: > It didn't > > let me, saying it can only remove drives from mirror or raid sets. > > I think it should have been possible before I mounted the filesystem > > in there read-write for the first time after the drive add. This > > seems like an easy mistake to make. > > This has been reported to the ZFS people (upstream) many times, still they > didn't > add any safety nets. > > There's a very big safety net included already: zpool will error out complaining about mis-matched vdevs if you try to "zpool add" a single disk to a pool with a mirror vdev. In fact, the user has to add "-f" (force) to the "zpool add" command in order for this to even happen. IOW, this is user error, not "lack of safety nets". :) > > The array doesn't contain important data, just trying to sort out > > things for the future. > > Read the docs, twice, be careful, take backups before any modifying > actions. > > And read the error messages, as well. :) -- Freddie Cash fjwcash@gmail.com