From owner-freebsd-questions@FreeBSD.ORG Fri Aug 5 14:10:30 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 41B4D1065676 for ; Fri, 5 Aug 2011 14:10:30 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from email2.allantgroup.com (email2.emsphone.com [199.67.51.116]) by mx1.freebsd.org (Postfix) with ESMTP id 0721E8FC0C for ; Fri, 5 Aug 2011 14:10:29 +0000 (UTC) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by email2.allantgroup.com (8.14.4/8.14.4) with ESMTP id p75EARUV019560 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 5 Aug 2011 09:10:27 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.5/8.14.5) with ESMTP id p75EAR3G000367 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 5 Aug 2011 09:10:27 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.5/8.14.5/Submit) id p75EARjM000366; Fri, 5 Aug 2011 09:10:27 -0500 (CDT) (envelope-from dan) Date: Fri, 5 Aug 2011 09:10:27 -0500 From: Dan Nelson To: claudiu vasadi Message-ID: <20110805141026.GB66340@dan.emsphone.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 8.2-STABLE User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: clamav-milter 0.97.2 at email2.allantgroup.com X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.6 (email2.allantgroup.com [199.67.51.78]); Fri, 05 Aug 2011 09:10:27 -0500 (CDT) X-Scanned-By: MIMEDefang 2.68 on 199.67.51.78 Cc: FreeBSD Subject: Re: listing ZFS pool name in fixit mode X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Aug 2011 14:10:30 -0000 In the last episode (Aug 05), claudiu vasadi said: > I have a 8.2-amd64 machine on which I blew up the boot blocks (isn't > booting any more). It's s supermicro server btw and we have a ZFSonRooT > setup there. > > The way I want to go about fixing it is booting into single user mode, > mounting all the datasets, undoing the modification I did to the boot > blocks, recompiling and installing the "old" version of the boot blocks > for the system to boot. > > The problem is that after I boot a 8.2-DVD and then go to fixit mode, load > the opensolaris and the zfs modules, I cannot list the ZFS pool name (I > don;t know the ZFS pool name because I didn;t setup this machine) and > without the name, I cannot import the pool to fix the boot blocks. > > So, my question is if there is a way to list the zpool in single user mode > so that I know which pool I have to import or if there might be another > way of fixing this problem. "zpool import" with no pool name will list all the pools available to import. -- Dan Nelson dnelson@allantgroup.com