compaq array controllers

Marc Martinez lastxit+fai at technogeeks.org
Sat Dec 1 03:01:56 CET 2001


On Fri, Nov 30, 2001 at 11:45:35AM +0100, Thomas Lange wrote:
> >>>>> On Thu, 29 Nov 2001 13:59:58 -0800, Marc Martinez <lastxit+fai at technogeeks.org> said:
> 
>     > the Compaq SMART2 raid array controllers have their devices
>     > created in a sub-directory of /dev, and use a naming convention
>     > of "controller # + disk # + partition #" so that the final
>     > devices look like: /dev/ida/c0d0p1 /dev/ida/c0d0p2 and so on..
> 
> Grep the mailling list archive for it.  There's an old mail about RAID
> and setup_harddisk. A simple workaround is, so create a hook
> partition.RAID which should be a simple shell script that partitions
> your disk and creates a fstab file. The use "skiptask partition" to skip
> the default task.

I did manage to turn that up after sending out the mail, but I would
really like to keep the flexibility of the standard scripts if at all
possible.  I have a patched sfdisk binary working now, and am
gradually working out the needed changes in the setup_harddisks
script.  the regex adjustments were small, and easily maintainable. it
looks like the only major issue I'm running into now is with the final
text output representation of the partition devices, since everything
is currently based around straight concatenation of the raw disk
device and the partition number.

would adding an extra subroutine for final device name generation be
an acceptable direction for this?  I intend to post diffs of my
changes when I have something that works cleanly, but I don't want to
start off in a bad direction..  some sort of extra global hash table
lookup for these things is another possibility I've considered.

comments welcome, if it's considered a generally bad idea and I run
into serious problems I may go the other route with a custom script.

thanks for any input..

Marc



More information about the linux-fai mailing list