From owner-freebsd-current@FreeBSD.ORG Thu Sep 20 00:06:27 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 10B7416A46E for ; Thu, 20 Sep 2007 00:06:27 +0000 (UTC) (envelope-from freebsd-current@adam.gs) Received: from mail.adam.gs (mail.adam.gs [76.9.2.116]) by mx1.freebsd.org (Postfix) with ESMTP id 7D03813C474 for ; Thu, 20 Sep 2007 00:05:06 +0000 (UTC) (envelope-from freebsd-current@adam.gs) Received: from [127.0.0.1] (localhost.adam.gs [127.0.0.1]) by mail.adam.gs (Postfix) with ESMTP id 841B8F3555A for ; Wed, 19 Sep 2007 20:05:05 -0400 (EDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=mail; d=adam.gs; b=NEy9YKYaYlgk2TZgeEzPpYect3WVDhkhbu5ZWRP8sUgsCh70Uz9OCrSmHa9YP+DEhvpnmY2VS8MrHWBJOQ09L919QaSDQS3/6MyoUx+KzaWMpyzgYTuyJZs6V7SPR1FryYwlK1tHI5/iRkyT4IW3S+5jabG6Ek/T4ZyFp4ix11Q=; Received: from [66.230.128.46] (unknown [66.230.128.46]) (Authenticated sender: adam@adam.gs) by mail.adam.gs (Postfix) with ESMTP id 49949F35385; Wed, 19 Sep 2007 20:05:05 -0400 (EDT) In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Adam Jacob Muller Date: Wed, 19 Sep 2007 20:05:03 -0400 To: Axel X-Mailer: Apple Mail (2.752.3) Cc: freebsd-fs@freebsd.org, freebsd-current@freebsd.org Subject: Re: ZFS pool not working on boot 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, 20 Sep 2007 00:06:27 -0000 On Sep 19, 2007, at 6:44 PM, Axel wrote: > Adam Jacob Muller writes: > >> Hello, >> I have a server with two ZFS pools, one is an internal raid0 using 2 >> drives connected via ahc. The other is an external storage array with >> 11 drives also using ahc, using raidz. (This is a dell 1650 and >> pv220s). >> On reboot, the pools do not come online on their own. Both pools >> consistently show as failed. >> >> the exact symptoms vary, however I have seen that many drives are >> marked as variously "corrupt" or "unavailable" most zpool operations >> fail with "pool is unavailable" errors. >> >> Here is the interesting part. >> Consistently, 100% of the time, a zpool export followed by a zpool >> import restores the arrays to an ONLINE status. Once the array is >> online, it's quite stable (I'm loving ZFS btw, thank you to everyone >> for the hard work on this, ZFS is fantastic) and works great. >> >> Anyone have any ideas why this might occur and what/if the >> solution is? >> >> Any additional information can be provided on-request, I am running >> current from approximately 1 week ago. >> >> -Adam >> > > There is a file called /boot/zfs/zpool.cache that is kept in sync > and loaded at boot time. > > If that's not there , e.g. by your /boot pointing to it , you're > hosed. > File is there, of note is that some of the prior reboots had been "unintentional" reboots, so it is possible that that file was corrupt, however, it does not seem correct for zfs to come up in a state that shows drives as corrupted and/or unavailable. I believe I have corrected the crashing issue, however it still does not seem that this is the correct behavior. - Adam