From nobody Sat Feb 26 20:13:28 2022 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 0F68F19D4209 for ; Sat, 26 Feb 2022 20:13:33 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [184.105.128.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "holgerdanske.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4K5dBN2V6Cz4jww for ; Sat, 26 Feb 2022 20:13:32 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=holgerdanske.com; s=nov-20210719-112354; t=1645906409; bh=V0w2lMh6QZDXeLZwZFDyurK1JWP8iQMoj7lAa0e9aYw=; h=Received:Message-ID:Date:MIME-Version:User-Agent:Subject: Content-Language:To:References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; b=nr/BrDtqHqEQU1jD+UHnhCH29oncPMNlAnRTOTRGn1GUJxs+YkweqZD1eCS4K9fY8 9VX5rFhl0SrwmUF4J+bREcPz/dlbawZxPRyhTkGVNfVa0BpAWU1htP8oa4JozULsfS j5E7DlXAbk2ui21c24iCk1weR2BnjQCewSbfSoB0ZoRaphwto1oJWOTCL4UYj1Lou6 Vz+q06O0RJr49VhU06OPRUs1CUjyHh7oRpyz5jCV5r2nazKppvhaCa2VA2fYAhR94K uhvRoSOsq3gyAtmBrm/OcIx9hB9FysoIRPy/5jfSnyngMXOofNukJ3Bwux6acs/q3j H61XIClls2gKzVFDhQhQOqEOkJK76DJPF79bnGBlqn8D9dCeHGADNO1RjAkXq95yRq bpm1Gg477oScLT44poOX0PUCMBsIi3pVcACWEK/EdTmqdBd7+2HARbffq2NUH1GdFU RQFR0IMT/3QQ1kGsut6UjukK+1FdM75sjM0MofiYXZkDy5pPle0ybDgOtU9085E1Fq pJmWp5gEPOOGnJOFqd23jwHExGVTyvd3oVnL+6SSNw2N2qd3oGjIVGYTPLdn7ypGmO WS1TmfIFBE/YlRD7N09sVZmCEUNADMvGd/JfwUp6QZLkgb+y7DCiqccgb4G3cotQdY idQEEY8H6mrIvoi11NGEARko= Received: from 99.100.19.101 (99-100-19-101.lightspeed.frokca.sbcglobal.net [99.100.19.101]) by holgerdanske.com with ESMTPSA (TLS_AES_128_GCM_SHA256:TLSv1.3:Kx=any:Au=any:Enc=AESGCM(128):Mac=AEAD) (SMTP-AUTH username dpchrist@holgerdanske.com, mechanism PLAIN) for ; Sat, 26 Feb 2022 12:13:29 -0800 Message-ID: <3486a5ab-1e41-7b7a-b239-d8940a8ecc91@holgerdanske.com> Date: Sat, 26 Feb 2022 12:13:28 -0800 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: SATA SSD keeps disconnecting Content-Language: en-US To: questions@freebsd.org References: <7b1bf89d-aed0-5b3f-0666-1a220681d61e@netfence.it> <0806bd9f-49db-c429-0110-76c5f6887f83@holgerdanske.com> From: David Christensen In-Reply-To: <0806bd9f-49db-c429-0110-76c5f6887f83@holgerdanske.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4K5dBN2V6Cz4jww X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=holgerdanske.com header.s=nov-20210719-112354 header.b="nr/BrDtq"; dmarc=pass (policy=none) header.from=holgerdanske.com; spf=pass (mx1.freebsd.org: domain of dpchrist@holgerdanske.com designates 184.105.128.27 as permitted sender) smtp.mailfrom=dpchrist@holgerdanske.com X-Spamd-Result: default: False [-2.00 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[holgerdanske.com:s=nov-20210719-112354]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+a:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_SPAM_SHORT(1.00)[0.998]; DKIM_TRACE(0.00)[holgerdanske.com:+]; DMARC_POLICY_ALLOW(-0.50)[holgerdanske.com,none]; MLMMJ_DEST(0.00)[questions]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6939, ipnet:184.104.0.0/15, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 2/26/22 12:09, David Christensen wrote: > On 2/26/22 09:34, Andrea Venturoli wrote: >> >> Hello. >> >> I've got a desktop system with two SSD drives (gmirror swap + ZFS >> mirrored pool) and one of them keeps disconnecting. >> >> Smart says the drive is good and I've already tried replacing the cables. > > > I collected many red SATA I, II, and III cables over the years.  Only a > few were marked as to their speed.  I ran into a lot of problems with > these cables; and may have incorrectly blamed and replaced a few drive > racks.  Finally, I replaced all of my cables with new Cable Matters > locking black marked 6 Gbps cables, and the problems went away. > > >> Relevant dmesg: >>> FreeBSD 12.3-RELEASE-p1 releng/12.3-n234208-c1494385203 AAAAA amd64 > > > Good. > > >>> FreeBSD clang version 10.0.1 (git@github.com:llvm/llvm-project.git >>> llvmorg-10.0.1-0-gef32c611aa2) >>> VT(vga): resolution 640x480 >>> CPU: Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz (3200.09-MHz K8-class CPU) >>>   Origin="GenuineIntel"  Id=0x306a9  Family=0x6  Model=0x3a  Stepping=9 > > > Good. > > >>> ahci0: port > > > Good. > > >>> ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 >>> ada0: ACS-4 ATA SATA 3.x device > >>> ada1: ACS-4 ATA SATA 3.x device > > > I had a PNY video card with a "lifetime" warranty back in the day.  It > died after ~2 years.  I contacted PNY.  They define "lifetime" as > "lifetime of the product", which means "until they stop making it".  The > card was out of production and had warranty. Correction: had no warranty. > I have not bought PNY > products since. > > > I prefer Intel enterprise desktop drives: > > ada0: ACS-2 ATA SATA 3.x device > > >> And this is what I get in the logs: >>> Feb 26 12:01:01  kernel: ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 >>> Feb 26 12:01:01  kernel: ada0: s/n >>> PNY14200238640200E14 detached >>> Feb 26 12:01:01  kernel: GEOM_MIRROR: Device swap: provider ada0p2 >>> disconnected. >>> Feb 26 12:01:01  kernel: (ada0:ahcich0:0:0:0): Periph destroyed >>> Feb 26 12:01:01  kernel: ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 >>> Feb 26 12:01:01  kernel: ada0: ACS-4 >>> ATA SATA 3.x device >>> Feb 26 12:01:01  kernel: ada0: Serial Number PNY14200238640200E14 >>> Feb 26 12:01:01  kernel: ada0: 600.000MB/s transfers (SATA 3.x, >>> UDMA6, PIO 8192bytes) >>> Feb 26 12:01:01  kernel: ada0: Command Queueing enabled >>> Feb 26 12:01:01  kernel: ada0: 114473MB (234441648 512 byte sectors) >>> Feb 26 12:40:56  kernel: ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 >>> Feb 26 12:40:56  kernel: ada0: s/n >>> PNY14200238640200E14 detached > > > Yup. > > >> Anything I can try on the software side? >> Some more logging? >> Some sysctl? >> Other tweaks? > > > If you are confident in the cables (and/or racks), replace the drive(s). > > > David >