From owner-freebsd-hackers@freebsd.org Tue Jul 16 18:07:53 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D7352B69DC for ; Tue, 16 Jul 2019 18:07:53 +0000 (UTC) (envelope-from larry.maloney@hackerdojo.com) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 57AC46D333 for ; Tue, 16 Jul 2019 18:07:53 +0000 (UTC) (envelope-from larry.maloney@hackerdojo.com) Received: by mailman.nyi.freebsd.org (Postfix) id 5575CB69D9; Tue, 16 Jul 2019 18:07:53 +0000 (UTC) Delivered-To: hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 551E4B69D8 for ; Tue, 16 Jul 2019 18:07:53 +0000 (UTC) (envelope-from larry.maloney@hackerdojo.com) Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F37496D330 for ; Tue, 16 Jul 2019 18:07:51 +0000 (UTC) (envelope-from larry.maloney@hackerdojo.com) Received: by mail-pf1-x444.google.com with SMTP id b13so9492911pfo.1 for ; Tue, 16 Jul 2019 11:07:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hackerdojo.com; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=5x7rM2jCKPCUUSBOQBoOe8IMrQgrK1h3IZCn1C9Tc/g=; b=BH67N1MJeR6b/j2AkHwRKG9WzCMP4GuaLLlJnOPCxyMHjXVuNrddOIbY0nxjpsPns9 HADF5LrHINXyTYX8iVuq8CtiF0SmEkx0Dgvbil8eQpgGjNVzOfVw1TB9iGsZDS83CIOE UGloxPMrjXwFAOOcOEI2xynCFsrz0rfJqVI5U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=5x7rM2jCKPCUUSBOQBoOe8IMrQgrK1h3IZCn1C9Tc/g=; b=kwqXWp4AACh+afP0cyp+4bggd5gjH7o6UQaD/oov+cfQCANbZwMBg32Cf8exMsMXNN XO6sHODfeXwKJecBMlqqrwdm/IoYz827ujKkVh+8PTIfclcTNBjWchSRc9JqmnkBBZjp 4z7i72nBfj/FH7hGT1cAN3K8SauzPUmdlLRbBX/UkBttu4QXvkebo07ZCKT+x1XgKEEq 8T3LoL7sflE8TqIrYiIxbjFV1OLKRjYiSfxk4xVjgCgWsxqAEMdcnxlgSDDMCNj8IozI iBQugJNAWTyi3lQYIEr1BZPmo3WMNcqOH/1Uh6ETzhaAp1VBGo114xeF2MUHkUpiGD9I rgyw== X-Gm-Message-State: APjAAAXCsflLPg6PSI0SkhSpT5nVKe57ILv9/I7kSQLzUV5Newiw7XU8 EyZXmQEhpzgkEJ3LQnI2urCcMGA3JYZcTPqp X-Google-Smtp-Source: APXvYqywjaJVRsMAfnyiwaz+SndNfOEjtV5uXAAe1ghglMCfGPzvdALJSyixpJQyH4F0I/sijRaDjA== X-Received: by 2002:a65:4786:: with SMTP id e6mr34858030pgs.448.1563300470249; Tue, 16 Jul 2019 11:07:50 -0700 (PDT) Received: from [192.168.1.140] ([73.162.69.0]) by smtp.gmail.com with ESMTPSA id m9sm39289205pgr.24.2019.07.16.11.07.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Jul 2019 11:07:48 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) Subject: Re: For a first time completed S.M.A.R.T captive test From: Larry Maloney X-Mailer: iPhone Mail (16F250) In-Reply-To: <20190716190854.000061b2@gmail.com> Date: Tue, 16 Jul 2019 11:07:47 -0700 Cc: hackers@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20190716190854.000061b2@gmail.com> To: =?utf-8?Q?Domagoj_Smol=C4=8Di=C4=87?= X-Rspamd-Queue-Id: 57AC46D333 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hackerdojo.com header.s=google header.b=BH67N1MJ; spf=softfail (mx1.freebsd.org: 2610:1c1:1:606c::50:13 is neither permitted nor denied by domain of larry.maloney@hackerdojo.com) smtp.mailfrom=larry.maloney@hackerdojo.com X-Spamd-Result: default: False [-4.11 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; FORGED_RECIPIENTS_FORWARDING(0.00)[]; FORWARDED(0.00)[hackers@mailman.nyi.freebsd.org]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; SPF_FAIL_FORWARDING(0.00)[]; R_SPF_SOFTFAIL(0.00)[~all]; DKIM_TRACE(0.00)[hackerdojo.com:+]; MX_GOOD(-0.01)[cached: alt1.aspmx.l.google.com]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.99)[-0.985,0]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-1.42)[ip: (-0.14), ipnet: 2610:1c1:1::/48(-3.90), asn: 11403(-2.99), country: US(-0.06)]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; FORGED_RECIPIENTS(0.00)[hackers@freebsd.org ..,freebsd-hackers@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.996,0]; R_DKIM_ALLOW(-0.20)[hackerdojo.com:s=google]; RCVD_COUNT_FIVE(0.00)[6]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[hackerdojo.com] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jul 2019 18:07:53 -0000 It=E2=80=99s been a while,so I could be wrong, but I seem to recall having t= o unmount the device before testing. /Larry Sent from my iPhone > On Jul 16, 2019, at 10:08 AM, Domagoj Smol=C4=8Di=C4=87 wrote: >=20 > 11.2-RELEASE-p9 >=20 > =46rom the first time I started to use FreeBSD and upon to just recently, w= ith smartmontools, I have NEVER successfully completed captive test. > No matter which HDD or smartmontools version I used, upon initiating 'Exte= nded captive' test, I would ALWAYS get error: 'Interrupted (host reset)' > This implies nothing is being mounted from device, so only it's node exist= in /dev/ and nothing "chats" with it except kernel. > Stopping smartd service also didn't help. >=20 > Searching on the internet, I have never found anyone succeeding with it. > Just a "solutions" that it should never be used?! >=20 > So I started to think a little bit out of the box ... > HDD has it's OWN board with it's OWN BIOS + firmware, which actually holds= S.M.A.R.T version/ability and IT executes issued test from OS, using it's o= wn firmware to actually run a test. > Once HDD receives test request from OS, HDD doesn't need OS at all! >=20 > So, in order to get rid of a results like: > Num Test_Description Status Remaining LifeTime(ho= urs) LBA_of_first_error > # 2 Extended captive Interrupted (host reset) 90% 40743 = - >=20 > And suspecting OS (kernel?!) is pestering HDD during it's captive test, th= us interrupting it, AS SOON as captive CMD is issued and hangs occurs (it is= too late when hang passes by itself!), I've pulled out SATA DATA cable and l= eft SATA POWER cable attached. > Hang is stopped as soon as SATA DATA cable is unplugged and it's used only= to transfer test request anyway to HDD and all HDD needs from that point on= , is JUST a power and it's "piece of mind"! > RESULT: > -- > SMART Self-test log structure revision number 1 > Num Test_Description Status Remaining LifeTime(ho= urs) LBA_of_first_error > # 1 Extended captive Completed without error 00% 40744 = - > # 2 Extended captive Interrupted (host reset) 90% 40743 = - > -- >=20 > FINALLY! =3D=3D> '# 1 Extended captive Completed without error' >=20 > So ..., what to conclude from this? > Does kernel really must "chat" with HDD in order to keep alive it's device= node in /dev/ or is it something else? > If HDD supports captive test and during it, why it simply doesn't ignore O= S/kernel (it is up to HDD's firmware code to make that decision). >=20 > Is this, I'm not even sure how to name it ..., a borderline bug? >=20 > Anyway, it is a little bit "impractical" to use terminal with one hand and= with other to pull out SATA data cable. >=20 >=20 > Domagoj Smol=C4=8Di=C4=87 > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"=