Adaptec 5805

Wakko

Renowned Member
Dec 15, 2010
9
0
66
Saint Petersburg, Russia
Hello!

I using Proxmox VE 1.7:
Code:
yakko:~# pveversion --verbose
pve-manager: 1.7-10 (pve-manager/1.7/5323)
running kernel: 2.6.32-4-pve
proxmox-ve-2.6.35: 1.6-7
pve-kernel-2.6.32-4-pve: 2.6.32-28
pve-kernel-2.6.35-1-pve: 2.6.35-7
qemu-server: 1.1-25
pve-firmware: 1.0-9
libpve-storage-perl: 1.0-16
vncterm: 0.9-2
vzctl: 3.0.24-1pve4
vzdump: 1.2-9
vzprocps: 2.0.11-1dso2
vzquota: 3.0.11-1
pve-qemu-kvm: 0.13.0-2
ksm-control-daemon: 1.0-4
Now I install Adaptec 5805 RAID card to my computer and I can not see attached drives (as /dev/sdX?).
Code:
yakko:~# lsscsi --generic
[0:1:2:0]    disk    WDC      WD3000GLFS-0     03.0  -         /dev/sg0
[0:1:3:0]    disk    WDC      WD3000GLFS-0     03.0  -         /dev/sg1
[1:0:0:0]    disk    ATA      WDC WD4500HLHX-0 04.0  /dev/sda  /dev/sg2
[2:0:0:0]    disk    ATA      WDC WD4500HLHX-0 04.0  /dev/sdb  /dev/sg3
[3:0:0:0]    disk    ATA      WDC WD1001FALS-0 05.0  /dev/sdc  /dev/sg4
[4:0:0:0]    disk    ATA      WDC WD1001FALS-0 05.0  /dev/sdd  /dev/sg5
[5:0:0:0]    disk    ATA      WDC WD1001FALS-0 05.0  /dev/sde  /dev/sg6
[6:0:0:0]    disk    ATA      WDC WD1001FALS-0 05.0  /dev/sdf  /dev/sg7
Both WD3000GLFS attached to Adaptec.

I try to boot to pve-kernel-2.6.35-1. In that kernel everything works fine, but this kernel doesn't support OpenVZ:
Code:
yakko:~# lsscsi --generic
[0:1:2:0]    disk    WDC      WD3000GLFS-0     03.0  /dev/sda  /dev/sg0
[0:1:3:0]    disk    WDC      WD3000GLFS-0     03.0  /dev/sdb  /dev/sg1
[1:0:0:0]    disk    ATA      WDC WD4500HLHX-0 04.0  /dev/sdc  /dev/sg2
[2:0:0:0]    disk    ATA      WDC WD4500HLHX-0 04.0  /dev/sdd  /dev/sg3
[3:0:0:0]    disk    ATA      WDC WD1001FALS-0 05.0  /dev/sde  /dev/sg4
[4:0:0:0]    disk    ATA      WDC WD1001FALS-0 05.0  /dev/sdf  /dev/sg5
[5:0:0:0]    disk    ATA      WDC WD1001FALS-0 05.0  /dev/sdg  /dev/sg6
[6:0:0:0]    disk    ATA      WDC WD1001FALS-0 05.0  /dev/sdh  /dev/sg7
Is it possible to update aacraid module in default pve-kernel-2.6.32-4-pve kernel?
 
I run two boxes with 2.6.32 and 5805Z here without problems so I do not think that the driver is missing.

did you configure the raid volumes in the raid bios?
 
No I didn't configure raid volumes in the raid bios, I just attach two my exist HDDs with some filesystem to this Adapter.
In 2.6.35 I have access to this filesystems, but in 2.6.32 I have not.

For some time I need to use this card like a usual SATA controller.
 
I never tried it this way and I am surprised that you see the drives on 2.6.35 without configuring it.

If you use a raid controller you should configure the drives on the raid controller. you can also configure single drive in the bios but you will loose the data on the drives.

(There is no plan to change the behavior in the 2.6.32 kernel)
 
I solve this bug.
1. Compile and install new aacraid driver 1.1.5-24600;
2. echo 'options aacraid expose_physicals=1' > /etc/modprobe.d/aacraid
3. update-initramfs -k 2.6.32-4-pve -u
4. reboot

And now I have:
Code:
yakko:~# uname -a
Linux yakko 2.6.32-4-pve #1 SMP Fri Nov 26 06:42:28 CET 2010 x86_64 GNU/Linux

yakko:~# lsscsi --generic
[0:1:2:0]    disk    WDC      WD3000GLFS-0     03.0  /dev/sda  /dev/sg0
[0:1:3:0]    disk    WDC      WD3000GLFS-0     03.0  /dev/sdb  /dev/sg1
[1:0:0:0]    disk    ATA      WDC WD4500HLHX-0 04.0  /dev/sdc  /dev/sg2
[2:0:0:0]    disk    ATA      WDC WD4500HLHX-0 04.0  /dev/sdd  /dev/sg3
[3:0:0:0]    disk    ATA      WDC WD1001FALS-0 05.0  /dev/sde  /dev/sg4
[4:0:0:0]    disk    ATA      WDC WD1001FALS-0 05.0  /dev/sdf  /dev/sg5
[5:0:0:0]    disk    ATA      WDC WD1001FALS-0 05.0  /dev/sdg  /dev/sg6
[6:0:0:0]    disk    ATA      WDC WD1001FALS-0 05.0  /dev/sdh  /dev/sg7

yakko:~# fdisk -l /dev/sda /dev/sdb

Disk /dev/sda: 300.0 GB, 300069052416 bytes
255 heads, 63 sectors/track, 36481 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0004bb96

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1           8       64228+  fd  Linux raid autodetect
/dev/sda2               9        2000    16000740   fd  Linux raid autodetect
/dev/sda3            2001        2249     2000092+  82  Linux swap / Solaris

Disk /dev/sdb: 300.0 GB, 300069052416 bytes
255 heads, 63 sectors/track, 36481 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xe57d4264

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       36481   293033601    7  HPFS/NTFS
It will be great deal to update aacraid module in 2.6.32 to the new version.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!