linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* raid issues after power failure
@ 2006-06-30  9:12 Ákos Maróy
  2006-06-30  9:21 ` Francois Barre
  0 siblings, 1 reply; 16+ messages in thread
From: Ákos Maróy @ 2006-06-30  9:12 UTC (permalink / raw)
  To: linux-raid

Hi,

I have some issues reviving my raid5 array after a power failure. I'm
running gentoo Linux 2.6.16, and I have a raid5 array /dev/md0 if 4 disks,
/dev/sd[a-d]1. On top of this, I have a crypto devmap with LUKS.

After the power failure, the array sort of starts up and doesn't at the
same time:

# cat /proc/mdstat
Personalities : [raid5] [raid4]
unused devices: <none>
# mdadm -A /dev/md0
mdadm: failed to RUN_ARRAY /dev/md0: Input/output error
# cat /proc/mdstat
Personalities : [raid5] [raid4]
md0 : inactive sda1[0] sdd1[3] sdc1[2]
      1172126208 blocks

unused devices: <none>
# mdadm --query /dev/md0
/dev/md0: 0.00KiB raid5 4 devices, 0 spares. Use mdadm --detail for more
detail./dev/md0: is too small to be an md component.
# mdadm --query --detail /dev/md0
/dev/md0:
        Version : 00.90.03
  Creation Time : Tue Apr 25 16:17:14 2006
     Raid Level : raid5
    Device Size : 390708736 (372.61 GiB 400.09 GB)
   Raid Devices : 4
  Total Devices : 3
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Thu Jun 29 09:10:39 2006
          State : active, degraded
 Active Devices : 3
Working Devices : 3
 Failed Devices : 0
  Spare Devices : 0

         Layout : left-symmetric
     Chunk Size : 64K

           UUID : 8a66d568:0be5b0a0:93b729eb:6f23c014
         Events : 0.2701790

    Number   Major   Minor   RaidDevice State
       0       8        1        0      active sync   /dev/sda1
       1       0        0        -      removed
       2       8       33        2      active sync   /dev/sdc1
       3       8       49        3      active sync   /dev/sdd1
#


so it's sort of strange that on one hand (in /proc/mdstat) it's inactive,
but according to mdstat it's active? also, mdstat --query says it's
0.00KiB in size?


also, on the mdadm -A /dev/md0 call, the following is written to the syslog:


Jun 30 11:10:22 tower md: md0 stopped.
Jun 30 11:10:22 tower md: bind<sdc1>
Jun 30 11:10:22 tower md: bind<sdd1>
Jun 30 11:10:22 tower md: bind<sda1>
Jun 30 11:10:22 tower md: md0: raid array is not clean -- starting
background reconstruction
Jun 30 11:10:22 tower raid5: device sda1 operational as raid disk 0
Jun 30 11:10:22 tower raid5: device sdd1 operational as raid disk 3
Jun 30 11:10:22 tower raid5: device sdc1 operational as raid disk 2
Jun 30 11:10:22 tower raid5: cannot start dirty degraded array for md0
Jun 30 11:10:22 tower RAID5 conf printout:
Jun 30 11:10:22 tower --- rd:4 wd:3 fd:1
Jun 30 11:10:22 tower disk 0, o:1, dev:sda1
Jun 30 11:10:22 tower disk 2, o:1, dev:sdc1
Jun 30 11:10:22 tower disk 3, o:1, dev:sdd1
Jun 30 11:10:22 tower raid5: failed to run raid set md0
Jun 30 11:10:22 tower md: pers->run() failed ...


strange - why wouldn't it take all four disks (it's omitting /dev/sdb1)?


Though probably these are very lame questions, I'd still appreciate any
help...


Akos


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

end of thread, other threads:[~2006-07-03 11:30 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-30  9:12 raid issues after power failure Ákos Maróy
2006-06-30  9:21 ` Francois Barre
2006-06-30  9:25   ` Ákos Maróy
     [not found]     ` <fd8d0180606300250q6fbab5d3wdf343b530f3119a9@mail.gmail.com>
2006-06-30  9:51       ` Francois Barre
2006-06-30  9:56         ` Francois Barre
2006-06-30 12:29           ` Akos Maroy
2006-06-30 12:40             ` Francois Barre
2006-06-30 12:43               ` Akos Maroy
2006-06-30 12:57                 ` Francois Barre
2006-06-30 23:06                 ` Neil Brown
2006-07-01 15:28                   ` Ákos Maróy
2006-07-02  8:14                     ` Francois Barre
2006-07-02  9:26                       ` David Greaves
2006-07-03  8:54                       ` Ákos Maróy
2006-07-03  9:16                         ` Francois Barre
2006-07-03 11:30                           ` Ákos Maróy

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).