From owner-freebsd-questions@freebsd.org Sun Jan 6 23:15:35 2019 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0F7C9149E6BB for ; Sun, 6 Jan 2019 23:15:35 +0000 (UTC) (envelope-from chris@cretaforce.gr) Received: from smtp1.cretaforce.gr (smtp1.cretaforce.gr [159.69.10.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.cretaforce.gr", Issuer "RapidSSL RSA CA 2018" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D05A495A80 for ; Sun, 6 Jan 2019 23:15:33 +0000 (UTC) (envelope-from chris@cretaforce.gr) Received: from server1.cretaforce.gr (server1.cretaforce.gr [138.201.248.69]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.cretaforce.gr", Issuer "RapidSSL RSA CA 2018" (verified OK)) by smtp1.cretaforce.gr (Postfix) with ESMTPS id 6EFC720BDD for ; Mon, 7 Jan 2019 01:15:26 +0200 (EET) Received: from [172.20.10.3] (internet2-5-144-219-137.pat.ren.cosmote.net [5.144.219.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: chris@cretaforce.gr) by server1.cretaforce.gr (Postfix) with ESMTPSA id 22F5C27332 for ; Mon, 7 Jan 2019 01:15:26 +0200 (EET) From: Christos Chatzaras Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: Re: What smartctl command to use to verify if disk is okay or failing ? Date: Mon, 7 Jan 2019 01:15:24 +0200 References: <613aefd600422ad976a4cf44a96b4977fa2937a3.camel@yandex.com> To: FreeBSD Questions In-Reply-To: <613aefd600422ad976a4cf44a96b4977fa2937a3.camel@yandex.com> Message-Id: <8A02A61A-38E1-488C-A33B-FBDC6EB639EC@cretaforce.gr> X-Mailer: Apple Mail (2.3445.102.3) X-Rspamd-Queue-Id: D05A495A80 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of chris@cretaforce.gr designates 159.69.10.232 as permitted sender) smtp.mailfrom=chris@cretaforce.gr X-Spamd-Result: default: False [-2.64 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:159.69.10.232]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; DMARC_NA(0.00)[cretaforce.gr]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[3]; MIME_TRACE(0.00)[0:+]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[mail.cretaforce.gr]; NEURAL_HAM_SHORT(-0.87)[-0.869,0]; TO_MATCH_ENVRCPT_ALL(0.00)[]; IP_SCORE(-0.86)[ipnet: 159.69.0.0/16(-1.91), asn: 24940(-2.38), country: DE(-0.01)]; RCVD_IN_DNSWL_LOW(-0.10)[232.10.69.159.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:24940, ipnet:159.69.0.0/16, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jan 2019 23:15:35 -0000 > On 7 Jan 2019, at 01:07, Manish Jain wrote: > > Hi, > > Yesterday I saw an AHCI/CAM error on my SATA SSD on the console, and I > am a bit worried whether the disk (ada0) is failing. > > I installed smartmontools and enabled smartd in rc.conf. But I am > unable to figure out the command to utilise for reliably testing the > state of /dev/ada0 (Samsung EVO 850; SMART enabled). > > If anyone could tell me the right command to go through a good test > (preferably with a log file generated), it would be much appreciated. > > > Thanks, > Manish Jain smartctl -t long /dev/ada0 and when it finishes try: smartctl -a /dev/ada0