From owner-freebsd-stable@FreeBSD.ORG Fri Jan 22 16:48:34 2010 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 54F5C1065698; Fri, 22 Jan 2010 16:48:34 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-iw0-f198.google.com (mail-iw0-f198.google.com [209.85.223.198]) by mx1.freebsd.org (Postfix) with ESMTP id 0D1618FC27; Fri, 22 Jan 2010 16:48:33 +0000 (UTC) Received: by iwn36 with SMTP id 36so1149347iwn.3 for ; Fri, 22 Jan 2010 08:48:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=DK58rBGwTxxNOLhQXY2UxQg82Y0UH6VIeDKsv7w29Cs=; b=LKiXIx8QGAChQH66QP8W6PMRfygAGj3HsgQAXKQlKwlZMUTQ0CpQaPP3utnkP250/f E+aokt2ZWtEExcIuln5mSNnJYAaaeD8Fsgfa79ZohOQmWFnfyHcjVR2zhCWvcGAT7I1O PZtlF2CFT5phNyBQdC9csAJLPcUvPxZZHqGqc= 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=lqF4L6GECoFxJ73xO8F89QoTV6Af3zQSVses2bc+MTKFEToem0OX8yk3X8lGZZ16jZ aDUhBZMBBN0oHljwuQ+X20IijT2tpHMHAFdL8az0jnh57kOagOiJuQbLYJIiXYT3pvXM UO+w+Jic0LBVHnJy4iTr4BYNTrT3idyPFOAk4= MIME-Version: 1.0 Received: by 10.231.149.16 with SMTP id r16mr1987199ibv.93.1264178913588; Fri, 22 Jan 2010 08:48:33 -0800 (PST) In-Reply-To: <4B597CBB.5040900@omnilan.de> References: <4B55D9D4.1000008@FreeBSD.org> <4B597CBB.5040900@omnilan.de> Date: Fri, 22 Jan 2010 08:48:33 -0800 Message-ID: From: Freddie Cash To: FreeBSD-Current , FreeBSD Stable Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Pack of CAM improvements 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, 22 Jan 2010 16:48:34 -0000 On Fri, Jan 22, 2010 at 2:23 AM, Harald Schmalzbauer < h.schmalzbauer@omnilan.de> wrote: > Alexander Motin schrieb am 19.01.2010 17:12 (localtime): > ... > > Patch can be found here: >> http://people.freebsd.org/~mav/cam-ata.20100119.patch >> >> Feedback as always welcome. >> > > Again, thanks a lot for your ongoing great work! > The patch doesn't cleanly apply with vpo, but I don't use vpo so I didn't > care. > Otherwise I couldn't find any problems. > The system detects reinserted SATA drives on ICH9 fine. > > This was tested on a zfs backup server which went to the backbone > yesterday, so I can't physically remove any devices any more for testing... > > But I had some questions about zfs raidz states. I think that isn't a > matter of atacam but if I removed one disk, zpool status still showed me the > ada3 device "online". > After reinserting (and proper detection/initialisazion with cam, ada3 was > present again) and zpool clean, it set the devicea as UNAVAIL sinve I/O > errors. > I coudn't get the device into the pool again, no matter what I tried. > Only rebooting the machine helped. Then I could clean and scrub. > > What are the needed steps to provide a reinsterted hard disk to geom? With > the latest patches I don't need to issue any reset/rescan comman, right? > So it's a zfs problem, right? My mistake in understanding? > > In my testing of pulling drives at random (using a 3Ware 9550SXU or 9650SE controller), you have to "zpool offline " while the drive is unplugged, before you can re-insert the same disk or a different disk. Without doing that step, it's very hard to re-insert the same disk, or replace it with a new one, without rebooting. Took me a couple of reboots and drive replacements before I figured that one out. :) -- Freddie Cash fjwcash@gmail.com