From owner-freebsd-stable@FreeBSD.ORG Mon Feb 3 09:14:50 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BAD9AB96 for ; Mon, 3 Feb 2014 09:14:50 +0000 (UTC) Received: from mail-pa0-x22b.google.com (mail-pa0-x22b.google.com [IPv6:2607:f8b0:400e:c03::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 92C1F1F8A for ; Mon, 3 Feb 2014 09:14:50 +0000 (UTC) Received: by mail-pa0-f43.google.com with SMTP id rd3so6822418pab.16 for ; Mon, 03 Feb 2014 01:14:50 -0800 (PST) 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=Y9jJHVVMbfCkBB8KOLIhAvMZNnfCLJ1NK3nJtxKk2IU=; b=D4HMuky6eGoFiotlUPdkZuhvOsWBM4bPRAF9XfHdIlhsynquXKo6FAa2Q1EgT1vB4q jE8mD/hy3h2uVHTH/XdT5C3Jr5A8eC/cgp9v0r7dei8FJGaUcO4YXk9rBPJkBTwD4apK KVsW/UkjW4BXQVCcPY94+Gcvf1InHY1F+BsHTPVzcBwXBdDBV6mMDc18pEDqUJOgxfDp p5NAhjMTF0OVENn7Y7dRraYEaKE70RuDINkh6NaIwx1awu4FADGfzbwVUWJK5vf7VxjX HChGfz3kZ5IRJSRJcI6jlwtn1X+ynjY8K6KbuSDI1N/HqtZz1lxkZ3EYXOBIajQsTG0T Xwzw== MIME-Version: 1.0 X-Received: by 10.68.66.1 with SMTP id b1mr36097983pbt.43.1391418890127; Mon, 03 Feb 2014 01:14:50 -0800 (PST) Received: by 10.66.142.167 with HTTP; Mon, 3 Feb 2014 01:14:50 -0800 (PST) In-Reply-To: References: Date: Mon, 3 Feb 2014 10:14:50 +0100 Message-ID: Subject: Re: Recovery of zpools went corrupt!? From: Zenny To: Scot Hetzel Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD Stable , Devin Teske X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Feb 2014 09:14:50 -0000 On 2/3/14, Scot Hetzel wrote: > On Sun, Feb 2, 2014 at 1:04 PM, Zenny wrote: >> Reposting the mail below as I had an oversight not to include subject >> line. Apology in advance! >> >>> Hi: >>> >>> Last time, Devin had been very kind to suggest me when the system >>> borked while trying to upgrade from v10B3 to vRC1. >>> >>> Following FreeBSD 10.0-RELEASE, I installed to a new machine with >>> encrypted root in zfs mirror, and since there was something wrong (a >>> double quote by mistake) inserted in the /boot/device.hints, the >>> kernel refused to boot and landed to the mountroot prompt. >>> >>> Therefore, in order to make changes what I did was: >>> >>> 1. Boot into LiveCD mode >>> 2. mkdir /tmp/bootpool >>> zpool import -f bootpool >>> zfs set mountpoint=/tmp/bootpool bootpool >>> zfs mount -a >>> cp /tmp/bootpool/boot/encryption.key /tmp/ >>> zfs umount -a >>> zfs set mountpoint=/bootpool bootpool >>> zpool export bootpool >>> geli attach -k /tmp/encryption.key /dev/ada0p4 >>> geli attach -k /tmp/encryption.key /dev/ada1p4 >>> zpool import -R /mnt zroot >>> zpool import -R /mnt/bootpool bootpool >>> 3. Removed the double quote (") from /bootpool/boot/device.hints and >>> saved the file. >>> >>> 4. Rebooted the file and now it says that there is no >>> boot/zfsbootloader. >>> > Does the file /boot/zfsloader exist in /boot or /bootpool/boot? Immediately after reboot, I got an error: "can't find /boot/zfsloader" followed by: "can't load 'kernel' Therefore, I rebooted livecd and tried to check by mounting bootpool and the /tmp/bootpool directory was empty! Earlier it was working desktop. > > > -- > DISCLAIMER: > > No electrons were maimed while sending this message. Only slightly bruised. >