From owner-freebsd-fs@freebsd.org Sun Aug 13 02:23:24 2017 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 47842DDC41E for ; Sun, 13 Aug 2017 02:23:24 +0000 (UTC) (envelope-from paul@kraus-haus.org) Received: from mail-qk0-x229.google.com (mail-qk0-x229.google.com [IPv6:2607:f8b0:400d:c09::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 082197FB48 for ; Sun, 13 Aug 2017 02:23:23 +0000 (UTC) (envelope-from paul@kraus-haus.org) Received: by mail-qk0-x229.google.com with SMTP id d136so37100265qkg.3 for ; Sat, 12 Aug 2017 19:23:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kraus-haus-org.20150623.gappssmtp.com; s=20150623; h=subject:mime-version:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=yimvu19ZwuwKCwkmmI8+aKYfZT1/F9MsTez1mg6fuh0=; b=hkoGYdGpzzv4HffVDb/wMyxjdiHmMq0yXI0h/6XnH1+fcC1/Ven1d1W7UoGBJWxc+9 xwOrW5ZkpHIjmRD0DMI/RM6MbQsaDU+70ozr23PREsIZthoS6I2PETlwsM8Lf3nUFis0 5F4vJL+aBmEQ6SXb8Gp8072QEh8dkBWp0qlYrm9REC5IIZHHFPlmz6oRq6qC5jUnPUmo qipTmDVBu06Dj61tFNhybweNmW8n6FcRQi2nXMlModQULsGzKE8BnUYzsMvzK3pbPn8d oZ9RxUNg8NEG0ATN6kAYwt9YB6k5+hTJY5GXNa61Zx1sziFVRKB4nxrtf+Org+vqBGdk pILw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:mime-version:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=yimvu19ZwuwKCwkmmI8+aKYfZT1/F9MsTez1mg6fuh0=; b=rQocgaLfBvJkTLbH3Dk2fdo3HzsmuA0qzip1mZhVPV4o33lel65QqECIgqoLxdbSV+ tnkd85ihr5D3sgBMhEBkmyYFFy4L80exofH9QsxXI5VYAQ5zznwVKJ5f380/e9FNI6Dj MhuSiIiiS8GaH7Pl8t+bp65clgjmwboYgP+919F9y9xhmQ6QW3i/itWxIZfLmIt8DEAt 43icHsJoXlgK9kvPanzyHDCB88PWOXrd9LWHfshGr4PEEVaJIYXfvQuXa/CoeMc6fIWk IGmNxqgY/7aHUdBvNnTikfFG59ti2I9YyvDHVuNJX9M1MlNTEvd1p/6US7Df8kw8dvgc OqAA== X-Gm-Message-State: AHYfb5iy4VqW3/bEzWom1qPL25bL5QLmTwsXcuKEnDcsaFbvWPMcQHKS BFykrpoV+BAodRpb X-Received: by 10.55.103.23 with SMTP id b23mr27419998qkc.55.1502591002322; Sat, 12 Aug 2017 19:23:22 -0700 (PDT) Received: from [192.168.2.65] (pool-74-109-188-83.albyny.fios.verizon.net. [74.109.188.83]) by smtp.gmail.com with ESMTPSA id u26sm3115250qtb.34.2017.08.12.19.23.19 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 12 Aug 2017 19:23:20 -0700 (PDT) Subject: Re: Oh no, what have I done... Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: text/plain; charset=utf-8 From: Paul Kraus In-Reply-To: <5B508AED-4DAC-42E4-8C56-4619C0D1A1C6@distal.com> Date: Sat, 12 Aug 2017 22:23:19 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <035BFBCB-BA43-4568-89E9-8E8DCDFAA8CA@kraus-haus.org> References: <3408A832-BF2E-4525-9EAC-40979BA3555B@distal.com> <20170813000323.GC95431@server.rulingia.com> <5B508AED-4DAC-42E4-8C56-4619C0D1A1C6@distal.com> To: Chris Ross , FreeBSD FS X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Aug 2017 02:23:24 -0000 > On Aug 12, 2017, at 9:22 PM, Chris Ross = wrote: >=20 >=20 >> On Aug 12, 2017, at 20:03 , Peter Jeremy wrote: >>=20 >> On 2017-Aug-12 19:36:31 -0400, Chris Ross = wrote: >>> But, I fear I may=E2=80=99ve shot myself. Is there any way to = recover my raid1z vdev from this situation, and get a working zfs pool = back? >>=20 >> There's no way to detach the vdev /dev/da2p1 - you need to backup and >> re-create the pool. You need to re-attach /dev/da2p1 so the pool can >> be imported, then do a backup, destroy the pool and re-create it. >=20 > Can I attach a different similar drive as da2p1? Nope. > Or, does it have to have the same bits that were put on it when it = was in the pool previously? If the latter, I don=E2=80=99t have those = bits any more. The same disk. ZFS is looking for the labels it writes (4x for = redundancy; 2 at the beginning of the disk and 2 at the end; it only = _needs_ to find one of them) to identify the drive to include it in the = zpool. If that disk no longer contains the ZFS labels then you are = probably out of luck. You _may_, and this is a very, very long shot, be able to force an = import to a TXG (transaction group) _before_ you added the lone drive = vdev. > I=E2=80=99ll try putting a disk with the same layout in, and see how = that goes. That was a thought I=E2=80=99d had. Won=E2=80=99t work, without the ZFS labels it will not be seen as the = missing drive.