OpenVZ Forum


Home » General » Support » Centos 5 and adaptec RAID card=trouble
Centos 5 and adaptec RAID card=trouble [message #22122] Sun, 21 October 2007 19:33 Go to next message
bryonovz is currently offline  bryonovz
Messages: 3
Registered: October 2007
Junior Member
Hi!
First..it should be pointed out I am far from new at this.
This is openvz server conversion #18...but the first with Centos5 and a RAID card.

Bottom line is this:

I can't completely disable SeLinux

I've done everything..all the normal stuff..even tried in rc.sysinit

SATA drive dies..and that's all she wrote.

I suspect if I could completely disable Selinux..it might actually work or at least give me an idea on what else is not working.

Thanks

Bryon
Re: Centos 5 and adaptec RAID card=trouble [message #22158 is a reply to message #22122] Mon, 22 October 2007 16:02 Go to previous messageGo to next message
dranch is currently offline  dranch
Messages: 33
Registered: August 2007
Member
SElinux really shouldn't have any impact on hardware. Could you post your error (I imagine it's a panic), your HW details, etc. My gut suspicion is that your Raid controller isn't supported in the kernel or the initrd file is missing the driver module.
Re: Centos 5 and adaptec RAID card=trouble [message #22162 is a reply to message #22158] Mon, 22 October 2007 17:08 Go to previous messageGo to next message
bryonovz is currently offline  bryonovz
Messages: 3
Registered: October 2007
Junior Member
Hi!
I'm thinking the same thing...a similar post was made on centos board. It does seem odd to have something you can't completely disable..but..whatever.

I am going several ways on this:

1) Recompile the kernel from source..then run the install program..and see if it then agrees this is indeed a kernel

2) Recompile the kernel with the driver built in

Last shot:

3) Remove RAID card..rinse..repeat. Wink

Here's the errors:

Oct 21 07:38:25 ser4 kernel: SCSI subsystem initialized
Oct 21 07:38:25 ser4 kernel: aar81xx: module license 'Adaptec' taints kernel.
Oct 21 07:38:25 ser4 kernel: aar81xx: 1.4.11975.0
Oct 21 07:38:25 ser4 kernel: aar81xx max xfer 64K
Oct 21 07:38:25 ser4 kernel: ACPI: PCI Interrupt Link [APC8] enabled at IRQ 16
Oct 21 07:38:25 ser4 kernel: ACPI: PCI Interrupt 0000:02:00.0[A] -> Link [APC8] -> GSI 16 (level, low) -> IRQ 201
Oct 21 07:38:25 ser4 kernel: scsi0 : Adaptec aar81xx SATA HostRAID Controller
Oct 21 07:38:25 ser4 kernel: Vendor: ADAPTEC Model: RAID 1 Rev: 1.0
Oct 21 07:38:25 ser4 kernel: Type: Direct-Access ANSI SCSI revision: 05
Oct 21 07:38:25 ser4 kernel: scsi0:11:0: Tagged Queuing enabled. Depth 16
Oct 21 07:38:25 ser4 kernel: SCSI device sda: 624737856 512-byte hdwr sectors (319866 MB)
Oct 21 07:38:25 ser4 kernel: sda: test WP failed, assume Write Enabled
Oct 21 07:38:25 ser4 kernel: sda: asking for cache data failed
Oct 21 07:38:25 ser4 kernel: sda: assuming drive cache: write through
Oct 21 07:38:25 ser4 kernel: SCSI device sda: 624737856 512-byte hdwr sectors (319866 MB)
Oct 21 07:38:25 ser4 kernel: sda: test WP failed, assume Write Enabled
Oct 21 07:38:25 ser4 kernel: sda: asking for cache data failed
Oct 21 07:38:25 ser4 kernel: sda: assuming drive cache: write through
Oct 21 07:38:25 ser4 kernel: sda: sda1 sda2 sda3
Oct 21 07:38:25 ser4 kernel: sd 0:0:11:0: Attached scsi disk sda
Oct 21 07:38:25 ser4 kernel: ACPI: PCI Interrupt Link [APSI] enabled at IRQ 21
Oct 21 07:38:25 ser4 kernel: ACPI: PCI Interrupt 0000:00:08.0[A] -> Link [APSI] -> GSI 21 (level, low) -> IRQ 209
Oct 21 07:38:25 ser4 kernel: ata1: SATA max UDMA/133 cmd 0x9F0 ctl 0xBF2 bmdma 0xDC00 irq 209
Oct 21 07:38:25 ser4 kernel: ata2: SATA max UDMA/133 cmd 0x970 ctl 0xB72 bmdma 0xDC08 irq 209
Oct 21 07:38:25 ser4 kernel: scsi1 : sata_nv
Oct 21 07:38:25 ser4 kernel: ata1: SATA link down (SStatus 0 SControl 300)
Oct 21 07:38:25 ser4 kernel: ATA: abnormal status 0x7F on port 0x9F7
Oct 21 07:38:25 ser4 kernel: scsi2 : sata_nv
Oct 21 07:38:25 ser4 kernel: ata2: SATA link down (SStatus 0 SControl 300)
Oct 21 07:38:25 ser4 kernel: ATA: abnormal status 0x7F on port 0x977

The way I see it..could the sata_nv interfere with the adaptec driver? Happily..this seemed to work:

