From owner-freebsd-current@FreeBSD.ORG Thu Nov 15 01:52:20 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1E78316A479 for ; Thu, 15 Nov 2007 01:52:20 +0000 (UTC) (envelope-from mcdouga9@egr.msu.edu) Received: from mx.egr.msu.edu (surfnturf.egr.msu.edu [35.9.37.164]) by mx1.freebsd.org (Postfix) with ESMTP id 7DABD13C457 for ; Thu, 15 Nov 2007 01:52:19 +0000 (UTC) (envelope-from mcdouga9@egr.msu.edu) Received: from localhost (localhost.egr.msu.edu [127.0.0.1]) by mx.egr.msu.edu (Postfix) with ESMTP id 87C3D2EB91A; Wed, 14 Nov 2007 20:52:18 -0500 (EST) X-Virus-Scanned: amavisd-new at egr.msu.edu Received: from mx.egr.msu.edu ([127.0.0.1]) by localhost (surfnturf.egr.msu.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1qs9-2IF058E; Wed, 14 Nov 2007 20:52:18 -0500 (EST) Received: from [35.9.140.192] (reinheitsgebot-wl.dhcp.egr.msu.edu [35.9.140.192]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: mcdouga9) by mx.egr.msu.edu (Postfix) with ESMTP id 45F272EB917; Wed, 14 Nov 2007 20:52:18 -0500 (EST) Message-ID: <473BA651.1030109@egr.msu.edu> Date: Wed, 14 Nov 2007 20:52:17 -0500 From: Adam McDougall User-Agent: Thunderbird 2.0.0.6 (X11/20071105) MIME-Version: 1.0 To: Henri Hennebert References: <473AE404.9090605@restart.be> <473AF1BE.1060008@restart.be> In-Reply-To: <473AF1BE.1060008@restart.be> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: ZFS from FreeBSD -> Indiana -> FreeBSD - some problem X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Nov 2007 01:52:20 -0000 Henri Hennebert wrote: > Henri Hennebert wrote: >> Hello, >> >> As seen in another thread, I was curious about a zpool created under >> FreeBSD being available under opensolaris. >> >> So I boot indiana and do: >> >> zpool import -f -o ro pool2 >> >> zpool scrub pool2 >> >> all ended properly... >> >> shutdown. >> >> When I reboot with FreeBSD (7.0-BETA2) I get: >> >> zpool status pool2 >> pool: pool2 >> state: UNAVAIL >> status: One or more devices could not be opened. There are insufficient >> replicas for the pool to continue functioning. >> action: Attach the missing device and online it using 'zpool online'. >> see: http://www.sun.com/msg/ZFS-8000-D3 >> scrub: none requested >> config: >> >> NAME STATE READ WRITE CKSUM >> pool2 UNAVAIL 0 0 0 insufficient >> replicas >> raidz1 UNAVAIL 0 0 0 insufficient >> replicas >> dsk/c10d0p3 UNAVAIL 0 0 0 cannot open >> dsk/c11d0p3 UNAVAIL 0 0 0 cannot open >> >> Is it possible to replace dsk/c10d0p3 by ad4s3 and dsk/c11d0p3 by >> ad6s3 as it must be under FreeBSD or does I need to make some entry >> in /etc/devfs.rules to create dsk/c10d0p3 and dsk/c11d0p3 (if at all >> possible?) >> >> Isn't it a interesting challenge ? > I got it: > > zpool export pool2 && zpool import -f pool2 > > do the trick > > sorry for the noise :-| > > Henri > For what its worth, I ran across a similar issue. I moved a scsi card in my server which caused da2 and da3 (each with a separate zfs pool with no redundancy) become swapped, which I did not predict. ZFS was completely confused by this, and rather than swap cables and reboot, I decided to try the export and import. Worked fine. I was a little dissapointed and surprised that I had to take action, but more surprised that such a simple fix was possible (yet predicted) when the error message on sun's website basically indicated 'you are totally screwed, game over, data lost'. I wasn't in a situation were I would have lost any valuable data. Maybe it was terminally confused because both devices it wanted were in use by the other 'failed' pool.