From owner-freebsd-fs@FreeBSD.ORG Wed Apr 23 12:03:22 2014 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8D86DBDA for ; Wed, 23 Apr 2014 12:03:22 +0000 (UTC) Received: from mail-la0-x233.google.com (mail-la0-x233.google.com [IPv6:2a00:1450:4010:c03::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1479C1C66 for ; Wed, 23 Apr 2014 12:03:21 +0000 (UTC) Received: by mail-la0-f51.google.com with SMTP id pv20so670106lab.38 for ; Wed, 23 Apr 2014 05:03:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=MYI5Y0/k5vyJQft6Qe+RRp2ZPq6FuCJvg9vwt5V8tX4=; b=ra8Ik9CWK7WNxfnrJPMKAMoM8Xs+ai5du4MHnzD9UdSsn4hC9kG2jFGHZgoNeMfnVo JF+E8XcNSoI/Gq2fIHP69H1jFHxsVJ00mf+gF6iSUo5eXfL/yKN6j8322JNTQWvfQmNU cJtTngHhjwYwI22j2hK+RyetJFCM7E41VrjM+H8PBIboAIDqV9IlP3slzMFhwyI+dCZ1 TtiKzsydmiyJqYGyOFQufSf26lmhw4xTBEShrgC4tJRkYwS9kJUiErNtLBDAfT8roNpq i1vJMfeU8+rStRqnLqpe3Z6qg5dSJh7Mqnyg+an68tGCbxnlY6eDFGq4tQ+bxRULT0zU x+SQ== MIME-Version: 1.0 X-Received: by 10.152.22.166 with SMTP id e6mr56898laf.71.1398254599984; Wed, 23 Apr 2014 05:03:19 -0700 (PDT) Received: by 10.112.129.164 with HTTP; Wed, 23 Apr 2014 05:03:19 -0700 (PDT) In-Reply-To: <20140423120042.GK2830@sludge.elizium.za.net> References: <20140423064203.GD2830@sludge.elizium.za.net> <20140423080056.GE2830@sludge.elizium.za.net> <20140423091852.GH2830@sludge.elizium.za.net> <20140423100126.GJ2830@sludge.elizium.za.net> <5357937D.4080302@gmail.com> <20140423120042.GK2830@sludge.elizium.za.net> Date: Wed, 23 Apr 2014 13:03:19 +0100 Message-ID: Subject: Re: ZFS unable to import pool From: Tom Evans To: Hugo Lombard Content-Type: text/plain; charset=UTF-8 Cc: FreeBSD FS X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Apr 2014 12:03:22 -0000 On Wed, Apr 23, 2014 at 1:00 PM, Hugo Lombard wrote: > [1] Trying to add a single device resulted in zpool add complaining > with: > > mismatched replication level: pool uses raidz and new vdev is disk > > and trying it with three disks said: > > mismatched replication level: pool uses 5-way raidz and new vdev uses 3-way raidz > > > [2] http://lists.freebsd.org/pipermail/freebsd-fs/2014-April/019340.html > In earlier versions of ZFS, ISTR that this check did not exist, and you could do exactly this - expand a pool by adding a vdev that is not of the same "class" as the existing vdevs on the pool. If the vdev still existed, this could be fixed by a dumping the data somewhere, re-creating the pool with the correct vdevs, and restoring the data. Otherwise, I think the only solution is to restore from backup. Perhaps you could roll back the txg before the vdev was added, that is way above my level of knowledge. Cheers Tom