From owner-freebsd-stable@FreeBSD.ORG Fri Jan 16 23:51:28 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 28D911065673 for ; Fri, 16 Jan 2009 23:51:28 +0000 (UTC) (envelope-from ehrmann@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.29]) by mx1.freebsd.org (Postfix) with ESMTP id C9E468FC23 for ; Fri, 16 Jan 2009 23:51:27 +0000 (UTC) (envelope-from ehrmann@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so767690yxb.13 for ; Fri, 16 Jan 2009 15:51:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Yf3haicbgqAfH6iYOfVjmghDaONUL5MQ66/uZFkJ9Rc=; b=FjbI29AB+RoIsai7oLJYlZJtLYlhpqS10vOMpXL9ADUSSHMFPdYil2ZQuGLDttzMIc LbKjLAalcQ0PmNlrqy+t5dt99M0zpMLu6NO+b9kOEAKK9htRoXUbkVMYh68bIlhSXUH0 4YbxGAM6Rzbc+uD8+fwC22jdelxdFqh5PS+S0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=RfSB3aPr4HtBz3mvjfCFpIFyfzYKveIPV6AA+KH8g5q0ra4+AyBpGYq+BgEuAqO+ua NFue5ewkL3+tO72g/8X79aIMZdDfYppIx1VcIFsgvK/1AWv9j+QDGOY4cMGExsyNFs1W viG/w1Y4EcKoQchQRxQmlwlvB3OThF6zAYXDg= Received: by 10.100.110.16 with SMTP id i16mr2444012anc.133.1232148069381; Fri, 16 Jan 2009 15:21:09 -0800 (PST) Received: by 10.100.45.1 with HTTP; Fri, 16 Jan 2009 15:21:09 -0800 (PST) Message-ID: <6e0e5340901161521t30845197s9529fb5a55dbba13@mail.gmail.com> Date: Fri, 16 Jan 2009 15:21:09 -0800 From: "David Ehrmann" To: "Pete French" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6e0e5340901151158n5108ba8ct6af8fb270b10b75b@mail.gmail.com> Cc: freebsd-stable@freebsd.org Subject: Re: zfs drive keeps failing between export and import X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jan 2009 23:51:28 -0000 On Fri, Jan 16, 2009 at 3:33 AM, Pete French wrote: >> a software problem before hardware. Both drives are encrypted geli >> devices. I tried to reproduce the error with 1GB disk images (vs > > This is probably a silly question, but are you sure that the drives > are not auto detaching ? I had big problems with a zfs mirror on top > of geli which turned out to be that drives mounted using "geli_devices" > in rc.conf will auto detach unless you set "geli_autodetach" to NO. Not silly at all. I didn't know that could be an issue, but they weren't mounted with "geli_devices," they were mounted by hand with "geli attach /dev/ad." I did not set the -d flag on attach, and I don't think I used the -l flag on detach, either. Listing the device says this: Geom name: ad10.eli EncryptionAlgorithm: AES-CBC KeyLength: 128 Crypto: hardware UsedKey: 0 Flags: NONE (and more stuff) One more interesting thing: I accidentally rebooted the system without any detaching/exporting (it involved a different, bad drive). When it came up, I was able to re-import tank without any problems.