From owner-freebsd-current@FreeBSD.ORG Sat Oct 31 07:39:38 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 CBA4D106566B; Sat, 31 Oct 2009 07:39:38 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by mx1.freebsd.org (Postfix) with ESMTP id 2E0498FC19; Sat, 31 Oct 2009 07:39:37 +0000 (UTC) Received: by bwz5 with SMTP id 5so4426256bwz.3 for ; Sat, 31 Oct 2009 00:39:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=h8oHvHbjpLC/V1Ig/HZg3/ESdd/aIN1byN55ToKbZ2o=; b=nocwIHm3IJpGfi4WXSKg1VdtLQw5NlcJi/A0A9+HnEXaqAFZYePSbn0Y6XSxvfPVDK rLpXv/2HfGj5FBfzXfL+A8jPpBqWZUYWxM7Sj4FDPaWysM81oDnOIpVaZJqTy8MMF9vd WQOQVmb+aKLtGiaGC4xZ7U7fniNI4HROIKCWA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=sLgLRUpbUm6r6QSbYeZJO0yXerwNXGBE+ntE8wMwjBc98PsTSgZo00qYOB4xQSaq6A o+HJ2RA6oz0oexC0OA6LMEA/LsmGajPfWUpNuGZw1OqY2q7OKzdlTKtcib8seftGlbu2 g2K8uAMgkLKXmwBUYpJWMwqn92z3MHo+RVm1E= Received: by 10.103.78.22 with SMTP id f22mr1048160mul.14.1256974777077; Sat, 31 Oct 2009 00:39:37 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id n7sm2516634mue.27.2009.10.31.00.39.36 (version=SSLv3 cipher=RC4-MD5); Sat, 31 Oct 2009 00:39:36 -0700 (PDT) Sender: Alexander Motin Message-ID: <4AEBE9B6.6050007@FreeBSD.org> Date: Sat, 31 Oct 2009 09:39:34 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20090901) MIME-Version: 1.0 To: Kamigishi Rei References: <4AEBDDF8.8060609@FreeBSD.org> In-Reply-To: <4AEBDDF8.8060609@FreeBSD.org> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD-Current , Scott Long Subject: Re: Weird CAM-ATA behaviour (8.0-RC1): disk cloning 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: Sat, 31 Oct 2009 07:39:39 -0000 Alexander Motin wrote: > Kamigishi Rei wrote: >> I just noticed something weird in my device list (actually, I noticed it >> in "glabel status" output, but then confirmed via camcontrol devlist): I >> got a 7th HDD, ada6, which is, surprisingly, ada0. >> >> This is how it appeared (I've checked the logs): >> >> Oct 27 01:26:38 ameagari sudo: fujibayashi : TTY=pts/3 ; >> PWD=/usr/home/fujibayashi ; USER=root ; COMMAND=/sbin/camcontrol rescan >> 0:0:1 >> Oct 27 01:26:38 ameagari kernel: (aprobe0:ahcich0:0:0:1): SIGNATURE: 0000 >> Oct 27 01:26:38 ameagari kernel: ada6 at ahcich0 bus 0 target 0 lun 1 >> Oct 27 01:26:38 ameagari kernel: ada6: ATA/ATAPI-8 >> SATA 2.x device >> Oct 27 01:26:38 ameagari kernel: ada6: 300.000MB/s transfers >> Oct 27 01:26:38 ameagari kernel: ada6: 476940MB (976773168 512 byte >> sectors: 16H 63S/T 16383C) >> Oct 27 01:26:38 ameagari kernel: ada6: Native Command Queueing enabled >> Oct 27 01:26:38 ameagari kernel: GEOM_MIRROR: Cannot add disk ada6 to >> gm0 (error=17). >> >> While I know I made a mistake there (specifying 0:0:1 instead of 1:0:0), >> is this behaviour really correct? I don't see why we should add a >> 'cloned' disk device on a rescan of LUNs that do not really exist in the >> first place. >> >> This is repeatable and I can create as many clones as I want (by doing >> "camcontrol rescan X:Y:Z" where Y and Z can vary and X is the AHCI bus >> number): > > Interesting effect. By the way it is not an ATA-specific problem. Here is ahc SCSI: %camcontrol devlist at scbus0 target 1 lun 0 (sa0,pass0) at scbus0 target 1 lun 256 (pass3,sa2) at scbus0 target 17 lun 0 (pass2,sa1) -- Alexander Motin