From owner-freebsd-questions@FreeBSD.ORG Wed Oct 29 08:49:56 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3F006CDD for ; Wed, 29 Oct 2014 08:49:56 +0000 (UTC) Received: from mail-ie0-x233.google.com (mail-ie0-x233.google.com [IPv6:2607:f8b0:4001: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 098A9755 for ; Wed, 29 Oct 2014 08:49:55 +0000 (UTC) Received: by mail-ie0-f179.google.com with SMTP id ar1so2440194iec.24 for ; Wed, 29 Oct 2014 01:49:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=cvFVp9RtrKvqz4cKo1Gq1mcDnUI+FuF/6vM99W8hoko=; b=FC2qn0mPmzrAnHbItRIr9/GXK6zg+hbuqGrkrCU5SibXtrYYFS09mFlox2A/5SFVcm 7Q5jQ6ExtForUQRR5g316QcEVCeIBMJ4iMSG1ZLCkpjBsqj+OroKMfc1fk7f7KlEY6F/ 8vlzKksZDqIlXkbpxjk+K6ATBfPXFjK6yhhm8tuQJM3jCm0o3LhQ6gUUtJ+irqWCsoLd NiXJFqh7JdodTp05TGVnFzu0eXO+Qh3Yom3mviGMev2dcPg5SE39jiQ7Z6A4Bta7v4uF z2E48mlCL8LoE9o2dDSyORazP4wQQ0sI8ucWZ2rywr6hcrz7qyT6vNpnhNMssFligI2E 8BDA== MIME-Version: 1.0 X-Received: by 10.50.43.200 with SMTP id y8mr36467938igl.7.1414572595200; Wed, 29 Oct 2014 01:49:55 -0700 (PDT) Received: by 10.64.153.194 with HTTP; Wed, 29 Oct 2014 01:49:55 -0700 (PDT) In-Reply-To: References: Date: Wed, 29 Oct 2014 09:49:55 +0100 Message-ID: Subject: Re: ZFS Root Mount Failure From: Erik Gustafson To: Stephen R Guglielmo Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: FreeBSD Mailing list X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Oct 2014 08:49:56 -0000 On Tue, Oct 28, 2014 at 10:40 PM, Stephen R Guglielmo wrote: > Hey list, > > I have a machine running ZFS on root. It stopped responding this morning, > and upon a reboot, it was unable to mount root from zfs:zroot. It gave the > explanation of "error 5." > > I played with the mount prompt briefly, but didn't get anywhere. Any tips > for diagnosing and fixing the problem? > I had a similar issue recently. Error 5 on mount root. This was in virtaulbox after some sort of unexpected shutdown. To resolve i first made a snapshot in virtualbox booted from freebsd-disc1.iso (install dvd) zpool import reboot (and boot from zroot) zpool scrub zpool scrub said that i was going to loose some recently written data (generated by nightly poudrire build) I don't remember all, probably I needed some parameter to zpool import but all error messages were helpful it was quite easy to get it working again. Good luck and don't forget the backup/snapshot