[root@ser4 boot]# mkinitrd -v -f /boot/initrd-2.6.18-8.1.14.el5.028stab045.1 2.6.18-8.1.14.el5.028stab045.1
Creating initramfs
Looking for deps of module uhci-hcd
Looking for deps of module ohci-hcd
Looking for deps of module ehci-hcd
Looking for deps of module ext3: jbd
Looking for deps of module jbd
Found root device sda3 for LABEL=/
Looking for driver for device sda3
Looking for deps of module pci:v00009005d00000243sv00009005sd00000243bc01sc04i00
Looking for deps of module aar81xx
Looking for deps of module sata_nv: scsi_mod libata
Looking for deps of module scsi_mod
Looking for deps of module sd_mod: scsi_mod
Looking for deps of module libata: scsi_mod
Looking for deps of module aar81xx
Looking for deps of module ide-disk
Using modules: /lib/modules/2.6.18-8.1.14.el5.028stab045.1/kernel/drivers/u sb/host/uhci-hcd.ko /lib/modules/2.6.18-8.1.14.el5.028stab045.1/kernel/drivers/u sb/host/ohci-hcd.ko /lib/modules/2.6.18-8.1.14.el5.028stab045.1/kernel/drivers/u sb/host/ehci-hcd.ko /lib/modules/2.6.18-8.1.14.el5.028stab045.1/kernel/fs/jbd/jb d.ko /lib/modules/2.6.18-8.1.14.el5.028stab045.1/kernel/fs/ext3/e xt3.ko /lib/modules/2.6.18-8.1.14.el5.028stab045.1/kernel/drivers/s csi/scsi_mod.ko /lib/modules/2.6.18-8.1.14.el5.028stab045.1/kernel/drivers/s csi/sd_mod.ko /lib/modules/2.6.18-8.1.14.el5.028stab045.1/kernel/drivers/s csi/libata.ko /lib/modules/2.6.18-8.1.14.el5.028stab045.1/kernel/drivers/s csi/sata_nv.ko
/sbin/nash -> /tmp/initrd.pM6208/bin/nash
/sbin/insmod.static -> /tmp/initrd.pM6208/bin/insmod
copy from `/lib/modules/2.6.18-8.1.14.el5.028stab045.1/kernel/drivers/ usb/host/uhci-hcd.ko' [elf32-i386] to `/tmp/initrd.pM6208/lib/uhci-hcd.ko' [elf32-i386]
copy from `/lib/modules/2.6.18-8.1.14.el5.028stab045.1/kernel/drivers/ usb/host/ohci-hcd.ko' [elf32-i386] to `/tmp/initrd.pM6208/lib/ohci-hcd.ko' [elf32-i386]
copy from `/lib/modules/2.6.18-8.1.14.el5.028stab045.1/kernel/drivers/ usb/host/ehci-hcd.ko' [elf32-i386] to `/tmp/initrd.pM6208/lib/ehci-hcd.ko' [elf32-i386]
copy from `/lib/modules/2.6.18-8.1.14.el5.028stab045.1/kernel/fs/jbd/j bd.ko' [elf32-i386] to `/tmp/initrd.pM6208/lib/jbd.ko' [elf32-i386]
copy from `/lib/modules/2.6.18-8.1.14.el5.028stab045.1/kernel/fs/ext3/ ext3.ko' [elf32-i386] to `/tmp/initrd.pM6208/lib/ext3.ko' [elf32-i386]
copy from `/lib/modules/2.6.18-8.1.14.el5.028stab045.1/kernel/drivers/ scsi/scsi_mod.ko' [elf32-i386] to `/tmp/initrd.pM6208/lib/scsi_mod.ko' [elf32-i386]
copy from `/lib/modules/2.6.18-8.1.14.el5.028stab045.1/kernel/drivers/ scsi/sd_mod.ko' [elf32-i386] to `/tmp/initrd.pM6208/lib/sd_mod.ko' [elf32-i386]
copy from `/lib/modules/2.6.18-8.1.14.el5.028stab045.1/kernel/drivers/ scsi/libata.ko' [elf32-i386] to `/tmp/initrd.pM6208/lib/libata.ko' [elf32-i386]
copy from `/lib/modules/2.6.18-8.1.14.el5.028stab045.1/kernel/drivers/ scsi/sata_nv.ko' [elf32-i386] to `/tmp/initrd.pM6208/lib/sata_nv.ko' [elf32-i386]
Adding module uhci-hcd
Adding module ohci-hcd
Adding module ehci-hcd
Adding module jbd
Adding module ext3
Adding module scsi_mod
Adding module sd_mod

>>I've never done that before..and have not tested it yet.
Looks good, though.

Thanks!

Bryon
Re: Centos 5 and adaptec RAID card=trouble [message #22169 is a reply to message #22162] Mon, 22 October 2007 22:33 Go to previous messageGo to next message
dranch is currently offline  dranch
Messages: 33
Registered: August 2007
Member
I don't see any problems here in your kernel boot output

The Adaptec driver seems to see your partitions just fine (sda1, sda2, sda3). Note that sata1 and sata2 are probably motherboard SATA connections that aren't in use.

One problem I *DO* see is that your mkinitrd isn't installing your
aar81xx module. It tries to figure out any dependencies but it doesn't copy it over. That's bad and probably the root of your issue if you try to use a modularized kernel.

--David
Re: Centos 5 and adaptec RAID card=trouble [message #22170 is a reply to message #22169] Mon, 22 October 2007 22:51 Go to previous message
bryonovz is currently offline  bryonovz
Messages: 3
Registered: October 2007
Junior Member
Hi!
Good. Thanks. As I said..I think if I can compile the kernel plainjane locally..and then try to apply the driver..it might work. If not..I'll compile it in.

Doing it the rpm source way looks the best way for the first timer.

Thanks!

Bryon
Previous Topic: NFS mounts disappearing from OAS servers
Next Topic: openvz and ppp
Goto Forum:
  


Current Time: Sat Nov 16 23:34:37 GMT 2024

Total time taken to generate the page: 0.03234 seconds