All of lore.kernel.org
 help / color / mirror / Atom feed
From: Brad Campbell <lists2009@fnarfbargle.com>
To: Edward Kuns <eddie.kuns@gmail.com>,
	Wols Lists <antlists@youngman.org.uk>
Cc: Andreas Klauer <Andreas.Klauer@metamorpher.de>,
	smartmontools-support@listi.jpberlin.de,
	Linux-RAID <linux-raid@vger.kernel.org>
Subject: Re: mdadm stuck at 0% reshape after grow
Date: Thu, 14 Dec 2017 20:43:23 +0800	[thread overview]
Message-ID: <65201272-bc96-65cc-9888-3163aaebbb2f@fnarfbargle.com> (raw)
In-Reply-To: <CACsGCyQ1vSy9f-uPc7X_m09AN1-Og_A3_eT0S=dbjBKE=R+RNA@mail.gmail.com>

On 09/12/17 08:20, Edward Kuns wrote:
> On Thu, Dec 7, 2017 at 5:40 PM, Wols Lists <antlists@youngman.org.uk> wrote:
>> But if this is true, for a drive that doesn't support sct (I don't have
>> one to test), the command will fail but return 0!!! So the script
>> doesn't realise anything is wrong, doesn't fix the defaults, and leaves
>> the raid array in the dangerous situation where linux will time out long
>> before the drive does.
>>
>> So does smartctl return 0 if the drive doesn't support sct? If so why?
>> And what's the easiest way to detect such a drive if so?
> 
> I can reproduce this on a Samsung 830 SSD (released in 2011, probably
> purchased in 2012).  I also have an 840 Pro SSD which does not have
> this problem -- it fully supports SCTERC being set.  I don't know how
> representative of SSD models these two are, but that gives a time
> frame for this support appearing in SSD drives.

I can go with that. I wrote that script snippet, and yes on my box with 
3 Samsung 830 drives it reports them as good. I never bothered to check 
whether it was valid as I really only cared about setting the correct 
values for the spinning disks.

root@srv:~# smartctl -x /dev/sdc | egrep '(Device Model|SCT)'
Device Model:     SAMSUNG SSD 830 Series
SCT Commands not supported

I never claimed it was perfect, just "good enough for me(tm)".

I only had 40 or 50 disks of about 3 different manufacturer and 5 
different model to test with, so my sample space was pretty low.

Brad.

  reply	other threads:[~2017-12-14 12:43 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-05  9:41 mdadm stuck at 0% reshape after grow Jeremy Graham
2017-12-05 10:56 ` Wols Lists
2017-12-05 15:49   ` Nix
2017-12-05 15:55 ` 002
2017-12-06  2:51   ` Phil Turmel
2017-12-06  4:33     ` Jeremy Graham
2017-12-06  7:36       ` Jeremy Graham
2017-12-06 13:34         ` Wols Lists
2017-12-06 14:02         ` 002
2017-12-06 10:49       ` Andreas Klauer
2017-12-06 14:15         ` Phil Turmel
2017-12-06 16:03           ` Andreas Klauer
2017-12-06 16:21             ` Phil Turmel
2017-12-06 18:24               ` 002
2017-12-07  8:40                 ` Jeremy Graham
2017-12-06 20:19               ` Edward Kuns
2017-12-07 10:26                 ` Wols Lists
2017-12-07 13:58                 ` Andreas Klauer
2017-12-07 17:06                   ` Wols Lists
2017-12-07 17:40                   ` Andreas Klauer
2017-12-07 20:31                     ` Wols Lists
2017-12-07 23:40                     ` Wols Lists
2017-12-08  1:25                       ` 002
2017-12-09  0:20                       ` Edward Kuns
2017-12-14 12:43                         ` Brad Campbell [this message]
2017-12-14 17:32                           ` Edward Kuns

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=65201272-bc96-65cc-9888-3163aaebbb2f@fnarfbargle.com \
    --to=lists2009@fnarfbargle.com \
    --cc=Andreas.Klauer@metamorpher.de \
    --cc=antlists@youngman.org.uk \
    --cc=eddie.kuns@gmail.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=smartmontools-support@listi.jpberlin.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.