Hey all,
I've got two servers with pretty identical hardware, and they use a Serial ATA drive.
Both had fedora core 4 installed, and see the drive as /dev/sda*
Code:
brw-r----- 1 root disk 8, 0 Nov 29 03:14 /dev/sda
brw-r----- 1 root disk 8, 1 Nov 29 03:14 /dev/sda1
brw-r----- 1 root disk 8, 2 Nov 29 03:14 /dev/sda2
brw-r----- 1 root disk 8, 3 Nov 29 03:14 /dev/sda3
All is right with the world.
I reinstall one of them with CentOS 5, and the drive is seen as /dev/hda*
Code:
brw-r----- 1 root disk 3, 0 Dec 27 02:14 /dev/hda
brw-r----- 1 root disk 3, 1 Dec 27 02:14 /dev/hda1
brw-r----- 1 root disk 3, 2 Dec 27 02:14 /dev/hda2
brw-r----- 1 root disk 3, 3 Dec 27 02:14 /dev/hda3
Not only different names, but using different major # of the mknod. Can anyone tell me how to map the # to which kernel module? The /dev/sda's are 8, and the /dev/hda's are 3.
On top of that, and this is the painful part; the speed of the drive under CentOS 5 is very slow. I'm using hdparm to benchmark this:
On the fc4 box with /dev/sda
Code:
hdparm -tT /dev/sda
/dev/sda:
Timing cached reads: 4332 MB in 2.00 seconds = 2165.25 MB/sec
Timing buffered disk reads: 176 MB in 3.03 seconds = 58.11 MB/sec
Nearly 60 MB/sec, what you would expect.
On the centos 5 server with /dev/hda (same hardware)
Code:
hdparm -tT /dev/hda
/dev/hda:
Timing cached reads: 4416 MB in 2.00 seconds = 2208.28 MB/sec
Timing buffered disk reads: 10 MB in 3.07 seconds = 3.26 MB/sec
Not even 4 MB/sec.
The kernel version on the FC4 machine: 2.6.11-1.1369_FC4smp
The kernel version on the CentOS 5 machine: 2.6.18-8.1.15.el5
(both are dual-cpu machines, the CentOS 5 kernel is a smp kernel, it just doesn't show it in the uname -r)
My thoughts are that this is a driver issue....
Here's my info into that with kudzu and lsmod:
FC4 server with /dev/sda
Code:
class: HD
bus: SCSI
detached: 0
device: sda
driver: ignore
desc: "Ata WDC WD2000JS-00M"
host: 0
id: 0
channel: 0
lun: 0
generic: sg0
class: IDE
bus: PCI
detached: 0
driver: ata_piix
desc: "Intel Corporation 82801GB/GR/GH (ICH7 Family) Serial ATA Storage Controllers cc=IDE"
vendorId: 8086
deviceId: 27c0
subVendorId: 1458
subDeviceId: b002
pciType: 1
pcidom: 0
pcibus: 0
pcidev: 1f
pcifn: 2
CentOS 5 server with /dev/hda
Code:
class: HD
bus: IDE
detached: 0
device: hda
desc: "WDC WD1600JS-22NCB1"
physical: 16383/16/63
logical: 19457/255/63
class: IDE
bus: PCI
detached: 0
driver: ata_piix
desc: "Intel Corporation 82801GB/GR/GH (ICH7 Family) Serial ATA Storage Controller IDE"
vendorId: 8086
deviceId: 27c0
subVendorId: 147b
subDeviceId: 107e
pciType: 1
pcidom: 0
pcibus: 0
pcidev: 1f
pcifn: 2
Nearly identical, they're the same kind of drive, except for the bus and desc are different...
Here are diffs on lsmod and the files in the lib directory of initrd:
Code:
lsmod:
3c59x
ac
+asus_acpi
ata_piix
battery
button
-cryptoloop
+dm_mirror
dm_mod
ehci_hcd
ext3
-hw_random
+floppy
i2c_core
+i2c_ec
i2c_i801
-ip_conntrack
-ip_tables
-ipt_state
-iptable_filter
-iptable_mangle
-iptable_nat
ipv6
jbd
libata
-loop
-md5
+lp
mii
+ohci_hcd
+parport
+parport_pc
+pcspkr
+sbs
scsi_mod
sd_mod
-serpent
+serio_raw
snd
snd_hda_codec
snd_hda_intel
initrd:
ata_piix.ko
+ehci-hcd.ko
ext3.ko
jbd.ko
libata.ko
+ohci-hcd.ko
scsi_mod.ko
sd_mod.ko
+uhci-hcd.ko
The things staring with + exist on the CentOS 5 machine and not on the FC4 machine, and things starting with - exist on FC4 but not the CentOS 5 machine.
I've tried several different google searches and am not coming up with anyone else having this same problem.
Any ideas here?