From owner-freebsd-stable@FreeBSD.ORG Mon Feb 3 07:28:22 2014 Return-Path: Delivered-To: freebsd-stable@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 7F4F6C99 for ; Mon, 3 Feb 2014 07:28:22 +0000 (UTC) Received: from mail-ie0-x22b.google.com (mail-ie0-x22b.google.com [IPv6:2607:f8b0:4001: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 4EFFB16D4 for ; Mon, 3 Feb 2014 07:28:22 +0000 (UTC) Received: by mail-ie0-f171.google.com with SMTP id as1so6124497iec.2 for ; Sun, 02 Feb 2014 23:28:21 -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=HjEn6eLRY4AqS75jJA+m7ZBv4oUrgtAJVXJjwEqyxDU=; b=We906MGI+/2po6dgZ0lqjHbmp2DoZXQoU0Wd1H2kc9uCJfSWqX6Dzjgv76wfqNRymw QGMKgmW3Ob6Cdvnuji1oNmGd98Cb9A6LOa5sLPi22UA8V0bXGu2nPu3ANUSP6xbLg6nw tHQ1f4fg4mbEgoeJAwbZnYP26I9QgR1DA/ElQLr4gJxw1s5rxXW1AkU2xbfp+v7E13IN z3CrRD6miYXii01lcF4J6yxmXLUgmJHy/I112GQwdgHoHhIQakPrAyPyK9N3/wsbjiqh QKsxKVW9Ad19K3W5F9Rz0W8YKnF47J7aDANdTz39/3A4hT4MovmqU5J0tz3AUbMLDC5Q h66g== MIME-Version: 1.0 X-Received: by 10.50.232.9 with SMTP id tk9mr10690294igc.27.1391412501761; Sun, 02 Feb 2014 23:28:21 -0800 (PST) Received: by 10.50.67.84 with HTTP; Sun, 2 Feb 2014 23:28:21 -0800 (PST) In-Reply-To: References: Date: Mon, 3 Feb 2014 01:28:21 -0600 Message-ID: Subject: Re: Recovery of zpools went corrupt!? From: Scot Hetzel To: Zenny 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 07:28:22 -0000 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? -- DISCLAIMER: No electrons were maimed while sending this message. Only slightly bruised.