From nobody Fri Nov 22 18:14:28 2024 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 4Xw3Cx3gRPz5fB39 for ; Fri, 22 Nov 2024 18:14:53 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [IPv6:2001:470:0:19b::b869:801b]) (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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xw3Cw55rYz4HNf for ; Fri, 22 Nov 2024 18:14:52 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=holgerdanske.com header.s=nov-20210719-112354 header.b=GuE2vBnJ; spf=pass (mx1.freebsd.org: domain of dpchrist@holgerdanske.com designates 2001:470:0:19b::b869:801b as permitted sender) smtp.mailfrom=dpchrist@holgerdanske.com; dmarc=pass (policy=none) header.from=holgerdanske.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=holgerdanske.com; s=nov-20210719-112354; t=1732299283; bh=cqgnczfuhNDiN38AYKuwFO1cX9X4Cjfp9D7qP2xbGpA=; h=Received:Message-ID:Date:MIME-Version:User-Agent:Subject:To: References:Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; b=GuE2vBnJw4RmF1eIz3ILMj+ZqYmstcMei3bWb67J+Waa9ACFknM2WXtxsFKFpEoya NuyT3Vx0lc+hO/DP4iwfAStdPpDUcLmCeaMB2PmLSS9iDbm90AJwsFmMxwzDXZYn3E cYougkatK5uZI7HCnBqXVB0cYVibRfx9tAKHwY4w3uwWzibC6YnbbnsUUHkd1AMIq4 2gHC8LjD5j+KhLwc2GmSSksiCEGiSPY/F7D1M+2Uot2571G3fjoevvIs5CFhnWnXcl UOflpPW/YtQBIehER6LSPnx/0hrhJ/OrIUczJxKczbUtlAepSpXnlsGrgV4jv4GMbq 8nesFxXCBgQ3y4XRBh0Y1XK/ihlGlbRhS8KhB7BQlidV/g+1CuGCZTLbxkm1QsI/jk U8Z/P9zteVLeLc9QSWsKBZjrnAGif7UfAgx0HBScdDeLQDJ7e+p+1+I1QIwdYKBvsg 3HdX+KQzeGIPqAajncA8gAoeuyhGcalFbW8g5KGtnPY4L1ijfBQF5SDOE8HKy9EwCO H1787w0d8mA8Ow0Cjsl+itC77mSmKa8tWuAaDp14oEODECe0av4u+6pmLFkzrR0JCg dV9U5KVh22VtBRbtPXim2ORlESoN5+Kb/Egt18g5yNMmnvjy7dCLshv/5MxxajZwpX IdcMS6lTDYAoS1VruZ8kKWe8= 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 ; Fri, 22 Nov 2024 10:14:43 -0800 Message-ID: <20721bcf-7c99-4918-bbb0-53d6c8e9cda7@holgerdanske.com> Date: Fri, 22 Nov 2024 10:14:28 -0800 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: CAM status: SCSI Status Error To: questions@freebsd.org References: <665ca364-6538-4ef7-bb8b-260dd86ca0bb@app.fastmail.com> Content-Language: en-US From: David Christensen In-Reply-To: <665ca364-6538-4ef7-bb8b-260dd86ca0bb@app.fastmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [-3.89 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[holgerdanske.com,none]; R_SPF_ALLOW(-0.20)[+a]; R_DKIM_ALLOW(-0.20)[holgerdanske.com:s=nov-20210719-112354]; ONCE_RECEIVED(0.10)[]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_ONE(0.00)[1]; RCVD_TLS_ALL(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[holgerdanske.com:+] X-Rspamd-Queue-Id: 4Xw3Cw55rYz4HNf X-Spamd-Bar: --- On 11/22/24 05:11, Dan Langille wrote: > On FreeBSD 14.1, is this a server issue (e.g. cable/hardware) as opposed to a drive issue? > > Nov 21 05:28:48 r730-03 kernel: (da7:mrsas0:1:7:0): READ(10). CDB: 28 00 aa d9 5b 5f 00 00 20 00 > Nov 21 05:28:48 r730-03 kernel: (da7:mrsas0:1:7:0): CAM status: SCSI Status Error > Nov 21 05:28:48 r730-03 kernel: (da7:mrsas0:1:7:0): SCSI status: OK > Nov 21 05:28:54 r730-03 kernel: (da7:mrsas0:1:7:0): READ(10). CDB: 28 00 aa d9 6b 08 00 00 10 00 > Nov 21 05:28:54 r730-03 kernel: (da7:mrsas0:1:7:0): CAM status: SCSI Status Error > Nov 21 05:28:54 r730-03 kernel: (da7:mrsas0:1:7:0): SCSI status: OK > Nov 21 05:55:34 r730-03 smartd[17215]: Device: /dev/da7 [SAT], ATA error count increased from 4 to 8 I believe those errors are related to the connection between the drive and the host -- e.g. cables, connectors, and/or interface chips. I would replace the cable with a known good cable. A failing power supply can cause all sorts of problems. I would check the PSU with a hardware tester. > Followed by this from time to time: > > Nov 21 16:55:33 r730-03 smartd[17215]: Device: /dev/da7 [SAT], Self-Test Log error count increased from 0 to 1 > Nov 22 11:25:35 r730-03 smartd[17215]: Device: /dev/da7 [SAT], 1 Currently unreadable (pending) sectors STFW I found a good explanation for pending sectors: https://superuser.com/questions/384095/how-to-force-a-remap-of-sectors-reported-in-s-m-a-r-t-c5-current-pending-sector If you can identify the address (LBA) of the bad sector, you could use dd(1) to overwrite the bad sector. If the drive is in an operating pool, this could be risky. Shutting down and using live media would be safer. In either case, you will want to scrub afterwards. David