From owner-freebsd-fs@freebsd.org Sat Feb 17 17:50:25 2018 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9536CF239DD for ; Sat, 17 Feb 2018 17:50:25 +0000 (UTC) (envelope-from agapon@gmail.com) Received: from mail-lf0-f67.google.com (mail-lf0-f67.google.com [209.85.215.67]) (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 0EB3F8B4A6 for ; Sat, 17 Feb 2018 17:50:24 +0000 (UTC) (envelope-from agapon@gmail.com) Received: by mail-lf0-f67.google.com with SMTP id f136so8027701lff.8 for ; Sat, 17 Feb 2018 09:50:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=s52doV7t6jT66eBTr5t9RQWQCq2WEov8yWZVEpvkZL0=; b=beZnhTgbT4pLU40ptcXmhDEO6DNu57V3kNLkZKex/mEWodRbHNbuqZcZ4BU70jTCbL nBcxqkxUpJIbEbEW95WVEpmVt3Mz3lJlj3NNfCxaCPKIuUPm54P41pzSAgKnCnoiSY73 np0DSIe+2iAb/V+jgKhUgd02fbcpKZxnF3zJO6xUsPLtd4JyzfZ2tVOE6kRZAaBZ9EnD daSnex9kNJgZmWebodktYq0iPKqA/G/TVZDqCbUZOn3yvuoDVh18+2ZT7JGAEhKKvv4y /S6wlVLlvoEbOyw805/lLYeGKIV8pnztaGNlks/4q/bzhsMy9gjhfCmXs5gMrR9tui7c dXNg== X-Gm-Message-State: APf1xPDpHwtfBM+p1/zAc8i7pDZ3PUwSHbxOcyQ7j+w4/bnJXcWy+Tgu AKCnI88pZZ/DvqtynVZSac82YV/R X-Google-Smtp-Source: AH8x225Sya7HyD10dJwiGKckL/Rp1qJjIAfNnqOLw1I1Yw8CYlVYM8lp+c2jm7XmatJ0pF3zLbfePg== X-Received: by 10.25.74.205 with SMTP id x196mr6940390lfa.46.1518889822536; Sat, 17 Feb 2018 09:50:22 -0800 (PST) Received: from [192.168.0.88] (east.meadow.volia.net. [93.72.151.96]) by smtp.googlemail.com with ESMTPSA id b86sm2185854lff.65.2018.02.17.09.50.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 17 Feb 2018 09:50:21 -0800 (PST) Subject: Re: ZFS trashed by bad import To: James Phillips Cc: freebsd-fs@FreeBSD.org References: <7336017.290096.1518885201320.ref@mail.yahoo.com> <7336017.290096.1518885201320@mail.yahoo.com> From: Andriy Gapon Message-ID: <6e6fb440-3db5-ad01-83ca-201e8ae6553a@FreeBSD.org> Date: Sat, 17 Feb 2018 19:50:19 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <7336017.290096.1518885201320@mail.yahoo.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Feb 2018 17:50:25 -0000 On 17/02/2018 18:33, James Phillips wrote: > > -------------------------------------------- > On Sat, 2/17/18, Andriy Gapon wrote: > > Subject: Re: ZFS trashed by bad import > To: "James Phillips" > Received: Saturday, February 17, 2018, 2:46 PM > > On 17/02/2018 09:41, James > Phillips via freebsd-fs wrote: > > # zpool import  -> > shows list of available pools, including degraded striped > mirror. > > # zpool import -f > 8255478166520290766 granny > > # zpool > status (any zpool command cause same error): > >      internal error: failed to > initialize ZFS library > > Not sure if this is what happened, but it looks > like the pool might have a > filesystem with > mountpoint set to / and it got mounted over the real / after > import. > So, you might have a mismatch > between userland and kernel that causes the > further issues. > > I did import by number because the zroot label conflicted. This is not directly related. It's better to import a new pool using -R (altroot) option, so that it does not interfere with the already mounted filesystems and you can examine and modify it. -- Andriy Gapon