All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fabian Knorr <knorrfab@fim.uni-passau.de>
To: Phil Turmel <philip@turmel.org>
Cc: linux-raid@vger.kernel.org
Subject: Re: Recovering an Array with inconsistent Superblocks
Date: Sat, 04 Jan 2014 23:05:43 +0100	[thread overview]
Message-ID: <1388873143.7641.20.camel@vessel> (raw)
In-Reply-To: <52C835C9.3050707@turmel.org>

[-- Attachment #1: Type: text/plain, Size: 2399 bytes --]

Hi, Phil,

thank you very much for your reply.

> Side note: If you have a live spare available for a raid5, there's no
> good reason not to reshape to a raid6, and very good reasons to do so.

I was worried that RAID6 would incur a significant load on the CPU,
especially if one disk fails. The system is a single-core Intel Atom.

> Device names are not guaranteed to remain identical from one boot to
> another.  And often won't be if a removable device is plugged in at that
> time.  The linux MD driver keeps identity data in the superblock that
> makes the actual device names immaterial.
> 
> It is really important that we get a "map" of device names to drive
> serial numbers, and adjust all future operations to ensure we are
> working with the correct names.  An excerpt from "ls -l
> /dev/disk/by-id/" would do.  And you need to verify it after every boot
> until this crisis is resolved.

See the attachment "partitions". I grep'ed for raid partitions.

> 1) raid.status appears to be from *after* your --add attempts.  That
> means anything in those reports from those devices is useless.  So we
> will have to figure out what that data was.

Could it be that --add only changed the superblock of one disk,
namely /dev/sdb in file from my first e-mail?

> 2) You attempted to recreate the array.  If you left out
> "--assume-clean", your data is toast.  Please show the precise command
> line you used in your re-create attempt.  Also generate a fresh
> "raid.status" for the current situation.

The only commands I used were --add /dev/sdb, --run, --assemble --scan,
--assemble --scan --force and --stop. I didn't try to re-create it, at
least not now. Also, the timestamp from raid.status (2011) is incorrect,
the array was re-created from scratch in the summer of 2012. I can't
tell why disks other than /dev/sdb1 have an invalid superblock.

> 3) The array seems to think it's member devices were /dev/sda through
> /dev/sdh (not in that order).  Your "raid.status" has /dev/sd[abcefghi],
> suggesting a rescue usb or some such is /dev/sdd. 

Yes, that's correct.

> 4) Please describe the structure of the *content* of the array, so we
> can suggest strategies to *safely* recognize when our future attempts to
> --create --assume-clean have succeeded.  LVM?  Partitioned?  One big
> filesystem?

I'm using the array as a physical volume for LVM.

Thanks for your help.

Fabian



[-- Attachment #2: uuids --]
[-- Type: text/plain, Size: 832 bytes --]

/dev/sda1: UUID="cb5a6670-1b5d-391f-edd8-d016611227ea" TYPE="linux_raid_member" PARTUUID="000549c5-01" 
/dev/sdb1: UUID="cb5a6670-1b5d-391f-edd8-d016611227ea" TYPE="linux_raid_member" PARTUUID="0004ab8d-01" 
/dev/sdc1: UUID="cb5a6670-1b5d-391f-edd8-d016611227ea" TYPE="linux_raid_member" PARTUUID="0003ba2a-01" 
/dev/sde1: UUID="cb5a6670-1b5d-391f-edd8-d016611227ea" TYPE="linux_raid_member" PARTUUID="000f04e8-01" 
/dev/sdf1: UUID="cb5a6670-1b5d-391f-edd8-d016611227ea" TYPE="linux_raid_member" PARTUUID="0002f1df-01" 
/dev/sdg1: UUID="cb5a6670-1b5d-391f-edd8-d016611227ea" TYPE="linux_raid_member" PARTUUID="000d882d-01" 
/dev/sdh1: UUID="cb5a6670-1b5d-391f-edd8-d016611227ea" TYPE="linux_raid_member" PARTUUID="000658a7-01" 
/dev/sdi1: UUID="cb5a6670-1b5d-391f-edd8-d016611227ea" TYPE="linux_raid_member" PARTUUID="000d8fc8-01" 

[-- Attachment #3: raid.status --]
[-- Type: text/plain, Size: 10732 bytes --]

/dev/sda:
   MBR Magic : aa55
Partition[0] :   3907026944 sectors at         2048 (type 83)
/dev/sda1:
          Magic : a92b4efc
        Version : 0.90.00
           UUID : cb5a6670:1b5d391f:edd8d016:611227ea
  Creation Time : Wed Jul 13 13:47:12 2011
     Raid Level : raid5
  Used Dev Size : 1953512448 (1863.01 GiB 2000.40 GB)
     Array Size : 11721074688 (11178.09 GiB 12002.38 GB)
   Raid Devices : 7
  Total Devices : 7
Preferred Minor : 0

    Update Time : Wed Jan  1 22:51:28 2014
          State : active
 Active Devices : 7
Working Devices : 7
 Failed Devices : 0
  Spare Devices : 0
       Checksum : f430c2a6 - correct
         Events : 24433

         Layout : left-symmetric
     Chunk Size : 1024K

      Number   Major   Minor   RaidDevice State
this     4       8        1        4      active sync   /dev/sda1

   0     0       8       65        0      active sync   /dev/sde1
   1     1       8       81        1      active sync   /dev/sdf1
   2     2       8       97        2      active sync   /dev/sdg1
   3     3       8      113        3      active sync   /dev/sdh1
   4     4       8        1        4      active sync   /dev/sda1
   5     5       8       33        5      active sync   /dev/sdc1
   6     6       8       49        6      active sync   /dev/sdd1
/dev/sdb:
   MBR Magic : aa55
Partition[0] :   3907026944 sectors at         2048 (type 83)
/dev/sdb1:
          Magic : a92b4efc
        Version : 0.90.00
           UUID : cb5a6670:1b5d391f:edd8d016:611227ea
  Creation Time : Wed Jul 13 13:47:12 2011
     Raid Level : raid5
  Used Dev Size : 1953512448 (1863.01 GiB 2000.40 GB)
     Array Size : 11721074688 (11178.09 GiB 12002.38 GB)
   Raid Devices : 7
  Total Devices : 8
Preferred Minor : 0

    Update Time : Sun Oct 27 15:00:43 2013
          State : active
 Active Devices : 7
Working Devices : 8
 Failed Devices : 0
  Spare Devices : 1
       Checksum : f3d95119 - correct
         Events : 24319

         Layout : left-symmetric
     Chunk Size : 1024K

      Number   Major   Minor   RaidDevice State
this     4       8       17        4      active sync   /dev/sdb1

   0     0       8       65        0      active sync   /dev/sde1
   1     1       8       81        1      active sync   /dev/sdf1
   2     2       8       97        2      active sync   /dev/sdg1
   3     3       8      113        3      active sync   /dev/sdh1
   4     4       8       17        4      active sync   /dev/sdb1
   5     5       8       33        5      active sync   /dev/sdc1
   6     6       8       49        6      active sync   /dev/sdd1
   7     7       8        1        7      spare   /dev/sda1
/dev/sdc:
   MBR Magic : aa55
Partition[0] :   3907026944 sectors at         2048 (type 83)
/dev/sdc1:
          Magic : a92b4efc
        Version : 0.90.00
           UUID : cb5a6670:1b5d391f:edd8d016:611227ea
  Creation Time : Wed Jul 13 13:47:12 2011
     Raid Level : raid5
  Used Dev Size : 1953512448 (1863.01 GiB 2000.40 GB)
     Array Size : 11721074688 (11178.09 GiB 12002.38 GB)
   Raid Devices : 7
  Total Devices : 7
Preferred Minor : 0

    Update Time : Wed Jan  1 22:51:28 2014
          State : active
 Active Devices : 7
Working Devices : 7
 Failed Devices : 0
  Spare Devices : 0
       Checksum : f430c2c8 - correct
         Events : 24433

         Layout : left-symmetric
     Chunk Size : 1024K

      Number   Major   Minor   RaidDevice State
this     5       8       33        5      active sync   /dev/sdc1

   0     0       8       65        0      active sync   /dev/sde1
   1     1       8       81        1      active sync   /dev/sdf1
   2     2       8       97        2      active sync   /dev/sdg1
   3     3       8      113        3      active sync   /dev/sdh1
   4     4       8        1        4      active sync   /dev/sda1
   5     5       8       33        5      active sync   /dev/sdc1
   6     6       8       49        6      active sync   /dev/sdd1
/dev/sdd:
   MBR Magic : aa55
Partition[0] :      1001472 sectors at         2048 (type 83)
/dev/sde:
   MBR Magic : aa55
Partition[0] :   3907026944 sectors at         2048 (type 83)
/dev/sde1:
          Magic : a92b4efc
        Version : 0.90.00
           UUID : cb5a6670:1b5d391f:edd8d016:611227ea
  Creation Time : Wed Jul 13 13:47:12 2011
     Raid Level : raid5
  Used Dev Size : 1953512448 (1863.01 GiB 2000.40 GB)
     Array Size : 11721074688 (11178.09 GiB 12002.38 GB)
   Raid Devices : 7
  Total Devices : 7
Preferred Minor : 0

    Update Time : Wed Jan  1 22:51:28 2014
          State : active
 Active Devices : 7
Working Devices : 7
 Failed Devices : 0
  Spare Devices : 0
       Checksum : f430c2da - correct
         Events : 24433

         Layout : left-symmetric
     Chunk Size : 1024K

      Number   Major   Minor   RaidDevice State
this     6       8       49        6      active sync   /dev/sdd1

   0     0       8       65        0      active sync   /dev/sde1
   1     1       8       81        1      active sync   /dev/sdf1
   2     2       8       97        2      active sync   /dev/sdg1
   3     3       8      113        3      active sync   /dev/sdh1
   4     4       8        1        4      active sync   /dev/sda1
   5     5       8       33        5      active sync   /dev/sdc1
   6     6       8       49        6      active sync   /dev/sdd1
/dev/sdf:
   MBR Magic : aa55
Partition[0] :   3907026944 sectors at         2048 (type 83)
/dev/sdf1:
          Magic : a92b4efc
        Version : 0.90.00
           UUID : cb5a6670:1b5d391f:edd8d016:611227ea
  Creation Time : Wed Jul 13 13:47:12 2011
     Raid Level : raid5
  Used Dev Size : 1953512448 (1863.01 GiB 2000.40 GB)
     Array Size : 11721074688 (11178.09 GiB 12002.38 GB)
   Raid Devices : 7
  Total Devices : 7
Preferred Minor : 0

    Update Time : Wed Jan  1 22:55:03 2014
          State : clean
 Active Devices : 4
Working Devices : 4
 Failed Devices : 3
  Spare Devices : 0
       Checksum : f43123f2 - correct
         Events : 24506

         Layout : left-symmetric
     Chunk Size : 1024K

      Number   Major   Minor   RaidDevice State
this     0       8       65        0      active sync   /dev/sde1

   0     0       8       65        0      active sync   /dev/sde1
   1     1       8       81        1      active sync   /dev/sdf1
   2     2       8       97        2      active sync   /dev/sdg1
   3     3       8      113        3      active sync   /dev/sdh1
   4     4       0        0        4      faulty removed
   5     5       0        0        5      faulty removed
   6     6       0        0        6      faulty removed
/dev/sdg:
   MBR Magic : aa55
Partition[0] :   3907026944 sectors at         2048 (type 83)
/dev/sdg1:
          Magic : a92b4efc
        Version : 0.90.00
           UUID : cb5a6670:1b5d391f:edd8d016:611227ea
  Creation Time : Wed Jul 13 13:47:12 2011
     Raid Level : raid5
  Used Dev Size : 1953512448 (1863.01 GiB 2000.40 GB)
     Array Size : 11721074688 (11178.09 GiB 12002.38 GB)
   Raid Devices : 7
  Total Devices : 7
Preferred Minor : 0

    Update Time : Wed Jan  1 22:55:03 2014
          State : clean
 Active Devices : 4
Working Devices : 4
 Failed Devices : 3
  Spare Devices : 0
       Checksum : f4312404 - correct
         Events : 24506

         Layout : left-symmetric
     Chunk Size : 1024K

      Number   Major   Minor   RaidDevice State
this     1       8       81        1      active sync   /dev/sdf1

   0     0       8       65        0      active sync   /dev/sde1
   1     1       8       81        1      active sync   /dev/sdf1
   2     2       8       97        2      active sync   /dev/sdg1
   3     3       8      113        3      active sync   /dev/sdh1
   4     4       0        0        4      faulty removed
   5     5       0        0        5      faulty removed
   6     6       0        0        6      faulty removed
/dev/sdh:
   MBR Magic : aa55
Partition[0] :   3907026944 sectors at         2048 (type 83)
/dev/sdh1:
          Magic : a92b4efc
        Version : 0.90.00
           UUID : cb5a6670:1b5d391f:edd8d016:611227ea
  Creation Time : Wed Jul 13 13:47:12 2011
     Raid Level : raid5
  Used Dev Size : 1953512448 (1863.01 GiB 2000.40 GB)
     Array Size : 11721074688 (11178.09 GiB 12002.38 GB)
   Raid Devices : 7
  Total Devices : 7
Preferred Minor : 0

    Update Time : Wed Jan  1 22:55:03 2014
          State : clean
 Active Devices : 4
Working Devices : 4
 Failed Devices : 3
  Spare Devices : 0
       Checksum : f4312416 - correct
         Events : 24506

         Layout : left-symmetric
     Chunk Size : 1024K

      Number   Major   Minor   RaidDevice State
this     2       8       97        2      active sync   /dev/sdg1

   0     0       8       65        0      active sync   /dev/sde1
   1     1       8       81        1      active sync   /dev/sdf1
   2     2       8       97        2      active sync   /dev/sdg1
   3     3       8      113        3      active sync   /dev/sdh1
   4     4       0        0        4      faulty removed
   5     5       0        0        5      faulty removed
   6     6       0        0        6      faulty removed
/dev/sdi:
   MBR Magic : aa55
Partition[0] :   3907026944 sectors at         2048 (type 83)
/dev/sdi1:
          Magic : a92b4efc
        Version : 0.90.00
           UUID : cb5a6670:1b5d391f:edd8d016:611227ea
  Creation Time : Wed Jul 13 13:47:12 2011
     Raid Level : raid5
  Used Dev Size : 1953512448 (1863.01 GiB 2000.40 GB)
     Array Size : 11721074688 (11178.09 GiB 12002.38 GB)
   Raid Devices : 7
  Total Devices : 7
Preferred Minor : 0

    Update Time : Wed Jan  1 22:55:03 2014
          State : clean
 Active Devices : 4
Working Devices : 4
 Failed Devices : 3
  Spare Devices : 0
       Checksum : f4312428 - correct
         Events : 24506

         Layout : left-symmetric
     Chunk Size : 1024K

      Number   Major   Minor   RaidDevice State
this     3       8      113        3      active sync   /dev/sdh1

   0     0       8       65        0      active sync   /dev/sde1
   1     1       8       81        1      active sync   /dev/sdf1
   2     2       8       97        2      active sync   /dev/sdg1
   3     3       8      113        3      active sync   /dev/sdh1
   4     4       0        0        4      faulty removed
   5     5       0        0        5      faulty removed
   6     6       0        0        6      faulty removed
/dev/sdj:
   MBR Magic : aa55
Partition[0] :      1069056 sectors at            0 (type 00)
Partition[1] :        63488 sectors at        95576 (type ef)
/dev/sdj1:
   MBR Magic : aa55
Partition[0] :      1069056 sectors at            0 (type 00)
Partition[1] :        63488 sectors at        95576 (type ef)
/dev/sdj2:
   MBR Magic : aa55

  parent reply	other threads:[~2014-01-04 22:05 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-04 10:04 Recovering an Array with inconsistent Superblocks Fabian Knorr
2014-01-04 16:24 ` Phil Turmel
2014-01-04 17:59   ` Can Jeuleers
2014-01-04 19:16     ` Phil Turmel
2014-01-04 22:05   ` Fabian Knorr [this message]
2014-01-05  2:32     ` Phil Turmel
2014-01-05  9:07       ` Fabian Knorr
2014-01-05  9:56         ` NeilBrown
2014-01-05 10:40           ` Fabian Knorr
     [not found]           ` <1388918703.3591.20.camel@vessel>
2014-01-05 18:25             ` Phil Turmel
2014-01-05 23:50               ` NeilBrown
2014-01-06 14:00               ` Fabian Knorr
2014-01-07  0:26                 ` NeilBrown
2014-01-14  8:54     ` David Brown
2014-01-04 22:08   ` Fabian Knorr

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=1388873143.7641.20.camel@vessel \
    --to=knorrfab@fim.uni-passau.de \
    --cc=linux-raid@vger.kernel.org \
    --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.