From owner-freebsd-questions@freebsd.org Sun Jan 6 23:08:42 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 44ED0149E450 for ; Sun, 6 Jan 2019 23:08:42 +0000 (UTC) (envelope-from jude.obscure@yandex.com) Received: from forward103p.mail.yandex.net (forward103p.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:106]) (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 93B4C956D2 for ; Sun, 6 Jan 2019 23:08:40 +0000 (UTC) (envelope-from jude.obscure@yandex.com) Received: from mxback7o.mail.yandex.net (mxback7o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::21]) by forward103p.mail.yandex.net (Yandex) with ESMTP id D2AA018C0853 for ; Mon, 7 Jan 2019 02:08:35 +0300 (MSK) Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [2a02:6b8:0:1a2d::25]) by mxback7o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id xFhDfIkqbK-8ZA0sLci; Mon, 07 Jan 2019 02:08:35 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1546816115; bh=29//hNeutggHxt9wDy4XOiUQgbFatgfgozGl4Rdgs34=; h=Message-ID:Subject:From:To:Date; b=Iw4epqq4oK16r4qtYpJ7zXan7h3KHRXHsx65aimmiYq6dInPICToAatGQ6IdSon3U SpW7pUFUixqCjHNUAcL0N2ztq8C8/Sz/z/RieG4PLfIw0b3NtUA4iPPwLNwThEN+CK cspsCQA6enLESNIv0FcfEguc5z6G4NU4T6fFFxOo= Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id ig8FD3D6P0-8YCeQA3x; Mon, 07 Jan 2019 02:08:34 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) Message-ID: <613aefd600422ad976a4cf44a96b4977fa2937a3.camel@yandex.com> Subject: What smartctl command to use to verify if disk is okay or failing ? From: Manish Jain To: FreeBSD Questions Date: Mon, 07 Jan 2019 04:37:29 +0530 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 93B4C956D2 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yandex.com header.s=mail header.b=Iw4epqq4; dmarc=pass (policy=none) header.from=yandex.com; spf=pass (mx1.freebsd.org: domain of jude.obscure@yandex.com designates 2a02:6b8:0:1472:2741:0:8b7:106 as permitted sender) smtp.mailfrom=jude.obscure@yandex.com X-Spamd-Result: default: False [-4.31 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a02:6b8:0:1000::/52]; MV_CASE(0.50)[]; FREEMAIL_FROM(0.00)[yandex.com]; RCVD_COUNT_THREE(0.00)[4]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yandex.com:+]; DMARC_POLICY_ALLOW(-0.50)[yandex.com,none]; MX_GOOD(-0.01)[mx.yandex.ru,mx.yandex.ru,mx.yandex.ru,mx.yandex.ru,mx.yandex.ru]; NEURAL_HAM_SHORT(-0.96)[-0.961,0]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yandex.com]; ASN(0.00)[asn:13238, ipnet:2a02:6b8::/32, country:RU]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[6.0.1.0.7.b.8.0.0.0.0.0.1.4.7.2.2.7.4.1.0.0.0.0.8.b.6.0.2.0.a.2.list.dnswl.org : 127.0.5.1]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[yandex.com:s=mail]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(-1.73)[ipnet: 2a02:6b8::/32(-4.83), asn: 13238(-3.85), country: RU(0.00)]; SUBJECT_ENDS_QUESTION(1.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:08:42 -0000 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