linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* power outage while raid5->raid6 was in progress
@ 2010-07-07 20:41 Sebastian Reichel
  2010-07-07 22:44 ` Neil Brown
  0 siblings, 1 reply; 8+ messages in thread
From: Sebastian Reichel @ 2010-07-07 20:41 UTC (permalink / raw)
  To: linux-raid

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

Hi,

I have some problems with my raid. I tried updating from 5 disks raid5 to 8 disks
raid6 as described on http://neil.brown.name/blog/20090817000931#2. The command I
used was: mdadm --grow /dev/md0 --level=6 --raid-disk=8

While the rebuild was in progress my system hung, so I had to force power down it.
After rebooting the system I reassembled the raid. You can see the resulting mess
below. How can I recover from this state?

root@mars ~ # mdadm -Af /dev/md0
mdadm: failed to RUN_ARRAY /dev/md0: Input/output error
root@mars ~ # cat /proc/mdstat 
Personalities : [raid6] [raid5] [raid4] 
md0 : inactive sdk1[0] sdh1[8](S) sdg1[7](S) sdf1[6](S) sdi1[4] sdj1[3] sdl1[2] sde1[1]
      11721087488 blocks
       
md1 : active raid5 sdb1[0] sdd1[2] sdc1[1]
      1953519872 blocks level 5, 64k chunk, algorithm 2 [3/3] [UUU]
      
unused devices: <none>
root@mars ~ # mdadm -D /dev/md0
/dev/md0:
        Version : 0.90
  Creation Time : Fri Apr  9 19:24:51 2010
     Raid Level : raid6
  Used Dev Size : 1465135936 (1397.26 GiB 1500.30 GB)
   Raid Devices : 6
  Total Devices : 8
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Wed Jul  7 00:21:00 2010
          State : active, degraded, Not Started
 Active Devices : 5
Working Devices : 8
 Failed Devices : 0
  Spare Devices : 3

         Layout : left-symmetric-6
     Chunk Size : 64K

           UUID : a1eb26ff:0d33b804:1c7aa044:e01dc78c (local to host mars)
         Events : 0.991518

    Number   Major   Minor   RaidDevice State
       0       8      161        0      active sync   /dev/sdk1
       1       8       65        1      active sync   /dev/sde1
       2       8      177        2      active sync   /dev/sdl1
       3       8      145        3      active sync   /dev/sdj1
       4       8      129        4      active sync   /dev/sdi1
       5       0        0        5      removed

       6       8       81        -      spare   /dev/sdf1
       7       8       97        -      spare   /dev/sdg1
       8       8      113        -      spare   /dev/sdh1
root@mars ~ # dmesg | tail -n 30
[ 7896.306100] md: bind<sde1>
[ 7896.306240] md: bind<sdl1>
[ 7896.306368] md: bind<sdj1>
[ 7896.306495] md: bind<sdi1>
[ 7896.306666] md: bind<sdf1>
[ 7896.306795] md: bind<sdg1>
[ 7896.306921] md: bind<sdh1>
[ 7896.307048] md: bind<sdk1>
[ 7896.308745] raid5: md0 is not clean -- starting background reconstruction
[ 7896.308763] raid5: device sdk1 operational as raid disk 0
[ 7896.308765] raid5: device sdi1 operational as raid disk 4
[ 7896.308768] raid5: device sdj1 operational as raid disk 3
[ 7896.308770] raid5: device sdl1 operational as raid disk 2
[ 7896.308772] raid5: device sde1 operational as raid disk 1
[ 7896.309420] raid5: allocated 6386kB for md0
[ 7896.309465] 0: w=1 pa=0 pr=6 m=2 a=18 r=6 op1=0 op2=0
[ 7896.309468] 4: w=2 pa=0 pr=6 m=2 a=18 r=6 op1=0 op2=0
[ 7896.309471] 3: w=3 pa=0 pr=6 m=2 a=18 r=6 op1=0 op2=0
[ 7896.309473] 2: w=4 pa=0 pr=6 m=2 a=18 r=6 op1=0 op2=0
[ 7896.309476] 1: w=5 pa=0 pr=6 m=2 a=18 r=6 op1=0 op2=0
[ 7896.309478] raid5: cannot start dirty degraded array for md0
[ 7896.309503] RAID5 conf printout:
[ 7896.309504]  --- rd:6 wd:5
[ 7896.309506]  disk 0, o:1, dev:sdk1
[ 7896.309508]  disk 1, o:1, dev:sde1
[ 7896.309510]  disk 2, o:1, dev:sdl1
[ 7896.309512]  disk 3, o:1, dev:sdj1
[ 7896.309514]  disk 4, o:1, dev:sdi1
[ 7896.309956] raid5: failed to run raid set md0
[ 7896.309970] md: pers->run() failed ...
root@mars ~ # uname -a
Linux mars 2.6.34-1-amd64 #1 SMP Sun Jun 6 22:29:25 UTC 2010 x86_64 GNU/Linux
root@mars ~ # mdadm --version
mdadm - v3.1.2 - 10th March 2010

-- Sebastian

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-07-13 22:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-07 20:41 power outage while raid5->raid6 was in progress Sebastian Reichel
2010-07-07 22:44 ` Neil Brown
2010-07-07 23:13   ` Sebastian Reichel
2010-07-08  1:21     ` Neil Brown
2010-07-08  8:48       ` Sebastian Reichel
2010-07-08 22:48         ` Neil Brown
2010-07-08 23:50           ` Sebastian Reichel
2010-07-13 22:14           ` Sebastian Reichel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).