* raid problem: after every reboot /dev/sdb1 is removed?
@ 2008-02-01 12:52 Berni
2008-02-01 13:46 ` Greg Cormier
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Berni @ 2008-02-01 12:52 UTC (permalink / raw)
To: linux-raid
Hi!
I have the following problem with my softraid (raid 1). I'm running
Ubuntu 7.10 64bit with kernel 2.6.22-14-generic.
After every reboot my first boot partition in md0 is not synchron. One
of the disks (the sdb1) is removed.
After a resynch every partition is synching. But after a reboot the
state is "removed".
The disks are new and both seagate 250gb with exactly the same partition table.
Here some config files:
#cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5]
[raid4] [raid10]
md2 : active raid1 sda6[0] sdb6[1]
117185984 blocks [2/2] [UU]
md1 : active raid1 sda5[0] sdb5[1]
1951744 blocks [2/2] [UU]
md0 : active raid1 sda1[0]
19534912 blocks [2/1] [U_] <<<<<<<< this is the problem: looks like U_ after reboot
unused devices: <none>
#fdisk /dev/sda
Device Boot Start End Blocks Id System
/dev/sda1 1 2432 19535008+ fd Linux raid
autodetect
/dev/sda2 2433 17264 119138040 5 Extended
/dev/sda3 * 17265 20451 25599577+ 7 HPFS/NTFS
/dev/sda4 20452 30400 79915342+ 7 HPFS/NTFS
/dev/sda5 2433 2675 1951866 fd Linux raid
autodetect
/dev/sda6 2676 17264 117186111 fd Linux raid
autodetect
#fdisk /dev/sdb
Device Boot Start End Blocks Id System
/dev/sdb1 1 2432 19535008+ fd Linux raid
autodetect
/dev/sdb2 2433 17264 119138040 5 Extended
/dev/sdb3 17265 30400 105514920 7 HPFS/NTFS
/dev/sdb5 2433 2675 1951866 fd Linux raid
autodetect
/dev/sdb6 2676 17264 117186111 fd Linux raid
autodetect
# mount
/dev/md0 on / type reiserfs (rw,notail)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
lrm on /lib/modules/2.6.22-14-generic/volatile type tmpfs (rw)
/dev/md2 on /home type reiserfs (rw)
securityfs on /sys/kernel/security type securityfs (rw)
Could anyone help me to solve this problem?
thanks
greets
Berni
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: raid problem: after every reboot /dev/sdb1 is removed?
2008-02-01 12:52 raid problem: after every reboot /dev/sdb1 is removed? Berni
@ 2008-02-01 13:46 ` Greg Cormier
2008-02-01 17:22 ` Berni
2008-02-02 2:32 ` Neil Brown
2008-02-02 19:47 ` Bill Davidsen
2 siblings, 1 reply; 6+ messages in thread
From: Greg Cormier @ 2008-02-01 13:46 UTC (permalink / raw)
To: Berni; +Cc: linux-raid
I had the same problem.
Re-doing the partition from ext2 to linux raid fixed my problem, but I
see you're already using that FS type.
Maybe it was the action of re-partitioning in general that fixed my
problem? You could try deleting it and re-creating that partition,
syncing, and rebooting?
Greg
On Fri, Feb 1, 2008 at 7:52 AM, Berni <wstripes@gmx.at> wrote:
> Hi!
>
> I have the following problem with my softraid (raid 1). I'm running
> Ubuntu 7.10 64bit with kernel 2.6.22-14-generic.
>
> After every reboot my first boot partition in md0 is not synchron. One
> of the disks (the sdb1) is removed.
> After a resynch every partition is synching. But after a reboot the
> state is "removed".
>
> The disks are new and both seagate 250gb with exactly the same partition table.
>
> Here some config files:
>
> #cat /proc/mdstat
> Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5]
> [raid4] [raid10]
> md2 : active raid1 sda6[0] sdb6[1]
> 117185984 blocks [2/2] [UU]
>
> md1 : active raid1 sda5[0] sdb5[1]
> 1951744 blocks [2/2] [UU]
>
> md0 : active raid1 sda1[0]
> 19534912 blocks [2/1] [U_] <<<<<<<< this is the problem: looks like U_ after reboot
>
> unused devices: <none>
>
> #fdisk /dev/sda
> Device Boot Start End Blocks Id System
> /dev/sda1 1 2432 19535008+ fd Linux raid
> autodetect
> /dev/sda2 2433 17264 119138040 5 Extended
> /dev/sda3 * 17265 20451 25599577+ 7 HPFS/NTFS
> /dev/sda4 20452 30400 79915342+ 7 HPFS/NTFS
> /dev/sda5 2433 2675 1951866 fd Linux raid
> autodetect
> /dev/sda6 2676 17264 117186111 fd Linux raid
> autodetect
>
> #fdisk /dev/sdb
> Device Boot Start End Blocks Id System
> /dev/sdb1 1 2432 19535008+ fd Linux raid
> autodetect
> /dev/sdb2 2433 17264 119138040 5 Extended
> /dev/sdb3 17265 30400 105514920 7 HPFS/NTFS
> /dev/sdb5 2433 2675 1951866 fd Linux raid
> autodetect
> /dev/sdb6 2676 17264 117186111 fd Linux raid
> autodetect
>
> # mount
> /dev/md0 on / type reiserfs (rw,notail)
> proc on /proc type proc (rw,noexec,nosuid,nodev)
> /sys on /sys type sysfs (rw,noexec,nosuid,nodev)
> varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
> varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
> udev on /dev type tmpfs (rw,mode=0755)
> devshm on /dev/shm type tmpfs (rw)
> devpts on /dev/pts type devpts (rw,gid=5,mode=620)
> lrm on /lib/modules/2.6.22-14-generic/volatile type tmpfs (rw)
> /dev/md2 on /home type reiserfs (rw)
> securityfs on /sys/kernel/security type securityfs (rw)
>
> Could anyone help me to solve this problem?
> thanks
> greets
> Berni
> -
> 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] 6+ messages in thread
* Re: raid problem: after every reboot /dev/sdb1 is removed?
2008-02-01 13:46 ` Greg Cormier
@ 2008-02-01 17:22 ` Berni
0 siblings, 0 replies; 6+ messages in thread
From: Berni @ 2008-02-01 17:22 UTC (permalink / raw)
To: Greg Cormier, linux-raid
Hi
So I deleted all partitions on the second hdd and copied the partition table from the first one. After that I made a resync.
After a reboot - the sda1 was removed (in past it was the sdb1) _U
After a second reboot the sda1 again is missing. U_
It looks like only one of them can stay in the /dev/md0 raid.
Could it be a problem with reiserfs?
Or that the (sda1,sdb1) are primär partitions?
thanks
berni
On Fri, 1 Feb 2008 08:46:43 -0500
"Greg Cormier" <gcormier@gmail.com> wrote:
> I had the same problem.
>
> Re-doing the partition from ext2 to linux raid fixed my problem, but I
> see you're already using that FS type.
>
> Maybe it was the action of re-partitioning in general that fixed my
> problem? You could try deleting it and re-creating that partition,
> syncing, and rebooting?
>
> Greg
>
> On Fri, Feb 1, 2008 at 7:52 AM, Berni <wstripes@gmx.at> wrote:
> > Hi!
> >
> > I have the following problem with my softraid (raid 1). I'm running
> > Ubuntu 7.10 64bit with kernel 2.6.22-14-generic.
> >
> > After every reboot my first boot partition in md0 is not synchron. One
> > of the disks (the sdb1) is removed.
> > After a resynch every partition is synching. But after a reboot the
> > state is "removed".
> >
> > The disks are new and both seagate 250gb with exactly the same partition table.
> >
> > Here some config files:
> >
> > #cat /proc/mdstat
> > Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5]
> > [raid4] [raid10]
> > md2 : active raid1 sda6[0] sdb6[1]
> > 117185984 blocks [2/2] [UU]
> >
> > md1 : active raid1 sda5[0] sdb5[1]
> > 1951744 blocks [2/2] [UU]
> >
> > md0 : active raid1 sda1[0]
> > 19534912 blocks [2/1] [U_] <<<<<<<< this is the problem: looks like U_ after reboot
> >
> > unused devices: <none>
> >
> > #fdisk /dev/sda
> > Device Boot Start End Blocks Id System
> > /dev/sda1 1 2432 19535008+ fd Linux raid
> > autodetect
> > /dev/sda2 2433 17264 119138040 5 Extended
> > /dev/sda3 * 17265 20451 25599577+ 7 HPFS/NTFS
> > /dev/sda4 20452 30400 79915342+ 7 HPFS/NTFS
> > /dev/sda5 2433 2675 1951866 fd Linux raid
> > autodetect
> > /dev/sda6 2676 17264 117186111 fd Linux raid
> > autodetect
> >
> > #fdisk /dev/sdb
> > Device Boot Start End Blocks Id System
> > /dev/sdb1 1 2432 19535008+ fd Linux raid
> > autodetect
> > /dev/sdb2 2433 17264 119138040 5 Extended
> > /dev/sdb3 17265 30400 105514920 7 HPFS/NTFS
> > /dev/sdb5 2433 2675 1951866 fd Linux raid
> > autodetect
> > /dev/sdb6 2676 17264 117186111 fd Linux raid
> > autodetect
> >
> > # mount
> > /dev/md0 on / type reiserfs (rw,notail)
> > proc on /proc type proc (rw,noexec,nosuid,nodev)
> > /sys on /sys type sysfs (rw,noexec,nosuid,nodev)
> > varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
> > varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
> > udev on /dev type tmpfs (rw,mode=0755)
> > devshm on /dev/shm type tmpfs (rw)
> > devpts on /dev/pts type devpts (rw,gid=5,mode=620)
> > lrm on /lib/modules/2.6.22-14-generic/volatile type tmpfs (rw)
> > /dev/md2 on /home type reiserfs (rw)
> > securityfs on /sys/kernel/security type securityfs (rw)
> >
> > Could anyone help me to solve this problem?
> > thanks
> > greets
> > Berni
> > -
> > 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
> >
-
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] 6+ messages in thread
* Re: raid problem: after every reboot /dev/sdb1 is removed?
2008-02-01 12:52 raid problem: after every reboot /dev/sdb1 is removed? Berni
2008-02-01 13:46 ` Greg Cormier
@ 2008-02-02 2:32 ` Neil Brown
2008-02-02 19:47 ` Bill Davidsen
2 siblings, 0 replies; 6+ messages in thread
From: Neil Brown @ 2008-02-02 2:32 UTC (permalink / raw)
To: Berni; +Cc: linux-raid
On Friday February 1, wstripes@gmx.at wrote:
> Hi!
>
> I have the following problem with my softraid (raid 1). I'm running
> Ubuntu 7.10 64bit with kernel 2.6.22-14-generic.
>
> After every reboot my first boot partition in md0 is not synchron. One
> of the disks (the sdb1) is removed.
> After a resynch every partition is synching. But after a reboot the
> state is "removed".
Please send boot logs (e.g. dmesg > afile).
NeilBrown
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: raid problem: after every reboot /dev/sdb1 is removed?
2008-02-01 12:52 raid problem: after every reboot /dev/sdb1 is removed? Berni
2008-02-01 13:46 ` Greg Cormier
2008-02-02 2:32 ` Neil Brown
@ 2008-02-02 19:47 ` Bill Davidsen
[not found] ` <20080203023001.066852a6@berni>
2 siblings, 1 reply; 6+ messages in thread
From: Bill Davidsen @ 2008-02-02 19:47 UTC (permalink / raw)
To: Berni; +Cc: linux-raid
Berni wrote:
> Hi!
>
> I have the following problem with my softraid (raid 1). I'm running
> Ubuntu 7.10 64bit with kernel 2.6.22-14-generic.
>
> After every reboot my first boot partition in md0 is not synchron. One
> of the disks (the sdb1) is removed.
> After a resynch every partition is synching. But after a reboot the
> state is "removed".
>
> The disks are new and both seagate 250gb with exactly the same partition table.
>
>
Did you create the raid arrays and then install on them? Or add them
after the fact? I have seen this type of problem when the initrd doesn't
start the array before pivotroot, usually because the raid capabilities
aren't in the boot image. In that case rerunning grub and mkinitrd may help.
I run raid on Redhat distributions, and some Slackware, so I can't speak
for Ubuntu from great experience, but that's what it sounds like. When
you boot, is the /boot mounted on a degraded array or on the raw partition?
> Here some config files:
>
> #cat /proc/mdstat
> Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5]
> [raid4] [raid10]
> md2 : active raid1 sda6[0] sdb6[1]
> 117185984 blocks [2/2] [UU]
>
> md1 : active raid1 sda5[0] sdb5[1]
> 1951744 blocks [2/2] [UU]
>
> md0 : active raid1 sda1[0]
> 19534912 blocks [2/1] [U_] <<<<<<<< this is the problem: looks like U_ after reboot
>
> unused devices: <none>
>
> #fdisk /dev/sda
> Device Boot Start End Blocks Id System
> /dev/sda1 1 2432 19535008+ fd Linux raid
> autodetect
> /dev/sda2 2433 17264 119138040 5 Extended
> /dev/sda3 * 17265 20451 25599577+ 7 HPFS/NTFS
> /dev/sda4 20452 30400 79915342+ 7 HPFS/NTFS
> /dev/sda5 2433 2675 1951866 fd Linux raid
> autodetect
> /dev/sda6 2676 17264 117186111 fd Linux raid
> autodetect
>
> #fdisk /dev/sdb
> Device Boot Start End Blocks Id System
> /dev/sdb1 1 2432 19535008+ fd Linux raid
> autodetect
> /dev/sdb2 2433 17264 119138040 5 Extended
> /dev/sdb3 17265 30400 105514920 7 HPFS/NTFS
> /dev/sdb5 2433 2675 1951866 fd Linux raid
> autodetect
> /dev/sdb6 2676 17264 117186111 fd Linux raid
> autodetect
>
> # mount
> /dev/md0 on / type reiserfs (rw,notail)
> proc on /proc type proc (rw,noexec,nosuid,nodev)
> /sys on /sys type sysfs (rw,noexec,nosuid,nodev)
> varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
> varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
> udev on /dev type tmpfs (rw,mode=0755)
> devshm on /dev/shm type tmpfs (rw)
> devpts on /dev/pts type devpts (rw,gid=5,mode=620)
> lrm on /lib/modules/2.6.22-14-generic/volatile type tmpfs (rw)
> /dev/md2 on /home type reiserfs (rw)
> securityfs on /sys/kernel/security type securityfs (rw)
>
> Could anyone help me to solve this problem?
> thanks
> greets
> Berni
> -
> 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
>
>
--
Bill Davidsen <davidsen@tmr.com>
"Woe unto the statesman who makes war without a reason that will still
be valid when the war is over..." Otto von Bismark
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: raid problem: after every reboot /dev/sdb1 is removed?
[not found] ` <20080203023001.066852a6@berni>
@ 2008-02-03 15:34 ` Bill Davidsen
0 siblings, 0 replies; 6+ messages in thread
From: Bill Davidsen @ 2008-02-03 15:34 UTC (permalink / raw)
To: Berni, Linux RAID
Berni wrote:
> Hi
>
> I created the raid arrays during install with the text-installer-cd.
> So first the raid array was created and then the system was installed on it.
>
>
> I don't have a extra /boot partition its on the root (/) partition and the root is the md0 in the raid. Every partition for ubuntu (also swap) is in the raid.
>
> What exactly means rerunning grub? (to put both hdd into the mbr)?
> I can't find the "mkinitrd" into ubuntu. I made a update-initramfs but it didn't help.
>
>
I think you need some ubuntu guru to help, I always create a small raid1
for /boot and then use other arrays for whatever the system is doing. I
don't know if ubuntu uses mkinitrd or what, but it clearly didn't get it
right without a little help from you.
> thanks
>
How about some input, ubuntu users (or Debian, isn't ubuntu really Debian?).
>
> On Sat, 02 Feb 2008 14:47:50 -0500
> Bill Davidsen <davidsen@tmr.com> wrote:
>
>
>> Berni wrote:
>>
>>> Hi!
>>>
>>> I have the following problem with my softraid (raid 1). I'm running
>>> Ubuntu 7.10 64bit with kernel 2.6.22-14-generic.
>>>
>>> After every reboot my first boot partition in md0 is not synchron. One
>>> of the disks (the sdb1) is removed.
>>> After a resynch every partition is synching. But after a reboot the
>>> state is "removed".
>>>
>>> The disks are new and both seagate 250gb with exactly the same partition table.
>>>
>>>
>>>
>> Did you create the raid arrays and then install on them? Or add them
>> after the fact? I have seen this type of problem when the initrd doesn't
>> start the array before pivotroot, usually because the raid capabilities
>> aren't in the boot image. In that case rerunning grub and mkinitrd may help.
>>
>> I run raid on Redhat distributions, and some Slackware, so I can't speak
>> for Ubuntu from great experience, but that's what it sounds like. When
>> you boot, is the /boot mounted on a degraded array or on the raw partition?
>>
--
Bill Davidsen <davidsen@tmr.com>
"Woe unto the statesman who makes war without a reason that will still
be valid when the war is over..." Otto von Bismark
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-02-03 15:34 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-01 12:52 raid problem: after every reboot /dev/sdb1 is removed? Berni
2008-02-01 13:46 ` Greg Cormier
2008-02-01 17:22 ` Berni
2008-02-02 2:32 ` Neil Brown
2008-02-02 19:47 ` Bill Davidsen
[not found] ` <20080203023001.066852a6@berni>
2008-02-03 15:34 ` Bill Davidsen
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).