From owner-freebsd-current@FreeBSD.ORG Tue Jun 28 18:34:05 2011 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 BB8D41065674 for ; Tue, 28 Jun 2011 18:34:05 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f44.google.com (mail-fx0-f44.google.com [209.85.161.44]) by mx1.freebsd.org (Postfix) with ESMTP id 4A1FD8FC19 for ; Tue, 28 Jun 2011 18:34:04 +0000 (UTC) Received: by fxe6 with SMTP id 6so428430fxe.17 for ; Tue, 28 Jun 2011 11:34:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=HyxvCPLhN7MGVYg0t1HYwWF5nPmH3yeHTnYajeBSCvg=; b=Ei6lsoRa5kCJ8AXO4m99/iPbJTslJGJwUYuXhOTpajpQKwpYZcYxRsg0FhEJnkosZf /Cc8MiT9UfTiY28THwuMaXIAhlW6keseJYJu22va//KB/8IvHiGM1WlxNv4Mpq1YugHm eG6T3UZxD5Svr5d9vu5vyzlaKlZAZiZmJAjp0= Received: by 10.223.91.129 with SMTP id n1mr11075402fam.113.1309286044073; Tue, 28 Jun 2011 11:34:04 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id m5sm305282fai.1.2011.06.28.11.34.02 (version=SSLv3 cipher=OTHER); Tue, 28 Jun 2011 11:34:03 -0700 (PDT) Sender: Alexander Motin Message-ID: <4E0A1E91.3030909@FreeBSD.org> Date: Tue, 28 Jun 2011 21:33:53 +0300 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.17) Gecko/20110616 Thunderbird/3.1.10 MIME-Version: 1.0 To: "O. Hartmann" References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD-Current Subject: Re: CAM/SATA: attach/detach problems with harddrive 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: Tue, 28 Jun 2011 18:34:05 -0000 On 28.06.2011 18:09, O. Hartmann wrote: > Several maintenance of a ZFS pools has to be done and my intention was > to swap the 2TB hd disk (WDC WD20EARS-00MVWB0) with a 3TB hd disk > (WD30EZRX). > > zfs umount works well, > zpool export POOL also worked well, > > but I didn't find any "detach command" within camcontrol (I use the new > AHACI/CAM layout in the kernel on FreeBSD 9.0-CURRENT/amd64 r223597, so > my harddrives all show up as ada0 to ada4. > Since the box has a IcyDock 5-Slot backplane attached to the ICH0R > chipset and camcontrol doesn't reveal any detach command like atacontrol > did, I trusted in hotplugging capabilities and simply pulled the disk. > All right, the box reported a lost device but did not crash. The I > inserted the new drive. Entered > > camcontrol rescan all > > and > > camcontrol devlist showed up the new device. But I can't do anything > with the drive. Even with the former device inserted again, rescaned > etc., a zpool import command get stuck as well as any diskinfo -ctv ada4 > issued to the device. The drive shows up in camcontrol devlist, but > seems inoperable. What I'm doing wrong? With controller in AHCI mode device plug-in should be detected without any additional activity. If not, `camcontrol reset X`, `camcontrol rescan X` sequence should force it, where X is a CAM scbus number. Without additional info I can't say what went wrong there. I would recommend to enable verbose kernel messages to get more info. Also consider that SATA default timeout is 30 seconds, so if due to some issues during plug-in some command was lost, recovery may take a bit. -- Alexander Motin