From owner-freebsd-stable@FreeBSD.ORG Sun Feb 2 19:04:33 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 B211BEB6 for ; Sun, 2 Feb 2014 19:04:33 +0000 (UTC) Received: from mail-pa0-x233.google.com (mail-pa0-x233.google.com [IPv6:2607:f8b0:400e:c03::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8DA4214C6 for ; Sun, 2 Feb 2014 19:04:33 +0000 (UTC) Received: by mail-pa0-f51.google.com with SMTP id ld10so6294197pab.38 for ; Sun, 02 Feb 2014 11:04:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=W5vWOXPzQnE+t5sOlgsq/Dq/NIuME1Bv8Nsz9Vqtbb4=; b=jwgi70QXeyCpTnmmNUiGpumh6QFhtOq92Ekpn40t2wsWEfdvak76mMe1+nOsaCMEAi AP+kDyCb8eOkl/iWR7/HFu7StIBipq3XEVb0wDv5XuGufRHG1gpJlwlWezGCSD9kxcO9 NsjepnQKG2qWXc+F9NEDmzRfU2WMNyx2zRX5YihC3kugXgAvBwzaz0XkEd07VjIZ/5Cc TaxhbHWPcujg9wfSG6n6E49h52YqKwHD2/LRiCfV7iQ34nRpR9TEMcYNGpKPWgOuvu7F XML8KyKoVjxB2BW+hBt64dUJu1O6HcG5n0Kp35G511jYHvwrrzGghuBfOLqVUwrf8Sxi 7uTQ== MIME-Version: 1.0 X-Received: by 10.66.26.115 with SMTP id k19mr33344682pag.87.1391367873151; Sun, 02 Feb 2014 11:04:33 -0800 (PST) Received: by 10.66.142.167 with HTTP; Sun, 2 Feb 2014 11:04:33 -0800 (PST) Date: Sun, 2 Feb 2014 20:04:33 +0100 Message-ID: Subject: Recovery of zpools went corrupt!? From: Zenny To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: 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: Sun, 02 Feb 2014 19:04:33 -0000 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. > > Appreciate if someone provides hints to recover the system in such > situation without loosing any customized kernel and poudriere configs > and contents? Thanks. > > /z >