linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RAID1-Device won't survive reboot
@ 2003-10-08 15:25 alexander.weber
  2003-10-08 21:38 ` rob
  0 siblings, 1 reply; 4+ messages in thread
From: alexander.weber @ 2003-10-08 15:25 UTC (permalink / raw)
  To: linux-raid

Hello fellows,

I have set up a SuSE 8.2-box with two harddrives making up a RAID1-Array,
including the root-partition on /dev/md0. The system works just fine, but
what me keeps uncomfortable is the fact that after reboot /dev/md0 works on
only one disk. Look:

cat /proc/mdstat
Personalities : [raid1]
read_ahead 1024 sectors
md0 : active raid1 hdb1[0]
      5245120 blocks [2/1] [U_]

md1 : active raid1 hdb5[0] hda5[1]
      5245120 blocks [2/2] [UU]

md2 : active raid1 hdb6[0] hda6[1]
      15735552 blocks [2/2] [UU]

md3 : active raid1 hdb7[0] hda7[1]
      5245120 blocks [2/2] [UU]

unused devices: <none>

After
raidhotadd /dev/md0 /dev/hda1
/dev/hda1 is added to the array, and after resyncing it will do its job,
but the next reboot will leave it failed again.

What can I do to make my RAID-array survive a reboot?
Thanks for hints.

Alexander



Before raidhotadd:
 # mdadm -E /dev/hda1
/dev/hda1:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : 2598fd96:1021343c:b783de9d:198f6167
  Creation Time : Fri Sep 12 17:42:02 2003
     Raid Level : raid1
    Device Size : 5245120 (5.00 GiB 5.37 GB)
   Raid Devices : 2
  Total Devices : 3
Preferred Minor : 0

    Update Time : Mon Sep 29 15:31:47 2003
          State : dirty, no-errors
 Active Devices : 2
Working Devices : 2
 Failed Devices : 1
  Spare Devices : 0
       Checksum : 2f2368bf - correct
         Events : 0.106


      Number   Major   Minor   RaidDevice State
this     1       3        1        1      active sync   /dev/hda1
   0     0       3       65        0      active sync   /dev/hdb1
   1     1       3        1        1      active sync   /dev/hda1

Then:

# raidhotadd /dev/md0 /dev/hda1
# mdadm -E /dev/hda1
/dev/hda1:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : 2598fd96:1021343c:b783de9d:198f6167
  Creation Time : Fri Sep 12 17:42:02 2003
     Raid Level : raid1
    Device Size : 5245120 (5.00 GiB 5.37 GB)
   Raid Devices : 2
  Total Devices : 3
Preferred Minor : 0

    Update Time : Wed Oct  8 16:21:39 2003
          State : dirty, no-errors
 Active Devices : 1
Working Devices : 2
 Failed Devices : 1
  Spare Devices : 1
       Checksum : 2f2f51eb - correct
         Events : 0.112


      Number   Major   Minor   RaidDevice State
this     2       3        1        2        /dev/hda1
   0     0       3       65        0      active sync   /dev/hdb1
   1     1       0        0        1      faulty removed
   2     2       3        1        2        /dev/hda1
# cat /proc/mdstat
Personalities : [raid1]
read_ahead 1024 sectors
md0 : active raid1 hda1[2] hdb1[0]
      5245120 blocks [2/1] [U_]
      [======>..............]  recovery = 31.1% (1632712/5245120)
finish=1.8min speed=32243K/sec
md1 : active raid1 hdb5[0] hda5[1]
      5245120 blocks [2/2] [UU]

md2 : active raid1 hdb6[0] hda6[1]
      15735552 blocks [2/2] [UU]

md3 : active raid1 hdb7[0] hda7[1]
      5245120 blocks [2/2] [UU]

unused devices: <none>

# cat /proc/mdstat
Personalities : [raid1]
read_ahead 1024 sectors
md0 : active raid1 hda1[1] hdb1[0]
      5245120 blocks [2/2] [UU]

md1 : active raid1 hdb5[0] hda5[1]
      5245120 blocks [2/2] [UU]

md2 : active raid1 hdb6[0] hda6[1]
      15735552 blocks [2/2] [UU]

md3 : active raid1 hdb7[0] hda7[1]
      5245120 blocks [2/2] [UU]

unused devices: <none>

# mdadm -E /dev/hda1
/dev/hda1:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : 2598fd96:1021343c:b783de9d:198f6167
  Creation Time : Fri Sep 12 17:42:02 2003
     Raid Level : raid1
    Device Size : 5245120 (5.00 GiB 5.37 GB)
   Raid Devices : 2
  Total Devices : 3
Preferred Minor : 0

    Update Time : Wed Oct  8 16:24:14 2003
          State : dirty, no-errors
 Active Devices : 2
Working Devices : 2
 Failed Devices : 1
  Spare Devices : 0
       Checksum : 2f2f5291 - correct
         Events : 0.113


      Number   Major   Minor   RaidDevice State
this     1       3        1        1      active sync   /dev/hda1
   0     0       3       65        0      active sync   /dev/hdb1
   1     1       3        1        1      active sync   /dev/hda1




























**********************************************************************
http://www.pta.de
Mit 783 Erfahrungsberichten aus 34 Jahren erfolgreicher Projektarbeit!
**********************************************************************


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

end of thread, other threads:[~2003-10-09 12:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-08 15:25 RAID1-Device won't survive reboot alexander.weber
2003-10-08 21:38 ` rob
2003-10-09 12:00   ` Thomas Steudten
2003-10-09 12:16     ` rob

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