From owner-freebsd-questions@FreeBSD.ORG Fri Aug 5 08:07:07 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 4AB481065670 for ; Fri, 5 Aug 2011 08:07:07 +0000 (UTC) (envelope-from claudiu.vasadi@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0626D8FC17 for ; Fri, 5 Aug 2011 08:07:06 +0000 (UTC) Received: by vxh10 with SMTP id 10so2419916vxh.13 for ; Fri, 05 Aug 2011 01:07:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=YfZXiY2jCwCNGw7+Z6L/80+sMMoKl2qKMUAy4dg0UfA=; b=W+1b2hmXKIcAXWVS6LtLkrTxZ5G/n3iW3P9Yzb6y2n+MmJrI63EP5PUnvgiz+mscfq EjICtZm9MOrs03yeZB0ajcGIWmk07afu1lq42IjHCkUoBuxsZIRJ0u7johF7MZCh67BK Jqzx722jWBKDLkCZ4jylaAK2BEJnGayI/8Xyk= MIME-Version: 1.0 Received: by 10.52.74.34 with SMTP id q2mr1942704vdv.233.1312529805543; Fri, 05 Aug 2011 00:36:45 -0700 (PDT) Received: by 10.220.178.201 with HTTP; Fri, 5 Aug 2011 00:36:45 -0700 (PDT) Date: Fri, 5 Aug 2011 09:36:45 +0200 Message-ID: From: claudiu vasadi To: FreeBSD Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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 08:07:07 -0000 Hi guys, 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. I already tried "zpool list" but it was no good. -- Best regards, Claudiu Vasadi