public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* SATA disk device naming ?
@ 2004-07-13  2:25 Robert M. Stockmann
  2004-07-13  3:04 ` Jeff Garzik
  2004-07-13  6:46 ` Eric D. Mudama
  0 siblings, 2 replies; 17+ messages in thread
From: Robert M. Stockmann @ 2004-07-13  2:25 UTC (permalink / raw)
  To: linux-kernel


Hi,

After a rather tiresome nightly sit through, we discovered that when
going from kernel 2.6.3 to kernel 2.6.7 the SATA disk device naming
on at least the AMD64 platform changes from : /dev/hde and up 
to /dev/sda and up. What a total disaster. 

Effectively this means that your installed AMD64 platform based
linux distro cannot mount its root filesystem anymore.

We installed mandrake 10.0 amd64 and had to go back todo a initial
install on a UDMA IDE disk on /dev/hda.

Is there in such cases a smart workaround available, maybe as an extra
GRUB/LILO boot option ? And why was the device naming changed in 
such a fatal way, effectively going from IDE to SCSI device names.

Googling for "kernel init no init found" results in :

Results 11 - 20 of about 323,000 for kernel init no init found. 
ouch :(

Regards,

Robert
-- 
Robert M. Stockmann - RHCE
Network Engineer - UNIX/Linux Specialist
crashrecovery.org  stock@stokkie.net


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

* Re: SATA disk device naming ?
  2004-07-13  2:25 SATA disk device naming ? Robert M. Stockmann
@ 2004-07-13  3:04 ` Jeff Garzik
  2004-07-14 11:20   ` Arnd Bergmann
  2004-07-13  6:46 ` Eric D. Mudama
  1 sibling, 1 reply; 17+ messages in thread
From: Jeff Garzik @ 2004-07-13  3:04 UTC (permalink / raw)
  To: Robert M. Stockmann; +Cc: linux-kernel

Robert M. Stockmann wrote:
> Hi,
> 
> After a rather tiresome nightly sit through, we discovered that when
> going from kernel 2.6.3 to kernel 2.6.7 the SATA disk device naming
> on at least the AMD64 platform changes from : /dev/hde and up 
> to /dev/sda and up. What a total disaster. 


Whoever builds your kernels changed around the kernel configuration on you.

SATA "disk naming" (what driver you use) did not change from 2.6.3 to 2.6.7.

	Jeff



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

* Re: SATA disk device naming ?
  2004-07-13  2:25 SATA disk device naming ? Robert M. Stockmann
  2004-07-13  3:04 ` Jeff Garzik
@ 2004-07-13  6:46 ` Eric D. Mudama
  2004-07-13 13:24   ` Ian Soboroff
  2004-07-13 16:23   ` Ricky Beam
  1 sibling, 2 replies; 17+ messages in thread
From: Eric D. Mudama @ 2004-07-13  6:46 UTC (permalink / raw)
  To: Robert M. Stockmann; +Cc: linux-kernel

On Tue, Jul 13 at  4:25, Robert M. Stockmann wrote:
>Is there in such cases a smart workaround available, maybe as an extra
>GRUB/LILO boot option ? And why was the device naming changed in 
>such a fatal way, effectively going from IDE to SCSI device names.

Google on the "root=LABEL=/" syntax supported by both LILO and grub (I
think), should point you in the proper direction.  Then it won't
matter where/how you mount your drives, they'll still boot and mount
into the proper places in the filesystem.

--eric


-- 
Eric D. Mudama
edmudama@mail.bounceswoosh.org


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

* Re: SATA disk device naming ?
  2004-07-13  6:46 ` Eric D. Mudama
@ 2004-07-13 13:24   ` Ian Soboroff
  2004-07-13 16:23   ` Ricky Beam
  1 sibling, 0 replies; 17+ messages in thread
From: Ian Soboroff @ 2004-07-13 13:24 UTC (permalink / raw)
  To: linux-kernel

"Eric D. Mudama" <edmudama@bounceswoosh.org> writes:

> On Tue, Jul 13 at  4:25, Robert M. Stockmann wrote:
>>Is there in such cases a smart workaround available, maybe as an extra
>> GRUB/LILO boot option ? And why was the device naming changed in
>> such a fatal way, effectively going from IDE to SCSI device names.
>
> Google on the "root=LABEL=/" syntax supported by both LILO and grub (I
> think), should point you in the proper direction.  Then it won't
> matter where/how you mount your drives, they'll still boot and mount
> into the proper places in the filesystem.

Did the patch for labeling the swap partition ever make it into the
kernel?

Also, if your filesystems are modular (e.g. XFS) then labels may not
help at boot time.

Ian



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

* Re: SATA disk device naming ?
  2004-07-13  6:46 ` Eric D. Mudama
  2004-07-13 13:24   ` Ian Soboroff
@ 2004-07-13 16:23   ` Ricky Beam
  2004-07-13 16:49     ` Jeff Garzik
  2004-07-13 17:15     ` Tigran Aivazian
  1 sibling, 2 replies; 17+ messages in thread
From: Ricky Beam @ 2004-07-13 16:23 UTC (permalink / raw)
  To: Eric D. Mudama; +Cc: Robert M. Stockmann, linux-kernel

On Tue, 13 Jul 2004, Eric D. Mudama wrote:
>... "root=LABEL=/" ...

I've seen the LABEL method not work at all. (2.6.7-rc3 on the wikipedia
servers.)

--Ricky



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

* Re: SATA disk device naming ?
  2004-07-13 16:23   ` Ricky Beam
@ 2004-07-13 16:49     ` Jeff Garzik
  2004-07-13 17:29       ` Tigran Aivazian
  2004-07-13 22:35       ` Chris Wedgwood
  2004-07-13 17:15     ` Tigran Aivazian
  1 sibling, 2 replies; 17+ messages in thread
From: Jeff Garzik @ 2004-07-13 16:49 UTC (permalink / raw)
  To: Ricky Beam; +Cc: Eric D. Mudama, Robert M. Stockmann, linux-kernel

On Tue, Jul 13, 2004 at 12:23:32PM -0400, Ricky Beam wrote:
> On Tue, 13 Jul 2004, Eric D. Mudama wrote:
> >... "root=LABEL=/" ...
> 
> I've seen the LABEL method not work at all. (2.6.7-rc3 on the wikipedia
> servers.)

For LABEL to work, your filesystem needs to support it.

For LABEL to work on root filesystem, you need an initrd.

	Jeff




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

* Re: SATA disk device naming ?
  2004-07-13 17:15     ` Tigran Aivazian
@ 2004-07-13 16:58       ` Muli Ben-Yehuda
  0 siblings, 0 replies; 17+ messages in thread
From: Muli Ben-Yehuda @ 2004-07-13 16:58 UTC (permalink / raw)
  To: Tigran Aivazian
  Cc: Ricky Beam, Eric D. Mudama, Robert M. Stockmann, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 543 bytes --]

On Tue, Jul 13, 2004 at 06:15:04PM +0100, Tigran Aivazian wrote:

> I assumed that "LABEL=/" thing is a RedHat-specific kernel's feature but 
> never bothered to check.

This is a common misconception. The LABEL magic is actually done by
nash, which is part of RH's (and others) mkinitrd package. This also
means that LABEL relies on having a working initrd. 

I have a short writeup of my understanding of how this works at
http://www.livejournal.com/users/mulix/84768.html. All AFAIUI,
corrections welcome. 

Cheers, 
Muli 


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: SATA disk device naming ?
  2004-07-13 16:23   ` Ricky Beam
  2004-07-13 16:49     ` Jeff Garzik
@ 2004-07-13 17:15     ` Tigran Aivazian
  2004-07-13 16:58       ` Muli Ben-Yehuda
  1 sibling, 1 reply; 17+ messages in thread
From: Tigran Aivazian @ 2004-07-13 17:15 UTC (permalink / raw)
  To: Ricky Beam; +Cc: Eric D. Mudama, Robert M. Stockmann, linux-kernel

On Tue, 13 Jul 2004, Ricky Beam wrote:

> On Tue, 13 Jul 2004, Eric D. Mudama wrote:
> >... "root=LABEL=/" ...
> 
> I've seen the LABEL method not work at all. (2.6.7-rc3 on the wikipedia
> servers.)

right, the LABEL=/ never works for me so I always replace it with explicit 
"root=/dev/sda2" thing, but this is problematic if "/dev/sda2" becomes 
"/dev/hda2" if you boot with IDE driver compiled in, as opposed to SATA 
driver.

I assumed that "LABEL=/" thing is a RedHat-specific kernel's feature but 
never bothered to check. The reason I assumed so was that the problems 
always happen after installation, i.e. as soon as I replace the vendor's 
generic kernel with the one properly optimized for my specific needs.

Kind regards
Tigran


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

* Re: SATA disk device naming ?
  2004-07-13 16:49     ` Jeff Garzik
@ 2004-07-13 17:29       ` Tigran Aivazian
  2004-07-13 22:35       ` Chris Wedgwood
  1 sibling, 0 replies; 17+ messages in thread
From: Tigran Aivazian @ 2004-07-13 17:29 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Ricky Beam, Eric D. Mudama, Robert M. Stockmann, linux-kernel

On Tue, 13 Jul 2004, Jeff Garzik wrote:
> For LABEL to work on root filesystem, you need an initrd.

Ok, now I know why it doesn't work for me --- I always disable initrd
after fresh installation. Thank you for the explanation.

Kind regards
Tigran


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

* Re: SATA disk device naming ?
  2004-07-13 16:49     ` Jeff Garzik
  2004-07-13 17:29       ` Tigran Aivazian
@ 2004-07-13 22:35       ` Chris Wedgwood
  2004-07-14  9:48         ` P
  2004-07-15  2:44         ` Joel Becker
  1 sibling, 2 replies; 17+ messages in thread
From: Chris Wedgwood @ 2004-07-13 22:35 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Ricky Beam, Eric D. Mudama, Robert M. Stockmann, linux-kernel

On Tue, Jul 13, 2004 at 12:49:11PM -0400, Jeff Garzik wrote:

> For LABEL to work on root filesystem, you need an initrd.

initrd is such a PITA at times, I wondered about something hacky like
sticking LABEL parsing for rootfs (marked init) into the kernel but
it's really gross.

Ideally the initrd/initramfs process just needs better (userspace)
infrastructure to make it more reliable/easier.



  --cw

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

* Re: SATA disk device naming ?
@ 2004-07-14  0:09 DaMouse
  0 siblings, 0 replies; 17+ messages in thread
From: DaMouse @ 2004-07-14  0:09 UTC (permalink / raw)
  To: linux-kernel

This is why you need to keep a rescue disk of something like gentoo 
(normally up to date with driver imho) which you can edit fstab with 
instead of getting stuck...

-DaMouse

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

* Re: SATA disk device naming ?
  2004-07-13 22:35       ` Chris Wedgwood
@ 2004-07-14  9:48         ` P
  2004-07-15  2:44         ` Joel Becker
  1 sibling, 0 replies; 17+ messages in thread
From: P @ 2004-07-14  9:48 UTC (permalink / raw)
  To: Chris Wedgwood
  Cc: Jeff Garzik, Ricky Beam, Eric D. Mudama, Robert M. Stockmann,
	linux-kernel

Chris Wedgwood wrote:
> On Tue, Jul 13, 2004 at 12:49:11PM -0400, Jeff Garzik wrote:
> 
> 
>>For LABEL to work on root filesystem, you need an initrd.
> 
> 
> initrd is such a PITA at times, I wondered about something hacky like
> sticking LABEL parsing for rootfs (marked init) into the kernel but
> it's really gross.
> 
> Ideally the initrd/initramfs process just needs better (userspace)
> infrastructure to make it more reliable/easier.

Something like this?
http://www-124.ibm.com/pipermail/evms/2001-March/000119.html

initrd is awkward but I've found I need the flexibility.
For e.g. I modified nash to support an index as well as
a label so one could have multiple redundant filesystem
images to choose from.

Pádraig.

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

* Re: SATA disk device naming ?
  2004-07-13  3:04 ` Jeff Garzik
@ 2004-07-14 11:20   ` Arnd Bergmann
  2004-07-15 17:37     ` Bartlomiej Zolnierkiewicz
  0 siblings, 1 reply; 17+ messages in thread
From: Arnd Bergmann @ 2004-07-14 11:20 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Robert M. Stockmann, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 553 bytes --]

On Dienstag, 13. Juli 2004 05:04, Jeff Garzik wrote:
> Whoever builds your kernels changed around the kernel configuration on you.
> 
> SATA "disk naming" (what driver you use) did not change from 2.6.3 to 2.6.7.
> 
The thing that changed is the new BLK_DEV_IDE_SATA option that defaults
to 'n', while before it was enabled implicitly.

I was bitten by this as well. Unfortunately I have an md RAID-0 volume
which I can not start after hde/hdg become sda/sdb, so I'll probably
have to keep using the old IDE driver indefinitely.

	Arnd <><

[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: SATA disk device naming ?
  2004-07-13 22:35       ` Chris Wedgwood
  2004-07-14  9:48         ` P
@ 2004-07-15  2:44         ` Joel Becker
  2004-07-25 19:05           ` Greg KH
  1 sibling, 1 reply; 17+ messages in thread
From: Joel Becker @ 2004-07-15  2:44 UTC (permalink / raw)
  To: Chris Wedgwood
  Cc: Jeff Garzik, Ricky Beam, Eric D. Mudama, Robert M. Stockmann,
	linux-kernel

On Tue, Jul 13, 2004 at 03:35:41PM -0700, Chris Wedgwood wrote:
> initrd is such a PITA at times, I wondered about something hacky like
> sticking LABEL parsing for rootfs (marked init) into the kernel but
> it's really gross.
> 
> Ideally the initrd/initramfs process just needs better (userspace)
> infrastructure to make it more reliable/easier.

	I'm waiting for udev to give me consistent device names easily.
Then I can specify root=/dev/disk1 and not have to scan-all-100-disks
for LABEL mounts.

Joel

-- 

	f/8 and be there.

Joel Becker
Senior Member of Technical Staff
Oracle Corporation
E-mail: joel.becker@oracle.com
Phone: (650) 506-8127

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

* Re: SATA disk device naming ?
  2004-07-14 11:20   ` Arnd Bergmann
@ 2004-07-15 17:37     ` Bartlomiej Zolnierkiewicz
  2004-07-15 18:07       ` Jeff Garzik
  0 siblings, 1 reply; 17+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2004-07-15 17:37 UTC (permalink / raw)
  To: Arnd Bergmann, Jeff Garzik; +Cc: Robert M. Stockmann, linux-kernel

On Wednesday 14 of July 2004 13:20, Arnd Bergmann wrote:
> On Dienstag, 13. Juli 2004 05:04, Jeff Garzik wrote:
> > Whoever builds your kernels changed around the kernel configuration on
> > you.
> >
> > SATA "disk naming" (what driver you use) did not change from 2.6.3 to
> > 2.6.7.
>
> The thing that changed is the new BLK_DEV_IDE_SATA option that defaults
> to 'n', while before it was enabled implicitly.

This is a quite fresh change (post 2.6.7) and should be fixed before 2.6.8.
This option should default to 'y', we can put some runtime warning instead.

Jeff, do you agree?

> I was bitten by this as well. Unfortunately I have an md RAID-0 volume
> which I can not start after hde/hdg become sda/sdb, so I'll probably
> have to keep using the old IDE driver indefinitely.
>
> 	Arnd <><


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

* Re: SATA disk device naming ?
  2004-07-15 17:37     ` Bartlomiej Zolnierkiewicz
@ 2004-07-15 18:07       ` Jeff Garzik
  0 siblings, 0 replies; 17+ messages in thread
From: Jeff Garzik @ 2004-07-15 18:07 UTC (permalink / raw)
  To: Bartlomiej Zolnierkiewicz
  Cc: Arnd Bergmann, Robert M. Stockmann, linux-kernel

Bartlomiej Zolnierkiewicz wrote:
> On Wednesday 14 of July 2004 13:20, Arnd Bergmann wrote:
> 
>>On Dienstag, 13. Juli 2004 05:04, Jeff Garzik wrote:
>>
>>>Whoever builds your kernels changed around the kernel configuration on
>>>you.
>>>
>>>SATA "disk naming" (what driver you use) did not change from 2.6.3 to
>>>2.6.7.
>>
>>The thing that changed is the new BLK_DEV_IDE_SATA option that defaults
>>to 'n', while before it was enabled implicitly.
> 
> 
> This is a quite fresh change (post 2.6.7) and should be fixed before 2.6.8.
> This option should default to 'y', we can put some runtime warning instead.
> 
> Jeff, do you agree?


It's a really tough question...  default=n will eliminate a lot of 
problems people are reporting on lkml, but default=y changes the disks 
for the few users not having problems.

It's a tough call...

	Jeff



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

* Re: SATA disk device naming ?
  2004-07-15  2:44         ` Joel Becker
@ 2004-07-25 19:05           ` Greg KH
  0 siblings, 0 replies; 17+ messages in thread
From: Greg KH @ 2004-07-25 19:05 UTC (permalink / raw)
  To: Chris Wedgwood, Jeff Garzik, Ricky Beam, Eric D. Mudama,
	Robert M. Stockmann, linux-kernel

On Wed, Jul 14, 2004 at 07:44:14PM -0700, Joel Becker wrote:
> On Tue, Jul 13, 2004 at 03:35:41PM -0700, Chris Wedgwood wrote:
> > initrd is such a PITA at times, I wondered about something hacky like
> > sticking LABEL parsing for rootfs (marked init) into the kernel but
> > it's really gross.
> > 
> > Ideally the initrd/initramfs process just needs better (userspace)
> > infrastructure to make it more reliable/easier.
> 
> 	I'm waiting for udev to give me consistent device names easily.
> Then I can specify root=/dev/disk1 and not have to scan-all-100-disks
> for LABEL mounts.

What's missing from udev to let you do this today?

thanks,

greg k-h

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

end of thread, other threads:[~2004-07-25 23:36 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-13  2:25 SATA disk device naming ? Robert M. Stockmann
2004-07-13  3:04 ` Jeff Garzik
2004-07-14 11:20   ` Arnd Bergmann
2004-07-15 17:37     ` Bartlomiej Zolnierkiewicz
2004-07-15 18:07       ` Jeff Garzik
2004-07-13  6:46 ` Eric D. Mudama
2004-07-13 13:24   ` Ian Soboroff
2004-07-13 16:23   ` Ricky Beam
2004-07-13 16:49     ` Jeff Garzik
2004-07-13 17:29       ` Tigran Aivazian
2004-07-13 22:35       ` Chris Wedgwood
2004-07-14  9:48         ` P
2004-07-15  2:44         ` Joel Becker
2004-07-25 19:05           ` Greg KH
2004-07-13 17:15     ` Tigran Aivazian
2004-07-13 16:58       ` Muli Ben-Yehuda
  -- strict thread matches above, loose matches on Subject: below --
2004-07-14  0:09 DaMouse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox