Comment 18 for bug 573477

Revision history for this message
James Cuzella (trinitronx) wrote :

Today it failed to mount on boot once again. I pressed "S" to skip mounting, and upon trying to mount it manually, I get:

trinitronx@saturn:~$ sudo mount /media/terabyte
mount: /dev/md0: can't read superblock
trinitronx@saturn:~$ cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md_d0 : inactive sda1[0](S)
      732571904 blocks

md0 : inactive sdb1[1](S) sdc1[2](S) sdd1[3](S)
      2197715712 blocks

unused devices: <none>

.....Ok... so now it's putting one of my drives on md_d0 again??? Why?

Apparently ubuntu is bringing up the drives in the WRONG ORDER! All drives [a-d] are now 1 letter incremented in the alphabet. (ie: ubuntu thinks sdb1 should be called sda1, sdc1 should be called sdb1, etc...) I'm not sure which drive it thinks is sde now, because it says there's no superblock on it.

How can I fix it's mistake?

Debug info below:
-----------------------------------------------------------

trinitronx@saturn:~$ sudo mdadm --detail /dev/md0
mdadm: md device /dev/md0 does not appear to be active.
trinitronx@saturn:~$ sudo mdadm --detail /dev/md_d0
mdadm: md device /dev/md_d0 does not appear to be active.
trinitronx@saturn:~$ sudo mdadm --examine /dev/sda1
/dev/sda1:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : 7a0e5ba8:669595fc:852484a6:e390a598 (local to host saturn)
  Creation Time : Fri Jan 9 03:40:39 2009
     Raid Level : raid5
  Used Dev Size : 732571904 (698.64 GiB 750.15 GB)
     Array Size : 2197715712 (2095.91 GiB 2250.46 GB)
   Raid Devices : 4
  Total Devices : 4
Preferred Minor : 0

    Update Time : Thu Jul 1 00:34:29 2010
          State : clean
 Active Devices : 4
Working Devices : 4
 Failed Devices : 0
  Spare Devices : 0
       Checksum : b3c7801c - correct
         Events : 148755

         Layout : left-symmetric
     Chunk Size : 64K

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

   0 0 8 17 0 active sync /dev/sdb1
   1 1 8 33 1 active sync /dev/sdc1
   2 2 8 49 2 active sync /dev/sdd1
   3 3 8 65 3 active sync /dev/sde1
trinitronx@saturn:~$ sudo mdadm --examine /dev/sdb1
/dev/sdb1:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : 7a0e5ba8:669595fc:852484a6:e390a598 (local to host saturn)
  Creation Time : Fri Jan 9 03:40:39 2009
     Raid Level : raid5
  Used Dev Size : 732571904 (698.64 GiB 750.15 GB)
     Array Size : 2197715712 (2095.91 GiB 2250.46 GB)
   Raid Devices : 4
  Total Devices : 4
Preferred Minor : 0

    Update Time : Thu Jul 1 00:34:29 2010
          State : clean
 Active Devices : 4
Working Devices : 4
 Failed Devices : 0
  Spare Devices : 0
       Checksum : b3c7802e - correct
         Events : 148755

         Layout : left-symmetric
     Chunk Size : 64K

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

   0 0 8 17 0 active sync /dev/sdb1
   1 1 8 33 1 active sync /dev/sdc1
   2 2 8 49 2 active sync /dev/sdd1
   3 3 8 65 3 active sync /dev/sde1
trinitronx@saturn:~$ sudo mdadm --examine /dev/sdc1
/dev/sdc1:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : 7a0e5ba8:669595fc:852484a6:e390a598 (local to host saturn)
  Creation Time : Fri Jan 9 03:40:39 2009
     Raid Level : raid5
  Used Dev Size : 732571904 (698.64 GiB 750.15 GB)
     Array Size : 2197715712 (2095.91 GiB 2250.46 GB)
   Raid Devices : 4
  Total Devices : 4
Preferred Minor : 0

    Update Time : Thu Jul 1 00:34:29 2010
          State : clean
 Active Devices : 4
Working Devices : 4
 Failed Devices : 0
  Spare Devices : 0
       Checksum : b3c78040 - correct
         Events : 148755

         Layout : left-symmetric
     Chunk Size : 64K

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

   0 0 8 17 0 active sync /dev/sdb1
   1 1 8 33 1 active sync /dev/sdc1
   2 2 8 49 2 active sync /dev/sdd1
   3 3 8 65 3 active sync /dev/sde1
trinitronx@saturn:~$ sudo mdadm --examine /dev/sdd1
/dev/sdd1:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : 7a0e5ba8:669595fc:852484a6:e390a598 (local to host saturn)
  Creation Time : Fri Jan 9 03:40:39 2009
     Raid Level : raid5
  Used Dev Size : 732571904 (698.64 GiB 750.15 GB)
     Array Size : 2197715712 (2095.91 GiB 2250.46 GB)
   Raid Devices : 4
  Total Devices : 4
Preferred Minor : 0

    Update Time : Thu Jul 1 00:34:29 2010
          State : clean
 Active Devices : 4
Working Devices : 4
 Failed Devices : 0
  Spare Devices : 0
       Checksum : b3c78052 - correct
         Events : 148755

         Layout : left-symmetric
     Chunk Size : 64K

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

   0 0 8 17 0 active sync /dev/sdb1
   1 1 8 33 1 active sync /dev/sdc1
   2 2 8 49 2 active sync /dev/sdd1
   3 3 8 65 3 active sync /dev/sde1
trinitronx@saturn:~$ sudo mdadm --examine /dev/sde1
mdadm: No md superblock detected on /dev/sde1.