From owner-freebsd-fs@freebsd.org Wed Jan 25 18:57:39 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 36E46CBCB1B for ; Wed, 25 Jan 2017 18:57:39 +0000 (UTC) (envelope-from zaphod@berentweb.com) Received: from mail-wm0-x243.google.com (mail-wm0-x243.google.com [IPv6:2a00:1450:400c:c09::243]) (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 C5E57A9F for ; Wed, 25 Jan 2017 18:57:38 +0000 (UTC) (envelope-from zaphod@berentweb.com) Received: by mail-wm0-x243.google.com with SMTP id d140so44698165wmd.2 for ; Wed, 25 Jan 2017 10:57:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=berentweb-com.20150623.gappssmtp.com; s=20150623; h=sender:date:from:to:subject:message-id:mime-version :content-transfer-encoding; bh=rKVlpdr7QlfZZQMp7jA5EpXyYfAjW1cJd5V5I/PUxAY=; b=zjtne8vTSMGMWGWRRcVrBPcoublDrf7UHNsVPXYwV5wAlresvN8wO8iJyxVUfFVPNA d5Gb6ENK5/wYMj59/nv4ouu6OAh4p2KrRbFDcmfBOe55wv+Rl8R+c1FRncc0DGIi0MZr HJKNP5z6CuHzi8G467hJ4uHLmme22OIFl4o96Y/hr4JVMPPZQ+bXZykRcjRGaEcczZk4 K/BmNM/LGa1lzb0fbsk3eMNBiHqPFZ9tuuYksxkpwPdYYV2HpvSU8rjpLtPmb0ADqK3E X/bSNCcOT/D91d+z0Tki99Ytkua78SobmDloSTbtALNcLfQmVcg4X3co3E4s5a0u2H2N g/1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:subject:message-id :mime-version:content-transfer-encoding; bh=rKVlpdr7QlfZZQMp7jA5EpXyYfAjW1cJd5V5I/PUxAY=; b=MSorpmKTYLSW/7dp+c5YishMOVKkYhMo/JTtZSKjIDl/Hg2E9wjKLHfirmVX5GzqWd Vr8rL7rGYbi9JRKs4Em7QLvUHL6/4mxQGMSFEhkN+IIQ8gFw2rw9NJ4FNDD8+b+k2xGs 6RHE9DjxkEiVLvWZH14fLfV7UPpfvPV62FONP1Tl7cFNE7KH7P4mbTH+dKQwyHp4J/bl Te5nri0nI+/QrnaG0Z9tL4InOSHmmkpc6Wy90yljp0V1j85nrIRwkftSUnCzd8axoShC Vpv/3Jwx5JTCu+QhHKbmYfis1L4Bd2beo/JwLprYC9l0W4QgfxGTrLkH9Phlp6cWOl6I oypA== X-Gm-Message-State: AIkVDXJr/Ead63Nn5DwBGSDjBo/S5dkL5c+/b86kUgrUDqa6Cr4qqD/K5llKebz80gxkQw== X-Received: by 10.223.173.40 with SMTP id p37mr8155993wrc.136.1485370655901; Wed, 25 Jan 2017 10:57:35 -0800 (PST) Received: from rsbsd ([78.162.83.215]) by smtp.gmail.com with ESMTPSA id q5sm26488493wrd.32.2017.01.25.10.57.33 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 25 Jan 2017 10:57:34 -0800 (PST) Sender: "Raif S. Berent" Date: Wed, 25 Jan 2017 21:57:32 +0300 From: Beeblebrox To: freebsd-fs@freebsd.org Subject: zpool stripe degraded due to wrong vdev Message-ID: <20170125215602.202cfb34@rsbsd> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: Wed, 25 Jan 2017 18:57:39 -0000 Hello. I was experimenting with Zfs-on Linux and I now have a corrupted zpool. My = mirrored pool is ok, but the striped mirror shows a) removed vdev partition= from the stripe and b) added ext4 vdev (where Linux root is) to the stripe= . The pool is currently in an exported state, has no external zil/cache. I know the ZDB options, but I though it best to ask before I went ahead wit= h any operations on the pool. 1. I need to "zpool detach" the ext4 partition and "zpool add" the original= partition to the stripe pool. Can I do this in exported state or must I "i= mport -fN" ? I assume "zpool replace" is riskier in this case. Any special = flags to make this operation safer? 2. I assume I would then run one of "zpool clear -F -n" or "zdb -cc -e -f (= or -X)" or a simple scrub. Thanks in advance for your advice. --=20 FreeBSD_amd64_12 Please CC my email when responding, mail from list is not delivered.