From nobody Sat Apr 15 05:51:39 2023 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 4Pz2Wf66ZBz45cxP for ; Sat, 15 Apr 2023 05:51:58 +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 4Pz2Wd6Ry0z4FQM for ; Sat, 15 Apr 2023 05:51:57 +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=AD2zo+gG; spf=pass (mx1.freebsd.org: domain of dpchrist@holgerdanske.com designates 184.105.128.27 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=1681537908; bh=3p3HipFuyRRDwB9SvDlRfUvwAUPXwaNaIsBJDiFCJHM=; h=Received:Message-ID:Date:MIME-Version:User-Agent:Subject: Content-Language:To:References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; b=AD2zo+gG7y/h+RyJuLBD3yB/SXF9SHccnuGi+/p3Fhx+skimU8WNhSrJo5ksTfIeX wKl+AdYUGbVVn0pvEMN/HYS5bDtplnWK+xyFX9dFZlAxY3nfhBhQ/TMkZcpkfbDzif 9Cgvh3sz9PMRcdKW6hUULybn+Lt2WmrMIprTJz1/1u95cHcNKwG46FgCLDGkrL0qDL 7+ZNTRHNw6sNzzx76noODVvAC1HXtGirMnQ0nDEyLtQuNENF3wCYLIiBQOS3hufOaD NTtZM9BSHuPz3947AmRA+so3dJhpzz36kGJNpCG9hx7SKnFKhO3Z6vvwVgRJpvcvr8 y9zFlIWAqiYk/19AGhenckSyLiF4J0Gj5S35QgoGGhhxk1rd0DLgNLUTwRU8YMls/a qq9X2KeFAyKExw+dMHECYdHWtfhdccfqoORDoIrF2h//zK1Fm6rneaTXIGdgANOPsT l92STvQjf0BgoHqqTuuTqBd/Rh8MYHNeQJ4S91hA7IYVlkCYh7w6M8DuuLc9mfl2OM cpSC0UKhiBU3Z5tY+QZW3Gwf1VEnd3u/Kf5cRnXM/decqxvmzO6CFA6yzpBB6zY/XZ w7adn9NNoSI55F2JE8qrsTy30iDEx3d5/VrV1/US3ZltKOuAZ4ybtiOSf5BhLX6Ay1 F2hrM2or/xjSWW5pHXgCylhU= 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, 14 Apr 2023 22:51:48 -0700 Message-ID: <2367efa5-85f0-25a6-4845-f4ff5ba15fa8@holgerdanske.com> Date: Fri, 14 Apr 2023 22:51:39 -0700 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:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: frequent disk error, need guidance Content-Language: en-US To: questions@freebsd.org References: From: David Christensen In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-3.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.991]; 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]; MIME_GOOD(-0.10)[text/plain]; DKIM_TRACE(0.00)[holgerdanske.com:+]; ASN(0.00)[asn:6939, ipnet:184.104.0.0/15, country:US]; MLMMJ_DEST(0.00)[questions@freebsd.org]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4Pz2Wd6Ry0z4FQM X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N On 4/14/23 20:57, Paul Procacci wrote: > On Fri, Apr 14, 2023 at 11:54 PM Gary Aitken > wrote: > >> I'm seeing a boatload of the same error: >> (ada0:ata2:0:0:0): READ_DMA. ACB: c8 00 e2 c7 73 41 00 00 00 00 40 00 >> (ada0:ata2:0:0:0): CAM status: ATA Status Error >> (ada0:ata2:0:0:0): ATA status: 51 (DRDY SERV ERR), error: 40 (UNC ) >> (ada0:ata2:0:0:0): RES: 51 40 e7 c7 73 01 01 00 00 00 00 >> (ada0:ata2:0:0:0): Retrying command, 3 more tries remain >> repeated, with occasional: >> g_vfs_done():ada0p2[READ(offset=12474351616, length=32768)]error = 5 >> >> # smartctl --info /dev/da0 >> Model Family: Seagate Barracuda 7200.9 >> Device Model: ST3808110AS >> Serial Number: 4LR1HW1E >> Firmware Version: 3.ADH >> User Capacity: 80,000,000,000 bytes [80.0 GB] >> Sector Size: 512 bytes logical/physical >> Device is: In smartctl database 7.3/5319 >> ATA Version is: ATA/ATAPI-7 (minor revision not indicated) >> Local Time is: Fri Apr 14 09:43:01 2023 MDT >> SMART support is: Available - device has SMART capability. >> SMART support is: Enabled >> # smartctl --health /dev/da0 >> SMART overall-health self-assessment test result: PASSED >> >> # smartctl --test=long /dev/ada0 >> # smartctl --log=selftest /dev/ada0 >> Num Test_Description Remaining LBA_of_1st_error >> Status LifeTime(hours) >> >> # 1 Extended offline Completed: read failure 90% 7482 24365031 >> # 2 Short offline Completed: read failure 90% 7482 24365031 >> # 3 Short offline Completed: read failure 90% 7482 24365031 >> # 4 Short offline Completed without error 00% 0 - >> >> So I presume a bad block/sector on the disk. >> I had high hopes this article: >> https://www.freebsddiary.org/smart-fixing-bad-sector.php >> would show the way, but it seems to quit right at the good stuff. >> >> Can it be remapped, and if so, pointers to how? >> >> Thanks, >> >> Gary >> >> > That is a hardware error. UNC means uncorrectable data error. Either you > have a cable going bad or that drive is failing. > Maybe it's just intermittent at this stage, but I'd look at trying a new > cable/replacing that drive as the very first step. > > ~Paul > Do you need the data on the drive? The combination of DMA errors and a passing SMART test indicate a bad connection between the motherboard and the HDD. What is between the motherboard and the HDD? If there is a SATA cable involved, I would try replacing the cable with a brand-new SATA 6 Gbps cable with locking connectors. If the problems persist, I would try another SATA port. (You may have to deal with boot issues if you switch ports and there are other drives.) Seagate offers a diagnostic tool called "SeaTools". I prefer the bootable versions. You may need a Windows computer to create bootable media: https://www.seagate.com/support/downloads/seatools/ SeaTools can test, zero, and/or reset drives. Successful use of SeaTools might give you some more life out of the drive. That said, WikiPedia indicates the Barraduce 7200.9 series were introduced in 2005. For less than $20 you can get a good used SSD that is newer, larger, quicker (latency), and faster (throughput). David