LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
 
Search this Thread
Old 01-27-2006, 03:47 AM   #1
rspielma
LQ Newbie
 
Registered: Jan 2006
Posts: 4

Rep: Reputation: 0
boot disk no longer /dev/sda when adding ext. disks


Hi hw-techies,

This is a 4 cpu system w/ native scsi system disk(s).
The first disk on the "first" contr is /dev/sda , my system disk.
Adding some FC disks (jbod, dual attached) over two pci ql2200 hba's moves the system disk device up, for example adding three ext disks makes my system disk, known as /dev/sda to grub, to become /dev/sdd. Adding another ext disk would move it one up, to /dev/sde !
That's obviously not nice to /boot/grub/menu.lst, since it will not find a usable /dev/sda2 (root) anymore, and would need manual fixing every time an ext disk is add/rem.

Q.: Is there a mechnism to keep the device names persistent?

Here're some tech details:
# lspci
00:06.0 Ethernet controller: Intel Corporation 82557/8/9 [Ethernet Pro 100] (rev 05)
00:07.0 SCSI storage controller: QLogic Corp. QLA2200 64-bit Fibre Channel Adapter (rev 05)
00:08.0 SCSI storage controller: LSI Logic / Symbios Logic 53c810 (rev 23)
00:09.0 VGA compatible controller: nVidia Corporation NV11 [GeForce2 MX/MX 400] (rev a1)
00:0a.0 VGA compatible controller: Cirrus Logic GD 5480 (rev 23)
00:0b.0 PIC: Intel Corporation 683053 Programmable Interrupt Device
00:0c.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 02)
00:0c.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
00:0c.2 USB Controller: Intel Corporation 82371AB/EB/MB PIIX4 USB (rev 01)
00:0c.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 02)
00:10.0 Host bridge: Intel Corporation 450NX - 82451NX Memory & I/O Controller (rev 03)
00:12.0 Host bridge: Intel Corporation 450NX - 82454NX/84460GX PCI Expander Bridge (rev 02)
00:13.0 Host bridge: Intel Corporation 450NX - 82454NX/84460GX PCI Expander Bridge (rev 02)
01:01.0 Ethernet controller: Digital Equipment Corporation DECchip 21140 [FasterNet] (rev 20)
01:02.0 SCSI storage controller: QLogic Corp. QLA2200 64-bit Fibre Channel Adapter (rev 05)
01:03.0 SCSI storage controller: LSI Logic / Symbios Logic 53C896/897 (rev 01)
01:03.1 SCSI storage controller: LSI Logic / Symbios Logic 53C896/897 (rev 01)


I can see in hwinfo, that 00:07.0 = QLA2200 has become my "first" storage controller...


# hwinfo --short --disk
disk:
/dev/sda SGI ST173404FC <---- three new fc jbod disks
/dev/sdb SGI ST173404FC
/dev/sdc SGI ST173404FC
/dev/sdd IBM DNES-309170Y <---- was /dev/sda, is system disk

# cat /etc/issue
Welcome to SUSE LINUX 10.0 (i586) - Kernel \r (\l).


# more /proc/version
Linux version 2.6.13-15-smp (geeko@buildhost) (gcc version 4.0.2 20050901 (prerelease) (SUSE Linux)) #1 SMP Tue Sep 13 14:5
6:15 UTC 2005


On the other hand, fstab seems to be somewhat ok with /dev/sda as root (no swap thou):
# df
Dateisystem 1K-Blöcke Benutzt Verfügbar Ben% Eingehängt auf
/dev/sda2 7893728 5872848 2020880 75% /
tmpfs 907404 12 907392 1% /dev/shm

but mounting /dev/sdd2 show this:
# df
Dateisystem 1K-Blöcke Benutzt Verfügbar Ben% Eingehängt auf
/dev/sda2 7893728 5872828 2020900 75% /
tmpfs 907404 12 907392 1% /dev/shm
/dev/sdd2 7893728 5872828 2020900 75% /mnt/sdd2

!! sda2 and sdd2 are one and the same partition = ? !!

Any kind of help is appreciated.
 
Old 01-28-2006, 02:30 PM   #2
Keruskerfuerst
Member
 
Registered: Oct 2005
Location: Lat: 48°23´56´´N, Lon: 10°41´45´´E
Distribution: Gentoo
Posts: 857

Rep: Reputation: 38
You could try to change the boot priority in the bios:1. SCSI 2. IDE
 
Old 01-28-2006, 04:13 PM   #3
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Use labels instead of using device nodes.
 
Old 01-31-2006, 04:20 AM   #4
rspielma
LQ Newbie
 
Registered: Jan 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Keruskerfuerst
You could try to change the boot priority in the bios:1. SCSI 2. IDE

Sorry NO IDE, is native scsi boot drive...!
 
Old 01-31-2006, 04:46 AM   #5
rspielma
LQ Newbie
 
Registered: Jan 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Electro
Use labels instead of using device nodes.
OK, that works for a partition with a filesystem.
What about swap ? It didn't mount, "waiting for /dev/sda1 to appear....". (I know I can add swap later on), but nicer if boot disk stays /dev/sda ! I'll check my bios if I can prioritize one disk contr over the others....

Grub: after a few manual tries, I found this to be a working boot laoder entry in "menu.lst":
...
title SUSE 10.0 via LABEL
kernel (hd0,1)/boot/vmlinuz root=LABEL=root vga=0x31a selinux=0 resume=/dev/sda1 splash=silent showopts
initrd (hd0,1)/boot/initrd
...
resume wont work, no swap either

fdisk/parted: my boot disk has become /dev/sdd to them (+1 letter for each added disk in my jbod array).
Is there no other way to define the target?? (I stroke udev, but have to read first).

/r
 
Old 12-26-2007, 06:21 PM   #6
robertgood
LQ Newbie
 
Registered: Dec 2007
Location: Canberra
Distribution: many Linux distro's
Posts: 2

Rep: Reputation: 0
Smile

Just a suggestion, check your modprobe.conf file and make sure your local disk controller is the first to load. Linux will name the first device it finds as sda.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Firewire and USB disks both want SCSI /dev/sda Crito Linux - Hardware 7 04-25-2006 11:21 AM
where did my SATA drive go? not /dev/hde or /dev/sda edman007 Linux - Hardware 1 01-16-2005 10:23 PM
/dev/sda and /dev/sda1 disappeared using sii3112A striderstrahan Linux - Software 0 09-16-2004 05:00 AM
Sandisk USB card Reader not linking /dev/sg0 to /dev/sda acidraven Linux - Hardware 1 06-19-2004 03:56 PM
USB Compact flash card reader hotplug creates /dev/sda but no /dev/sda1 -Mandrake 9.1 bibinono Linux - Hardware 2 08-11-2003 09:37 AM


All times are GMT -5. The time now is 01:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration