All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Shenkin <al@shenkin.org>
To: Brad Campbell <lists2009@fnarfbargle.com>,
	Phil Turmel <philip@turmel.org>,
	Reindl Harald <h.reindl@thelounge.net>,
	Edward Kuns <eddie.kuns@gmail.com>,
	Mark Knecht <markknecht@gmail.com>
Cc: Wols Lists <antlists@youngman.org.uk>,
	Carsten Aulbert <carsten.aulbert@aei.mpg.de>,
	Linux-RAID <linux-raid@vger.kernel.org>
Subject: Re: SMART detects pending sectors; take offline?
Date: Thu, 4 Jan 2018 13:39:24 +0000	[thread overview]
Message-ID: <cd34964a-e269-6dd7-3c36-73a9c8dbb61d@shenkin.org> (raw)
In-Reply-To: <97c75be5-1988-0e66-0d50-f06188418b3b@fnarfbargle.com>

On 1/4/2018 1:16 PM, Brad Campbell wrote:>
> Damn. I saw your initial mail, but I was out and nowhere near a device I 
> could use to reply sensibly.
> You should *really* check by looking at the mdadm --examine output and 
> calculating the position of the sectors in question to be absolutely 
> sure the area you just wrote over was not in the active array area. If 
> it was then you should stop the checkarray *now* and come back for advice.

Thanks Brad, no worries, really appreciate your attention.  I stopped 
checkarray.  It had one rebuild event (Rebuild99) in /dev/md0 (small 
RAID1, where /boot is mounted) before I stopped it.  Here's the examine 
output (not really sure what to do with it, will wait for advice):

user@machinename:~$ sudo mdadm --examine /dev/sd*
/dev/sda:
    MBR Magic : aa55
Partition[0] :   4294967295 sectors at            1 (type ee)
/dev/sda1:
           Magic : a92b4efc
         Version : 1.2
     Feature Map : 0x0
      Array UUID : 437e4abb:c7ac46f1:ef8b2976:94921060
            Name : arrayname:0
   Creation Time : Mon Dec  7 08:31:31 2015
      Raid Level : raid1
    Raid Devices : 4

  Avail Dev Size : 3901440 (1905.32 MiB 1997.54 MB)
      Array Size : 1950656 (1905.26 MiB 1997.47 MB)
   Used Dev Size : 3901312 (1905.26 MiB 1997.47 MB)
     Data Offset : 2048 sectors
    Super Offset : 8 sectors
           State : clean
     Device UUID : 9cb1890b:ad675b3b:7517467f:0780ec8e

     Update Time : Thu Jan  4 12:00:45 2018
        Checksum : 682930c3 - correct
          Events : 215


    Device Role : Active device 0
    Array State : AAAA ('A' == active, '.' == missing)
mdadm: No md superblock detected on /dev/sda2.
/dev/sda3:
           Magic : a92b4efc
         Version : 1.2
     Feature Map : 0x1
      Array UUID : c7303f62:d848d424:269581c8:83a045ec
            Name : ubuntu:2
   Creation Time : Sun Feb  5 23:39:58 2017
      Raid Level : raid5
    Raid Devices : 4

  Avail Dev Size : 5840377856 (2784.91 GiB 2990.27 GB)
      Array Size : 8760566784 (8354.73 GiB 8970.82 GB)
     Data Offset : 262144 sectors
    Super Offset : 8 sectors
           State : clean
     Device UUID : 64c8db38:3d0a6895:be2259d8:4c3c3542

Internal Bitmap : 8 sectors from superblock
     Update Time : Thu Jan  4 13:34:53 2018
        Checksum : d9775efa - correct
          Events : 81186

          Layout : left-symmetric
      Chunk Size : 512K

    Device Role : Active device 0
    Array State : AAAA ('A' == active, '.' == missing)
mdadm: No md superblock detected on /dev/sda4.
/dev/sdb:
    MBR Magic : aa55
Partition[0] :   4294967295 sectors at            1 (type ee)
/dev/sdb1:
           Magic : a92b4efc
         Version : 1.2
     Feature Map : 0x0
      Array UUID : 437e4abb:c7ac46f1:ef8b2976:94921060
            Name : arrayname:0
   Creation Time : Mon Dec  7 08:31:31 2015
      Raid Level : raid1
    Raid Devices : 4

  Avail Dev Size : 3901440 (1905.32 MiB 1997.54 MB)
      Array Size : 1950656 (1905.26 MiB 1997.47 MB)
   Used Dev Size : 3901312 (1905.26 MiB 1997.47 MB)
     Data Offset : 2048 sectors
    Super Offset : 8 sectors
           State : clean
     Device UUID : 38999554:d1b0db8d:d8066e72:86865c31

     Update Time : Thu Jan  4 12:00:45 2018
        Checksum : 995557b1 - correct
          Events : 215


    Device Role : Active device 2
    Array State : AAAA ('A' == active, '.' == missing)
mdadm: No md superblock detected on /dev/sdb2.
/dev/sdb3:
           Magic : a92b4efc
         Version : 1.2
     Feature Map : 0x1
      Array UUID : c7303f62:d848d424:269581c8:83a045ec
            Name : ubuntu:2
   Creation Time : Sun Feb  5 23:39:58 2017
      Raid Level : raid5
    Raid Devices : 4

  Avail Dev Size : 5840377856 (2784.91 GiB 2990.27 GB)
      Array Size : 8760566784 (8354.73 GiB 8970.82 GB)
     Data Offset : 262144 sectors
    Super Offset : 8 sectors
           State : clean
     Device UUID : cf70dad5:0c9ff5f6:ede689f2:ccee2eb0

Internal Bitmap : 8 sectors from superblock
     Update Time : Thu Jan  4 13:34:53 2018
        Checksum : 602e12e9 - correct
          Events : 81186

          Layout : left-symmetric
      Chunk Size : 512K

    Device Role : Active device 1
    Array State : AAAA ('A' == active, '.' == missing)
mdadm: No md superblock detected on /dev/sdb4.
/dev/sdc:
    MBR Magic : aa55
Partition[0] :   4294967295 sectors at            1 (type ee)
/dev/sdc1:
           Magic : a92b4efc
         Version : 1.2
     Feature Map : 0x0
      Array UUID : 437e4abb:c7ac46f1:ef8b2976:94921060
            Name : arrayname:0
   Creation Time : Mon Dec  7 08:31:31 2015
      Raid Level : raid1
    Raid Devices : 4

  Avail Dev Size : 3901440 (1905.32 MiB 1997.54 MB)
      Array Size : 1950656 (1905.26 MiB 1997.47 MB)
   Used Dev Size : 3901312 (1905.26 MiB 1997.47 MB)
     Data Offset : 2048 sectors
    Super Offset : 8 sectors
           State : clean
     Device UUID : f162eae5:19f8926b:f5bb6a2a:8adbbefd

     Update Time : Thu Jan  4 12:00:45 2018
        Checksum : 8cb8728a - correct
          Events : 215


    Device Role : Active device 3
    Array State : AAAA ('A' == active, '.' == missing)
mdadm: No md superblock detected on /dev/sdc2.
/dev/sdc3:
           Magic : a92b4efc
         Version : 1.2
     Feature Map : 0x1
      Array UUID : c7303f62:d848d424:269581c8:83a045ec
            Name : ubuntu:2
   Creation Time : Sun Feb  5 23:39:58 2017
      Raid Level : raid5
    Raid Devices : 4

  Avail Dev Size : 5840377856 (2784.91 GiB 2990.27 GB)
      Array Size : 8760566784 (8354.73 GiB 8970.82 GB)
     Data Offset : 262144 sectors
    Super Offset : 8 sectors
           State : clean
     Device UUID : f8839952:eaba2e9c:c2c401d4:3e0592a5

Internal Bitmap : 8 sectors from superblock
     Update Time : Thu Jan  4 13:34:53 2018
        Checksum : 59013634 - correct
          Events : 81186

          Layout : left-symmetric
      Chunk Size : 512K

    Device Role : Active device 2
    Array State : AAAA ('A' == active, '.' == missing)
mdadm: No md superblock detected on /dev/sdc4.
/dev/sdd:
    MBR Magic : aa55
Partition[0] :   4294967295 sectors at            1 (type ee)
/dev/sdd1:
           Magic : a92b4efc
         Version : 1.2
     Feature Map : 0x0
      Array UUID : 437e4abb:c7ac46f1:ef8b2976:94921060
            Name : arrayname:0
   Creation Time : Mon Dec  7 08:31:31 2015
      Raid Level : raid1
    Raid Devices : 4

  Avail Dev Size : 3901440 (1905.32 MiB 1997.54 MB)
      Array Size : 1950656 (1905.26 MiB 1997.47 MB)
   Used Dev Size : 3901312 (1905.26 MiB 1997.47 MB)
     Data Offset : 2048 sectors
    Super Offset : 8 sectors
           State : clean
     Device UUID : 4823f0b8:8e0d3ac3:e312c219:29f76622

     Update Time : Thu Jan  4 12:00:45 2018
        Checksum : cb64bae5 - correct
          Events : 215


    Device Role : Active device 1
    Array State : AAAA ('A' == active, '.' == missing)
mdadm: No md superblock detected on /dev/sdd2.
/dev/sdd3:
           Magic : a92b4efc
         Version : 1.2
     Feature Map : 0x1
      Array UUID : c7303f62:d848d424:269581c8:83a045ec
            Name : ubuntu:2
   Creation Time : Sun Feb  5 23:39:58 2017
      Raid Level : raid5
    Raid Devices : 4

  Avail Dev Size : 5840377856 (2784.91 GiB 2990.27 GB)
      Array Size : 8760566784 (8354.73 GiB 8970.82 GB)
     Data Offset : 262144 sectors
    Super Offset : 8 sectors
           State : clean
     Device UUID : 875a0dbd:965a9986:1b78eb3d:e15fee50

Internal Bitmap : 8 sectors from superblock
     Update Time : Thu Jan  4 13:34:53 2018
        Checksum : c325ba6d - correct
          Events : 81186

          Layout : left-symmetric
      Chunk Size : 512K

    Device Role : Active device 3
    Array State : AAAA ('A' == active, '.' == missing)
mdadm: No md superblock detected on /dev/sdd4.




Here's mdadm --detail if needed:

user@machinename:~$ sudo mdadm --detail /dev/md2
/dev/md2:
         Version : 1.2
   Creation Time : Sun Feb  5 23:39:58 2017
      Raid Level : raid5
      Array Size : 8760566784 (8354.73 GiB 8970.82 GB)
   Used Dev Size : 2920188928 (2784.91 GiB 2990.27 GB)
    Raid Devices : 4
   Total Devices : 4
     Persistence : Superblock is persistent

   Intent Bitmap : Internal

     Update Time : Thu Jan  4 13:31:21 2018
           State : clean
  Active Devices : 4
Working Devices : 4
  Failed Devices : 0
   Spare Devices : 0

          Layout : left-symmetric
      Chunk Size : 512K

            Name : ubuntu:2
            UUID : c7303f62:d848d424:269581c8:83a045ec
          Events : 81186

     Number   Major   Minor   RaidDevice State
        0       8        3        0      active sync   /dev/sda3
        4       8       19        1      active sync   /dev/sdb3
        2       8       35        2      active sync   /dev/sdc3
        5       8       51        3      active sync   /dev/sdd3

user@machinename:~$ sudo mdadm --detail /dev/md0
/dev/md0:
         Version : 1.2
   Creation Time : Mon Dec  7 08:31:31 2015
      Raid Level : raid1
      Array Size : 1950656 (1905.26 MiB 1997.47 MB)
   Used Dev Size : 1950656 (1905.26 MiB 1997.47 MB)
    Raid Devices : 4
   Total Devices : 4
     Persistence : Superblock is persistent

     Update Time : Thu Jan  4 12:00:45 2018
           State : clean
  Active Devices : 4
Working Devices : 4
  Failed Devices : 0
   Spare Devices : 0

            Name : arrayname:0
            UUID : 437e4abb:c7ac46f1:ef8b2976:94921060
          Events : 215

     Number   Major   Minor   RaidDevice State
        0       8        1        0      active sync   /dev/sda1
        5       8       49        1      active sync   /dev/sdd1
        4       8       17        2      active sync   /dev/sdb1
        2       8       33        3      active sync   /dev/sdc1

  reply	other threads:[~2018-01-04 13:39 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-07  7:48 SMART detects pending sectors; take offline? Alexander Shenkin
2017-10-07  8:21 ` Carsten Aulbert
2017-10-07 10:05   ` Alexander Shenkin
2017-10-07 17:29     ` Wols Lists
2017-10-08  9:19       ` Alexander Shenkin
2017-10-08  9:49         ` Wols Lists
2017-10-09 20:16   ` Phil Turmel
2017-10-10  9:00     ` Alexander Shenkin
2017-10-10  9:11       ` Reindl Harald
2017-10-10  9:56         ` Alexander Shenkin
2017-10-10 12:55           ` Phil Turmel
2017-10-11 10:31             ` Alexander Shenkin
2017-10-11 17:10               ` Phil Turmel
2017-10-12  9:50                 ` Alexander Shenkin
2017-10-12 11:01                   ` Wols Lists
2017-10-12 13:04                     ` Phil Turmel
2017-10-12 13:16                       ` Alexander Shenkin
2017-10-12 13:21                         ` Mark Knecht
2017-10-12 15:16                           ` Edward Kuns
2017-10-12 15:52                             ` Edward Kuns
2017-10-15 14:41                               ` Alexander Shenkin
2017-12-18 15:51                               ` Alexander Shenkin
2017-12-18 16:09                                 ` Phil Turmel
2017-12-19 10:35                                   ` Alexander Shenkin
2017-12-19 12:02                                     ` Phil Turmel
2017-12-21 11:28                                       ` Alexander Shenkin
2017-12-21 11:38                                         ` Reindl Harald
2017-12-23  3:14                                           ` Brad Campbell
2018-01-03 12:44                                             ` Alexander Shenkin
2018-01-03 13:26                                               ` Brad Campbell
2018-01-03 13:50                                                 ` Alexander Shenkin
2018-01-03 15:53                                                   ` Phil Turmel
2018-01-03 15:59                                                     ` Alexander Shenkin
2018-01-03 16:02                                                       ` Phil Turmel
2018-01-04 10:37                                                         ` Alexander Shenkin
2018-01-04 12:28                                                           ` Alexander Shenkin
2018-01-04 13:16                                                             ` Brad Campbell
2018-01-04 13:39                                                               ` Alexander Shenkin [this message]
2018-01-05  5:20                                                                 ` Brad Campbell
2018-01-05  5:25                                                                   ` Brad Campbell
2018-01-05 10:10                                                                     ` Alexander Shenkin
2018-01-05 10:32                                                                       ` Brad Campbell
2018-01-05 13:50                                                                       ` Phil Turmel
2018-01-05 14:01                                                                         ` Alexander Shenkin
2018-01-05 15:59                                                                         ` Wols Lists
2017-10-12 15:19                   ` Kai Stian Olstad
2017-10-10 22:23           ` josh
2017-10-11  6:23             ` Alexander Shenkin
2017-10-10  9:21       ` Wols Lists

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=cd34964a-e269-6dd7-3c36-73a9c8dbb61d@shenkin.org \
    --to=al@shenkin.org \
    --cc=antlists@youngman.org.uk \
    --cc=carsten.aulbert@aei.mpg.de \
    --cc=eddie.kuns@gmail.com \
    --cc=h.reindl@thelounge.net \
    --cc=linux-raid@vger.kernel.org \
    --cc=lists2009@fnarfbargle.com \
    --cc=markknecht@gmail.com \
    --cc=philip@turmel.org \
    /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.