All of lore.kernel.org
 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

* Re: RAID1-Device won't survive reboot
  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
  0 siblings, 1 reply; 4+ messages in thread
From: rob @ 2003-10-08 21:38 UTC (permalink / raw)
  To: alexander.weber; +Cc: linux-raid

I'm not familiar with SuSE 8.2,   but here are some hints:

-is it possible that  either the mount of md0 is getting done before  
md0 is assembled, or hdb1  is getting mounted directly?  check  df -v  
right after boot.

- is /boot included in  /   ?     -   It could have been dated info, but 
I read not to include /boot.
     someone please correct this if I'm wrong.

-  do you use  /etc/mdadm.conf  and or  /etc/raidtab ?   maybe there is 
some inconsistent info in those files?

- try  grep  md0  /var/log/   ,  maybe info there will help you debug.

in case it helps, this the info I've got on one of my systems:


root@fbc5:/var/log # mdadm -V
mdadm - v1.0.1 - 20 May 2002

root@fbc5:/var/log # grep md0 syslog
Oct  7 12:48:49 fbc5 kernel: md: created md0
Oct  7 12:48:49 fbc5 kernel: md0: max total readahead window set to 124k
Oct  7 12:48:49 fbc5 kernel: md0: 1 data-disks, max readahead per 
data-disk: 124k
Oct  7 12:48:49 fbc5 kernel: raid1: raid set md0 active with 2 out of 2 
mirrors
Oct  7 12:48:49 fbc5 kernel: md: updating md0 RAID superblock on device
Oct  7 13:13:51 fbc5 kernel: md: created md0
Oct  7 13:13:51 fbc5 kernel: md0: max total readahead window set to 124k
Oct  7 13:13:51 fbc5 kernel: md0: 1 data-disks, max readahead per 
data-disk: 124k
Oct  7 13:13:51 fbc5 kernel: raid1: raid set md0 active with 2 out of 2 
mirrors
Oct  7 13:13:51 fbc5 kernel: md: updating md0 RAID superblock on device



alexander.weber@pta.de wrote:

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


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

* Re: RAID1-Device won't survive reboot
  2003-10-08 21:38 ` rob
@ 2003-10-09 12:00   ` Thomas Steudten
  2003-10-09 12:16     ` rob
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Steudten @ 2003-10-09 12:00 UTC (permalink / raw)
  To: rob; +Cc: alexander.weber, linux-raid


I think the partition is not marked with type fd: like
mime: It must be type "fd"

[1021] (1) #  fdisk -l /dev/sda

Disk /dev/sda: 64 heads, 32 sectors, 35003 cylinders
Units = cylinders of 2048 * 512 bytes

    Device Boot    Start       End    Blocks   Id  System
/dev/sda1             1      8676   8884208   fd  Linux raid autodetect
/dev/sda2          8677     35003  26958848   83  Linux



rob wrote:

> I'm not familiar with SuSE 8.2,   but here are some hints:
> 
> -is it possible that  either the mount of md0 is getting done before  
> md0 is assembled, or hdb1  is getting mounted directly?  check  df -v  
> right after boot.
> 

>>



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

* Re: RAID1-Device won't survive reboot
  2003-10-09 12:00   ` Thomas Steudten
@ 2003-10-09 12:16     ` rob
  0 siblings, 0 replies; 4+ messages in thread
From: rob @ 2003-10-09 12:16 UTC (permalink / raw)
  To: alpha; +Cc: alexander.weber, linux-raid

so  /dev/sdb1  is not  partition type  'fd' ?

if you want hints at solving, please post your

/etc/fstab
/etc/raidtab 
/etc/lilo.conf or /boot/grub/grub.conf


Thomas Steudten wrote:

>
> I think the partition is not marked with type fd: like
> mime: It must be type "fd"
>
> [1021] (1) #  fdisk -l /dev/sda
>
> Disk /dev/sda: 64 heads, 32 sectors, 35003 cylinders
> Units = cylinders of 2048 * 512 bytes
>
>    Device Boot    Start       End    Blocks   Id  System
> /dev/sda1             1      8676   8884208   fd  Linux raid autodetect
> /dev/sda2          8677     35003  26958848   83  Linux
>
>
>
> rob wrote:
>
>> I'm not familiar with SuSE 8.2,   but here are some hints:
>>
>> -is it possible that  either the mount of md0 is getting done before  
>> md0 is assembled, or hdb1  is getting mounted directly?  check  df 
>> -v  right after boot.
>>
>
>>>
>
>
> -
> 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



^ 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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.