RAID driver cciss

Bruce Edge bedge at troikanetworks.com
Wed May 14 17:36:35 CEST 2003


I used the same kernel with some earlier version of the fai 2.4 beta and 2.4 release and the cciss quit after I moved to the released 2.4, the code in setup-harddisks had explicit checks for cciss before and this code was made more generalized in 2.4, the result was oversimplified and didn't handle cciss properly. We were dropping the cciss platform so I never had to go in and fix it.
Here's my trick to find the exact problem, edit the 1st line of setup-harddisks and add a -d at the end, so when it hits that you drop into the perl debugger.

-Bruce

> -----Original Message-----
> From: Kief Morris [mailto:kief at kief.com]
> Sent: Wednesday, May 14, 2003 2:02 AM
> To: Bruce Edge; linux-fai at rrz.uni-koeln.de
> Subject: RE: RAID driver cciss
> 
> 
> From looking at the setup_harddisks script in CVS, I'm not sure that 
> the script is where the actual breakage is. The script has an 
> "if" statement
> that checks for cciss commented out, but the contents of the 
> if block are
> still there so the code should execute. And the loop that 
> contains the if
> statement never executes, at least on my system.
> 
> My growing suspicion is that the boot kernel distributed with 
> FAI 2.4 and later
> have been compiled without the cciss driver, without which 
> setup_harddisks 
> can't detect the hardware. I plan to spend some time playing 
> with kernel
> configuration to see if I can verify this.
> 
> Kief
> 
> Bruce  Edge typed the following on 10:08 13/05/2003 -0700
> >I think that the setup-harddisks script is broken in FAI 2.4 
> for cciss disk 
> >detection.
> >I haven't tried 2.4.1 though.
> >
> >> -----Original Message-----
> >> From: Kief Morris [mailto:kmorris at kief.com]
> >> Sent: Tuesday, May 13, 2003 10:03 AM
> >> To: linux-fai at rrz.uni-koeln.de
> >> Subject: RAID driver cciss
> >> 
> >> 
> >> Hello, I'm new to FAI, I've been struggling to get it to work with 
> >> some Compaq/HP Proliant servers. I've got one server going
> >> (a DL320 G2), and now I'm working on a DL380 G2, which uses
> >> the Smart Array 5i/532 RAID controller.
> >> 
> >> This machine already has Debian installed with a 2.4.18 kernel,
> >> two virtual drives formatted with ext3 partitions. But when I boot
> >> using FAI (2.4.1), the RAID controller is not recognized.
> >> 
> >> The setup_harddisks script has this:
> >> 
> >>     $result = `sh -c "LC_ALL=C sfdisk -d -q"`;
> >> 
> >> But when I run it from the command line I get nothing:
> >> 
> >>   phobos:~# sh -c "LC_ALL=C sfdisk -d -q"
> >>   phobos:~#
> >> 
> >> Playing around with sfdisk and other utilities gets nothing:
> >> 
> >>   phobos:/tmp/fai# sfdisk -l /dev/cciss/c0d0
> >>   /dev/cciss/c0d0: No such device or address
> >> 
> >>   sfdisk: cannot open /dev/cciss/c0d0 for reading
> >> 
> >> 
> >> The only tool that admits the RAID controller exists is 
> kudzu, which
> >> puts out this:
> >> 
> >> -
> >> class: RAID
> >> bus: PCI
> >> detached: 0
> >> driver: cciss
> >> desc: "Compaq|Smart Array 5i/532"
> >> vendorId: 0e11
> >> deviceId: b178
> >> subVendorId: 0e11
> >> subDeviceId: 4080
> >> pciType: 1
> >> -
> >> 
> >> I'm assuming the kernel FAI boots the machine with has the cciss
> >> driver compiled in, since there are a few references to it in 
> >> the archives
> >> of this list. Is this true? Perhaps the driver version is 
> >> different, but
> >> surely the newer driver would still be able to recognize the 
> >> disk exists
> >> even if it has been partitioned and formatted by an older 
> version of
> >> the driver?
> >> 
> >> Does anyone have experience using FAI 2.4.1 with the Smart Array
> >> controller? Did you have to do anything special? Any suggestions
> >> for further investigation? I'm considering compiling a 
> kernel for FAI
> >> which I'm sure has the cciss driver as a next step.
> >> 
> >> Thanks,
> >> Kief
> >> 
> >> 
> >> More info: when I boot under the old system (hostname zephyr,
> >> but the same system as phobos), I can get useful info using
> >> sfdisk:
> >> 
> >> zephyr:~# sh -c "LC_ALL=C sfdisk -d -q"
> >> # partition table of /dev/cciss/c0d0
> >> unit: sectors
> >> 
> >> /dev/cciss/c0d0p1 : start=       32, size=  195808, Id=83, bootable
> >> /dev/cciss/c0d0p2 : start=   195840, size= 3998400, Id=83
> >> /dev/cciss/c0d0p3 : start=  4194240, size=16001760, Id=83
> >> /dev/cciss/c0d0p4 : start= 20196000, size=15357120, Id=83
> >> # partition table of /dev/cciss/c0d1
> >> unit: sectors
> >> 
> >> /dev/cciss/c0d1p1 : start=       32, size=78123808, Id=83
> >> /dev/cciss/c0d1p2 : start= 78123840, size=58596960, Id=83
> >> /dev/cciss/c0d1p3 : start=136720800, size= 5532480, Id=82
> >> /dev/cciss/c0d1p4 : start=        0, size=       0, Id= 0
> >> 
> >> The kernel:
> >> 
> >> zephyr:~# uname -a
> >> Linux zephyr 2.4.18-686-smp #1 SMP Sun Apr 14 12:07:19 EST 
> >> 2002 i686 unknown
> >> 
> >> sfdisk works too:
> >> 
> >> zephyr:~# sfdisk -l /dev/cciss/c0d0
> >> 
> >> Disk /dev/cciss/c0d0: 4357 cylinders, 255 heads, 32 sectors/track
> >> Units = cylinders of 4177920 bytes, blocks of 1024 bytes, 
> >> counting from 0
> >> 
> >>    Device Boot Start     End   #cyls   #blocks   Id  System
> >> /dev/cciss/c0d0p1   *      0+     23      24-    97904   83  Linux
> >> /dev/cciss/c0d0p2         24     513     490   1999200   83  Linux
> >> /dev/cciss/c0d0p3        514    2474    1961   8000880   83  Linux
> >> /dev/cciss/c0d0p4       2475    4356    1882   7678560   83  Linux
> >> 
> >> 
> >> 
> >> 
> 
> 



More information about the linux-fai mailing list