From owner-freebsd-fs@FreeBSD.ORG Fri Apr 1 00:36:48 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 901381065674 for ; Fri, 1 Apr 2011 00:36:48 +0000 (UTC) (envelope-from ppaczyn@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 58E078FC0C for ; Fri, 1 Apr 2011 00:36:48 +0000 (UTC) Received: by iwn33 with SMTP id 33so3708413iwn.13 for ; Thu, 31 Mar 2011 17:36:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=KVpR3m77GODsCqsRlNLcWj8x+Tt5ik6hWfZ6rITmq98=; b=B+ob6ubSUOgmPtYn4DI5nHXslWIxAuSJPIsfpZLHRRWXDMW/hpJL6Q8gh/Bt4C9HYn kpSTWfx/xli2gQPGKCKGDx/gEpZSweX8s2Ew52nJULPhHzHdxmEnCsbP5Sot4pHYQUGj nUTXmmu/JOLjq/FYGAy5rSzYt6okq29Of+Ggg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=iQMgx+io3J45rB15CqM3s1xLUeXv1AbfRd6ap77xkqzltcZHlL6eNzW1kIIKEBAVgh pFoHJW4N5ze3bLddK/XdXM2qjOvOm0nPm3YrPP4fzpxcbrY8DDAlUNVYvs+JAs0TJL3x 8/ukkZsA/hTlQa0NH3U+b096VdBSKQ+fv7s4c= MIME-Version: 1.0 Received: by 10.43.131.195 with SMTP id hr3mr263024icc.268.1301618207482; Thu, 31 Mar 2011 17:36:47 -0700 (PDT) Received: by 10.42.172.201 with HTTP; Thu, 31 Mar 2011 17:36:47 -0700 (PDT) In-Reply-To: References: Date: Fri, 1 Apr 2011 00:36:47 +0000 Message-ID: From: Piotr Paczynski To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: ZFS failed after hard power off X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Apr 2011 00:36:48 -0000 > v28 was committed to -current on Feb 27th, so your snapshot is too > old. You should be able to fix the pool with OpenIndiana liveDVD or > liveUSB > http://openindiana.org/download/ OK, after fiddling for like 4 hours I managed to run OpenIndiana LiveDVD (wouldnt boot up which eventually turned out to by my KVM fault) and then get it to see my 3ware 9650 arrays (needed to install drivers from 3ware). The problem is my corrupted pool is not visible by zpool command. Now, I have two pools on the server: zroot and backup. The backup is visible (and not faulted) but zroot is not visible under Solaris - this is the one I have problems with, and also use as boot disk in FreeBSD: root@openindiana:~# zpool import pool: backup id: 8416389847782759507 state: ONLINE status: The pool is formatted using an older on-disk version. action: The pool can be imported using its name or numeric identifier, though some features will not be available without an explicit 'zpool upgrade'. config: backup ONLINE mirror-0 ONLINE c4t1d0p0 ONLINE c4t2d0s2 ONLINE root@openindiana:~# zpool import zroot cannot import 'zroot': no such pool available root@openindiana:~# zpool import -fFn zroot cannot import 'zroot': no such pool available But zroot is sort of visible by zdb: root@openindiana:~# zdb -l /dev/dsk/c4t0d0s2 -------------------------------------------- LABEL 0 -------------------------------------------- version: 14 name: 'zroot' state: 0 txg: 4 pool_guid: 2082617533358360017 hostname: '' top_guid: 1617266672942229358 guid: 1617266672942229358 vdev_tree: type: 'disk' id: 0 guid: 1617266672942229358 path: '/dev/gpt/array0' whole_disk: 0 metaslab_array: 23 metaslab_shift: 31 ashift: 9 asize: 1995678416896 is_log: 0 ... I presume custom FreeBSD partitioning or gpt is the problem here... How do I import it in Solaris? -- Piotr Paczynski