From owner-freebsd-hardware@freebsd.org Mon Aug 14 04:55:29 2017 Return-Path: Delivered-To: freebsd-hardware@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 71B16DD3C53 for ; Mon, 14 Aug 2017 04:55:29 +0000 (UTC) (envelope-from mi+thun@aldan.algebra.com) Received: from smtp.rcn.com (smtp.rcn.com [69.168.97.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3B2866CB8D for ; Mon, 14 Aug 2017 04:55:28 +0000 (UTC) (envelope-from mi+thun@aldan.algebra.com) X_CMAE_Category: , , X-CNFS-Analysis: v=2.2 cv=Aa3zJDfG c=1 sm=1 tr=0 a=lGUdY1O6J9NpztYPi32J9g==:117 a=lGUdY1O6J9NpztYPi32J9g==:17 a=r77TgQKjGQsHNAKrUKIA:9 a=wFqjuZecNA2Q0zH28JwA:9 a=5tuCPvN-1RKcjjiR:21 a=qRXdMHl097A7n0ZI:21 a=QEXdDO2ut3YA:10 a=uecSUABJW_AA:10 a=DYuDYreJR4hht5VXJo0A:9 a=YoMO8FQamdjw0kmD:21 a=_W_S_7VecoQA:10 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine X-Authed-Username: YW5hdEByY24uY29t Authentication-Results: smtp02.rcn.cmh.synacor.com header.from=mi+thun@aldan.algebra.com; sender-id=neutral Authentication-Results: smtp02.rcn.cmh.synacor.com smtp.mail=mi+thun@aldan.algebra.com; spf=neutral; sender-id=neutral Authentication-Results: smtp02.rcn.cmh.synacor.com smtp.user=anat; auth=pass (PLAIN) Received-SPF: neutral (smtp02.rcn.cmh.synacor.com: 108.53.87.28 is neither permitted nor denied by domain of aldan.algebra.com) Received: from [108.53.87.28] ([108.53.87.28:28059] helo=aldan.narawntapu) by smtp.rcn.com (envelope-from ) (ecelerity 3.6.23.54417 r(Core:3.6.23.0)) with ESMTPSA (cipher=DHE-RSA-AES128-SHA) id D1/01-53214-83D21995; Mon, 14 Aug 2017 00:55:20 -0400 To: freebsd-hardware@FreeBSD.org From: "Mikhail T." Subject: ada vs. da? Message-ID: <2c0b1d32-bc9b-26e7-4c51-46bc6a2af40d@aldan.algebra.com> Date: Mon, 14 Aug 2017 00:55:20 -0400 MIME-Version: 1.0 Content-Language: en-US Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Aug 2017 04:55:29 -0000 The four AHCI-drives in my system appear as both adaX and daX each: at scbus2 target 0 lun 0 (ada1,pass2) at scbus3 target 0 lun 0 (ada2,pass3) at scbus5 target 0 lun 0 (ada3,pass4) at scbus6 target 0 lun 0 (ada4,pass5) at scbus7 target 0 lun 0 (da0,pass6) at scbus7 target 0 lun 1 (da1,pass7) at scbus7 target 0 lun 2 (da2,pass8) at scbus7 target 0 lun 3 (da3,pass9) Each one is listed in /var/run/dmesg.boot like this: ada2: ATA8-ACS SATA 3.x device ada2: Serial Number Z1F1E8NK ada2: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) ada2: Command Queueing enabled ada2: 2861588MB (5860533168 512 byte sectors) ada2: quirks=0x1<4K> ada2: Previously was known as ad8 da2: Removable Direct Access SPC-3 SCSI device da2: Serial Number 000000000195 da2: 40.000MB/s transfers da2: Attempt to query device size failed: NOT READY, Medium not present da2: quirks=0x3 What am I supposed to make of it? Can they be accessed through either name? What are the advantages of each? If ada is always a better choice, how do I make the da ones disappear -- such as from the systat's output? Thanks! -mi From owner-freebsd-hardware@freebsd.org Mon Aug 14 06:21:54 2017 Return-Path: Delivered-To: freebsd-hardware@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 783D1DD7EBB for ; Mon, 14 Aug 2017 06:21:54 +0000 (UTC) (envelope-from xxjack12xx@gmail.com) Received: from mail-wm0-x235.google.com (mail-wm0-x235.google.com [IPv6:2a00:1450:400c:c09::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0FB7D6F899 for ; Mon, 14 Aug 2017 06:21:54 +0000 (UTC) (envelope-from xxjack12xx@gmail.com) Received: by mail-wm0-x235.google.com with SMTP id f15so35547293wmg.1 for ; Sun, 13 Aug 2017 23:21:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=TV+FFSEuiTI8xaxSsuN6Nochvq9yQGG7WMdjDU+mTVA=; b=LQ+vGEVxDuyxHrISvRhhMjknRyI8S+BJZWJRX/YyfW9BEcucjUgbYFD6YAQ4zn8Nij cOSzFC8ryYre0bbSfbc9JqHJQJPyEIG7l9G/bvXgcU45/1fw0k7aH2jK+cSywqR78Ze4 jhGz3zBikhUO3Lfgym9Mg5RKYFGRzJ9sjVVVNKVJQLkjvlJIeryf0RtLr++qSMVoe1Da ZBSEb3GgjxGS8FPDkpcFhD0gjaKRsX5BU2NwF/OLv39e5mk6DBRJpRxiin9CpKeRJMpC hBrIW1qno0LabH2//dVd5Xd/QeK0INvBKWxxv7BqIxXieP6aKOlCw3B2/Vva4kK8KfhO 3uxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=TV+FFSEuiTI8xaxSsuN6Nochvq9yQGG7WMdjDU+mTVA=; b=laXpWwxBNDvODwPvubZmUbBwg7kaWb8MEKlhbtY+22o8wdUbWAOtjAs5U0Y4nmII/g LdqG/fI2D2/DfnYnBxWJJtPhG1bTAE8xoalFFEKrY1V/oWliVw56SAHHQoNATKA5U8cm GlRhXzeHWryhj5OAAmR7YNyjMQ/+qKo8jxJ1dShXM+sS20eTOrDXztzzEX6z63MfQb/g gD/FNHme6L1n5KiFpZ/5+wt9vL/4ke3XJJ8HZivwfHfZ3bSRPwv+UKygUue1GYkLFz7u YXZcIka/kAABYQ4CVZld1pmvPlqAPUK+Zgdbf+b19He08HL+ir5Uj9Q72+fb5lWexDq5 Ew4Q== X-Gm-Message-State: AHYfb5g7ybqutnRd1C0hCXlxFTSSdkz7GzioYE9QlbsNp/2040vwkUaB wRvdj7FgVATR3lRmVCooZkBdkslcnA== X-Received: by 10.28.55.69 with SMTP id e66mr4027839wma.9.1502691711241; Sun, 13 Aug 2017 23:21:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.146.231 with HTTP; Sun, 13 Aug 2017 23:21:10 -0700 (PDT) In-Reply-To: <2c0b1d32-bc9b-26e7-4c51-46bc6a2af40d@aldan.algebra.com> References: <2c0b1d32-bc9b-26e7-4c51-46bc6a2af40d@aldan.algebra.com> From: "Jack L." Date: Sun, 13 Aug 2017 23:21:10 -0700 Message-ID: Subject: Re: ada vs. da? To: "Mikhail T." Cc: freebsd-hardware@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Aug 2017 06:21:54 -0000 ada and da are different. Your ada's are your atapi disk devices (sata). The da's are direct attached (usb sticks and scsi devices) which show as not attached. On Sun, Aug 13, 2017 at 9:55 PM, Mikhail T. wrote: > The four AHCI-drives in my system appear as both adaX and daX each: > > at scbus2 target 0 lun 0 (ada1,pass2) > at scbus3 target 0 lun 0 (ada2,pass3) > at scbus5 target 0 lun 0 (ada3,pass4) > at scbus6 target 0 lun 0 (ada4,pass5) > at scbus7 target 0 lun 0 (da0,pass6) > at scbus7 target 0 lun 1 (da1,pass7) > at scbus7 target 0 lun 2 (da2,pass8) > at scbus7 target 0 lun 3 (da3,pass9) > > Each one is listed in /var/run/dmesg.boot like this: > > ada2: ATA8-ACS SATA 3.x device > ada2: Serial Number Z1F1E8NK > ada2: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) > ada2: Command Queueing enabled > ada2: 2861588MB (5860533168 512 byte sectors) > ada2: quirks=0x1<4K> > ada2: Previously was known as ad8 > da2: Removable Direct Access SPC-3 > SCSI device > da2: Serial Number 000000000195 > da2: 40.000MB/s transfers > da2: Attempt to query device size failed: NOT READY, Medium not present > da2: quirks=0x3 > > What am I supposed to make of it? Can they be accessed through either name? > What are the advantages of each? If ada is always a better choice, how do I > make the da ones disappear -- such as from the systat's output? Thanks! > > -mi > > _______________________________________________ > freebsd-hardware@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hardware > To unsubscribe, send any mail to "freebsd-hardware-unsubscribe@freebsd.org" From owner-freebsd-hardware@freebsd.org Mon Aug 14 18:06:33 2017 Return-Path: Delivered-To: freebsd-hardware@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 192DFDDAC38 for ; Mon, 14 Aug 2017 18:06:33 +0000 (UTC) (envelope-from mi+r29b@aldan.algebra.com) Received: from smtp.rcn.com (smtp.rcn.com [69.168.97.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D64EF679D9 for ; Mon, 14 Aug 2017 18:06:32 +0000 (UTC) (envelope-from mi+r29b@aldan.algebra.com) X_CMAE_Category: , , X-CNFS-Analysis: v=2.2 cv=F/IVTepN c=1 sm=1 tr=0 a=2ZyxD0Un1vyHw3hS6RhAvw==:117 a=2ZyxD0Un1vyHw3hS6RhAvw==:17 a=r77TgQKjGQsHNAKrUKIA:9 a=iX7I7nBTAo0ms7Ld42wA:9 a=-5iRzJmryUkFu3sh:21 a=PKwxSpJSZ91q2Oyw:21 a=QEXdDO2ut3YA:10 a=LaO1LNughrF2vIufuo8A:9 a=-4ORljwRT8P8ajWb:21 a=_W_S_7VecoQA:10 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine X-Authed-Username: YW5hdEByY24uY29t Authentication-Results: smtp01.rcn.cmh.synacor.com smtp.mail=mi+r29b@aldan.algebra.com; spf=neutral; sender-id=neutral Authentication-Results: smtp01.rcn.cmh.synacor.com header.from=mi+r29b@aldan.algebra.com; sender-id=neutral Authentication-Results: smtp01.rcn.cmh.synacor.com smtp.user=anat; auth=pass (PLAIN) Received-SPF: neutral (smtp01.rcn.cmh.synacor.com: 38.125.162.34 is neither permitted nor denied by domain of aldan.algebra.com) Received: from [38.125.162.34] ([38.125.162.34:32396] helo=[10.10.20.47]) by smtp.rcn.com (envelope-from ) (ecelerity 3.6.23.54417 r(Core:3.6.23.0)) with ESMTPA id 61/4C-26624-7A6E1995; Mon, 14 Aug 2017 14:06:31 -0400 From: "Mikhail T." Subject: Prolonging a drive's life To: freebsd-hardware@FreeBSD.org Message-ID: <52831450-2db1-8f05-a6d4-540ce4976dc8@aldan.algebra.com> Date: Mon, 14 Aug 2017 14:06:31 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:51.0) Gecko/20100101 Firefox/51.0 SeaMonkey/2.48 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Aug 2017 18:06:33 -0000 One of the four drives in my system is frequently timing out of late, although the operation succeeds on a second attempt: Aug 14 13:51:59 aldan kernel: (ada4:ahcich5:0:0:0): FLUSHCACHE48. ACB: ea 00 00 00 00 40 00 00 00 00 00 00 Aug 14 13:51:59 aldan kernel: (ada4:ahcich5:0:0:0): CAM status: Command timeout Aug 14 13:51:59 aldan kernel: (ada4:ahcich5:0:0:0): Retrying command Aug 14 13:59:12 aldan kernel: (ada4:ahcich5:0:0:0): FLUSHCACHE48. ACB: ea 00 00 00 00 40 00 00 00 00 00 00 Aug 14 13:59:12 aldan kernel: (ada4:ahcich5:0:0:0): CAM status: Command timeout Aug 14 13:59:12 aldan kernel: (ada4:ahcich5:0:0:0): Retrying command While I'm getting a replacement, maybe, I can use camcontrol to somehow lower the operating system's exceptions about it? For example, the "camcontrol negotiate" returns the following about it: Current parameters: (pass5:ahcich5:0:0:0): SATA revision: 2.x (pass5:ahcich5:0:0:0): ATA mode: UDMA6 (pass5:ahcich5:0:0:0): ATAPI packet length: 0 (pass5:ahcich5:0:0:0): PIO transaction length: 8192 (pass5:ahcich5:0:0:0): PMP presence: 0 (pass5:ahcich5:0:0:0): Number of tags: 32 (pass5:ahcich5:0:0:0): SATA capabilities: 00000030 (pass5:ahcich5:0:0:0): tagged queueing: enabled Is there anything I can tweak for it to keep working even if at lower speeds? Also, years ago, some BIOSes had the feature, which would "verify" a drive -- is there something similar I can trigger with camcontrol or smartctl? Thanks! -mi