RAID1-Device won't survive reboot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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!
**********************************************************************

-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux