Support for 3ware 9690SA [message #29692] |
Mon, 21 April 2008 16:14 |
uhhosting
Messages: 5 Registered: March 2008
|
Junior Member |
|
|
Hi,
I want to run a box with the 3ware 9690SA SAS RAID controller. However, the kernel Virtuozzo uses doesn't officially support this device.
3ware themselves do make available a driver for the kernel, which can be compiled in manually. For this I'll need the kernel source Virtuozzo uses.
The latest kernel Virtuozzo uses for CentOS 5.1 is: 2.6.18-028stab053.10
Am I right in thinking this is the same one provided by OpenVZ: http://wiki.openvz.org/Download/kernel/rhel5/028stab053.10 ?
Could I download the source, compile in the 3ware driver for the controller without all hell breaking loose and Virtuozzo dying?
|
|
|
Re: Support for 3ware 9690SA [message #29693 is a reply to message #29692] |
Mon, 21 April 2008 16:43 |
khorenko
Messages: 533 Registered: January 2006 Location: Moscow, Russia
|
Senior Member |
|
|
Hi,
well, your idea looks correct - OpenVZ and Virtuozzo kernels are almost the same and your trick might bring you to a working system, but...
why don't you try to ask Virtuozzo support? You have a problem, great. Just try to ask - may be they already have a solution?
--
Konstantin
If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
|
|
|
|
|
Re: Support for 3ware 9690SA [message #29800 is a reply to message #29692] |
Fri, 25 April 2008 00:29 |
uhhosting
Messages: 5 Registered: March 2008
|
Junior Member |
|
|
Bingo.
With assistance from 3ware:
# rpm -ivh ovzkernel-2.6.18-53.1.4.el5.028stab053.4.x86_64.rpm
# rpm -ivh ovzkernel-devel-2.6.18-53.1.4.el5.028stab053.4.x86_64.rpm
(downloadable here: http://wiki.openvz.org/Download/kernel/rhel5/028stab053.4)
# cd /usr/src ; ln -s /usr/src/kernels/2.6.18-53.1.4.el5.028stab053.4.x86_64 linux
Install GCC:
# yum install gcc
Download 3ware source (available on the full ISO, use packages/drivers/linux/src/2.6/kernels/new_distributions/3w- 9xxx.tgz
# tar zxvf 3w* ; cd driver
# make -f Makefile
Update the ramdisk
# cp 3w-9xxx.ko /lib/module/2.6.18-028stab053.4/kernel/drivers/scsi
# mkinitrd -v -f /boot/initrd-2.6.18-028stab053.4.img 2.6.18-028stab053.4
Modify grub.conf and remove the OpenVZ kernel, as a Virtuozzo user I don't want this kernel booting, I want the Virtuozzo kernel:
# nano -w /boot/grub/grub.conf
Reboot.
[Updated on: Fri, 25 April 2008 00:30] Report message to a moderator
|
|
|
Re: Support for 3ware 9690SA [message #29816 is a reply to message #29692] |
Fri, 25 April 2008 10:00 |
uhhosting
Messages: 5 Registered: March 2008
|
Junior Member |
|
|
I made a slight mistake with the ramdisk step:
# cp 3w-9xxx.ko /lib/modules/2.6.18-028stab053.4/kernel/drivers/scsi
Should be "modules" and not what I said above, "module".
Also, you'll need to repeat the process when updating Virtuozzo to 2.6.18-028stab053.10. When compiled against 2.6.18-028stab053.4 the 3ware driver doesn't work with 2.6.18-028stab053.10 unless recompiled.
|
|
|