* Strange boot with multiple identical disks
@ 2004-02-12 19:28 Konstantin Kudin
2004-02-12 19:38 ` Valdis.Kletnieks
2004-02-12 20:08 ` Dave Kleikamp
0 siblings, 2 replies; 6+ messages in thread
From: Konstantin Kudin @ 2004-02-12 19:28 UTC (permalink / raw)
To: linux-kernel
Hi everybody,
Here is the issue. A redhat 9 linux system had 2
drives, /hda and /hdb. Then /hda started developing
bad clusters {UncorrectableError}, so I got an
identical warranty replacement drive.
Then I hooked up the new drive as /hdc, and did a
sector by sector copy {dd if=/dev/hda of=/dev/hdc
conv=noerror,sync} Overall, I got ~2k of bad 512B
sectors.
Then I swaped the fresh one to /hda, and put aside
the failing one. I booted, did fsck on all partitions
and also raids, and things came up fine. So far so
good.
Now I am trying to add the failing one as /hdc, and
boot. Linux starts to display all kinds of weird
messages, and thinks that / partition was shut down
uncleanly. I just hit "reset". Then I disable /hdc via
the boot option hdc=noprobe, and things boot fine. If
I try to disable raid via raid=noautodetect, the bunch
of errors still appears and the boot is no go. Done
this several times, without /hdc things are fine, with
- all kinds of issues.
What is the problem for linux to boot on /hda when
/hdc is detected and has almost identical setup?
Where does it read all the garbage that starts to
screw up the boot process when /hdc is detected? I'd
like to hook up /hdc to wipe out the data there. The
drive is huge, so I'd rather wipe it out while working
then under other circumstances.
Thanks!
Konstantin
__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Strange boot with multiple identical disks
2004-02-12 19:28 Strange boot with multiple identical disks Konstantin Kudin
@ 2004-02-12 19:38 ` Valdis.Kletnieks
2004-02-12 20:04 ` Konstantin Kudin
2004-02-12 20:08 ` Dave Kleikamp
1 sibling, 1 reply; 6+ messages in thread
From: Valdis.Kletnieks @ 2004-02-12 19:38 UTC (permalink / raw)
To: Konstantin Kudin; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 859 bytes --]
On Thu, 12 Feb 2004 11:28:48 PST, Konstantin Kudin <konstantin_kudin@yahoo.com> said:
> Now I am trying to add the failing one as /hdc, and
> boot. Linux starts to display all kinds of weird
> messages, and thinks that / partition was shut down
> uncleanly. I just hit "reset". Then I disable /hdc via
> the boot option hdc=noprobe, and things boot fine. If
> I try to disable raid via raid=noautodetect, the bunch
> of errors still appears and the boot is no go. Done
> this several times, without /hdc things are fine, with
> - all kinds of issues.
>
> What is the problem for linux to boot on /hda when
> /hdc is detected and has almost identical setup?
Sometimes, the LABEL= support is your enemy. You probably have
multiple partitions with the same LABEL=, and your /etc/fstab is
picking up the "wrong" ones. Try giving partition names instead.
[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Strange boot with multiple identical disks
2004-02-12 19:38 ` Valdis.Kletnieks
@ 2004-02-12 20:04 ` Konstantin Kudin
0 siblings, 0 replies; 6+ messages in thread
From: Konstantin Kudin @ 2004-02-12 20:04 UTC (permalink / raw)
To: Valdis.Kletnieks; +Cc: linux-kernel
--- Valdis.Kletnieks@vt.edu wrote:
> On Thu, 12 Feb 2004 11:28:48 PST, Konstantin Kudin
> <konstantin_kudin@yahoo.com> said:
>
> > Now I am trying to add the failing one as /hdc,
> and
> > boot. Linux starts to display all kinds of weird
> > messages, and thinks that / partition was shut
> down
> > uncleanly. I just hit "reset". Then I disable /hdc
> via
> > the boot option hdc=noprobe, and things boot fine.
> If
> > I try to disable raid via raid=noautodetect, the
> bunch
> > of errors still appears and the boot is no go.
> Done
> > this several times, without /hdc things are fine,
> with
> > - all kinds of issues.
> >
> > What is the problem for linux to boot on /hda
> when
> > /hdc is detected and has almost identical setup?
>
> Sometimes, the LABEL= support is your enemy. You
> probably have
> multiple partitions with the same LABEL=, and your
> /etc/fstab is
> picking up the "wrong" ones. Try giving partition
> names instead.
Thanks for the tips! At first I tried to correct
/etc/fstab (replaced LABEL=/ by /dev/hda6), but still
got the problem. Then I also edited /etc/grub.conf and
replaced LABEL by the device there, and things boot
fine now.
Konstantin
__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Strange boot with multiple identical disks
2004-02-12 19:28 Strange boot with multiple identical disks Konstantin Kudin
2004-02-12 19:38 ` Valdis.Kletnieks
@ 2004-02-12 20:08 ` Dave Kleikamp
2004-02-13 15:31 ` Ricky Beam
1 sibling, 1 reply; 6+ messages in thread
From: Dave Kleikamp @ 2004-02-12 20:08 UTC (permalink / raw)
To: Konstantin Kudin; +Cc: linux-kernel
Redhat mounts the file systems by label. I believe if you modify
/boot/grub/grub.conf and /etc/fstab to use the device names (/dev/hda*)
instead of LABEL=/, etc., then it should boot properly. After wiping
out hdc, you can change them back to the way they were.
--
David Kleikamp
IBM Linux Technology Center
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Strange boot with multiple identical disks
2004-02-12 20:08 ` Dave Kleikamp
@ 2004-02-13 15:31 ` Ricky Beam
2004-02-15 3:05 ` Bill Davidsen
0 siblings, 1 reply; 6+ messages in thread
From: Ricky Beam @ 2004-02-13 15:31 UTC (permalink / raw)
To: Dave Kleikamp; +Cc: Konstantin Kudin, linux-kernel
On Thu, 12 Feb 2004, Dave Kleikamp wrote:
>Redhat mounts the file systems by label. I believe if you modify
>/boot/grub/grub.conf and /etc/fstab to use the device names (/dev/hda*)
>instead of LABEL=/, etc., then it should boot properly. After wiping
>out hdc, you can change them back to the way they were.
It'll boot properly ONCE. Redhat (in their ever increasing stupidity)
converts fstab to labels on every boot. Remove kudzu and this won't
happen anymore. (or mark /etc/fstab as immutable and then NOTHING can
change it.)
--Ricky
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Strange boot with multiple identical disks
2004-02-13 15:31 ` Ricky Beam
@ 2004-02-15 3:05 ` Bill Davidsen
0 siblings, 0 replies; 6+ messages in thread
From: Bill Davidsen @ 2004-02-15 3:05 UTC (permalink / raw)
To: Ricky Beam; +Cc: Dave Kleikamp, Konstantin Kudin, linux-kernel
Ricky Beam wrote:
> On Thu, 12 Feb 2004, Dave Kleikamp wrote:
>
>>Redhat mounts the file systems by label. I believe if you modify
>>/boot/grub/grub.conf and /etc/fstab to use the device names (/dev/hda*)
>>instead of LABEL=/, etc., then it should boot properly. After wiping
>>out hdc, you can change them back to the way they were.
>
>
> It'll boot properly ONCE. Redhat (in their ever increasing stupidity)
> converts fstab to labels on every boot. Remove kudzu and this won't
> happen anymore. (or mark /etc/fstab as immutable and then NOTHING can
> change it.)
Or change the label to be unique on each filesystem, of course. There's
nothing magic about the names having to be the mount points, or wasn't
the last time I had this problem.
--
bill davidsen <davidsen@tmr.com>
CTO TMR Associates, Inc
Doing interesting things with small computers since 1979
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-02-15 3:24 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-12 19:28 Strange boot with multiple identical disks Konstantin Kudin
2004-02-12 19:38 ` Valdis.Kletnieks
2004-02-12 20:04 ` Konstantin Kudin
2004-02-12 20:08 ` Dave Kleikamp
2004-02-13 15:31 ` Ricky Beam
2004-02-15 3:05 ` Bill Davidsen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox