From owner-freebsd-current@FreeBSD.ORG Wed Jul 15 21:37:59 2009 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 AD1E7106566C for ; Wed, 15 Jul 2009 21:37:59 +0000 (UTC) (envelope-from freebsd-current@chrishedley.com) Received: from atmail-7.bnguk.net (atmail-7.bnguk.net [80.74.253.4]) by mx1.freebsd.org (Postfix) with ESMTP id 67E8F8FC35 for ; Wed, 15 Jul 2009 21:37:59 +0000 (UTC) (envelope-from freebsd-current@chrishedley.com) Received: from 53-233.adsl.zetnet.co.uk ([194.247.53.233] helo=mail.chrishedley.com) by atmail-7.bnguk.net with esmtp (Exim 4.69) (envelope-from ) id 1MRCAn-0001wG-Mz for freebsd-current@freebsd.org; Wed, 15 Jul 2009 22:37:57 +0100 Received: from localhost (localhost [127.0.0.1]) by mail.chrishedley.com (Postfix) with ESMTP id E0101C10587; Wed, 15 Jul 2009 22:37:56 +0100 (BST) X-Virus-Scanned: amavisd-new at chrishedley.com Received: from mail.chrishedley.com ([127.0.0.1]) by localhost (mail.chrishedley.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id QtUUdjFtaN1X; Wed, 15 Jul 2009 22:37:53 +0100 (BST) Received: from teapot.cbhnet (teapot.cbhnet [192.168.1.1]) by mail.chrishedley.com (Postfix) with ESMTP id 2376CC10586; Wed, 15 Jul 2009 22:37:53 +0100 (BST) Date: Wed, 15 Jul 2009 22:37:53 +0100 (BST) From: Chris Hedley X-X-Sender: cbh@teapot.cbhnet To: Kamigishi Rei In-Reply-To: <4A5D0F9B.1010900@haruhiism.net> Message-ID: References: <4A5D0F9B.1010900@haruhiism.net> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-current@freebsd.org, Freddie Cash Subject: Re: ZFS pool corrupted on upgrade of -current (probably sata renaming) 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: Wed, 15 Jul 2009 21:38:00 -0000 On Wed, 15 Jul 2009, Kamigishi Rei wrote: > There was another step you could take to recover your array safely. > Right after that upgrade after witnessing the problem, boot back into > kernel.old in single user mode and doing > /etc/rc.d/zfs start > zpool export poolname > > and then rebooting into normal kernel in single user mode again and doing > > /etc/rc.d/zfs start > zpool import poolname > > That's how I solved it when I moved from adXX to adaXX device names. > > Actually, just to be sure, I export pools for every update that touches > ata/ahci modules. I think that probably is good practise; I'm not sure it would've avoided my problem due to the re-use of the same drive names for different drives between the old and new naming schemes, which is what seems to have caused the upset, but that said, it probably is a good habit to get into, from what I understand. Thanks, Chris