From owner-freebsd-fs@FreeBSD.ORG Mon May 17 01:36:06 2010 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 AD4FB1065673 for ; Mon, 17 May 2010 01:36:06 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-pz0-f174.google.com (mail-pz0-f174.google.com [209.85.222.174]) by mx1.freebsd.org (Postfix) with ESMTP id 7E10B8FC17 for ; Mon, 17 May 2010 01:36:06 +0000 (UTC) Received: by pzk4 with SMTP id 4so2426714pzk.7 for ; Sun, 16 May 2010 18:36:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=mh5Ya+DVD4lUAgjypMDvmLLaxEPo5hkrJSMRZoRMhMA=; b=Mp95yq+DXdcUHS+Cd9yW34+HC/8dXZiYp1/sZlGuwmZhdUWtbdHZOLqt3AjFuVqv09 XkcTJcmSiBMCMEHC4RdLPvnJPQRl13vefqvURDgJrTFPNl3y4NP3Sq8zKBp+vB7Gz/B+ I2mux/jCxEn2Nwfp0R+o5js+GWMVifn5d6fNY= 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=qRLFgUvGzteAGrV5G2DUtoNoH5syS94r7cjKm/4JYEPU1rcDv3frmROcCX/fO3yQFA 4sojC67Nf97RPuS6Uj66x3UsTQmIFn1TVKrFQA/PEHwm9Xsf5PBGO4SseQRaplNK4cWb Em1ZjjC0d+GNTImpG31ci1DfHE4TyC0KjNSP8= MIME-Version: 1.0 Received: by 10.142.247.7 with SMTP id u7mr2920622wfh.95.1274060165777; Sun, 16 May 2010 18:36:05 -0700 (PDT) Received: by 10.143.41.20 with HTTP; Sun, 16 May 2010 18:36:05 -0700 (PDT) In-Reply-To: References: <0B97967D-1057-4414-BBD4-4F1AA2659A5D@duke.edu> <6FADBEDC-FF47-498A-BB17-0FCC163D3C8C@duke.edu> <0BE564E4-3B13-41A5-9A38-7D5AE0C983BF@duke.edu> Date: Sun, 16 May 2010 18:36:05 -0700 Message-ID: From: Freddie Cash To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: zfs drive replacement issues 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: Mon, 17 May 2010 01:36:06 -0000 On Sun, May 16, 2010 at 2:23 PM, Wes Morgan wrote: > On Sun, 16 May 2010, Todd Wasson wrote: > > > >>> Strange, you should be able to cancel the replacement with detach. > There > > >>> is some kind of DTL issue preventing it. I don't know what it is > > >>> precisely, but there are known cases where legitimate detach > operations > > >>> are prevented. > > >>> > > >>> Try reconnecting the disk you partitioned, leaving the original ad6 > still > > >>> attached, and you should be able to detach the new one. > > >> > > >> The problem with that is that I can't have any more than four SATA > > >> devices in my machine. I'd have to detach one of the other (good) > > >> devices in order to do that. Is that feasible / possible? I would > > >> think at that point I would have only two of the four drives in the > pool > > >> and it wouldn't function at all, but if that's not the case I can give > > >> it a try... > > > > > > I wouldn't recommend that. What about attaching it externally, via > eSATA > > > or USB? > > > > Unfortunately, my machine doesn't support eSATA and I don't have a USB > > to SATA adapter. I can pick one up if it'll help me solve this, though, > > but one related issue: will the device be identified as the device that > > used to be on ad6 (or ad6s1) once it's attached via another means, like > > a USB adapter? I suspect it will (or that I can issue a command to tell > > the zpool about it, anyway) but I thought I'd double check... > > Via USB, it will show up as a daX device, and it should be recognized > without problem by zfs. You may need to export and import the pool, > though. > > Or, plug the old drive back into the same spot it was plugged into before, so it shows up as ad6. And plug in the new drive via USB. If you manage to get the pool back into a consistent state, then you can export, plug the new drive into the SATA port, and re-import the pool. ZFS will find the drive correctly and adjust things as needed. -- Freddie Cash fjwcash@gmail.com