Scripted RAID config

Philip Rowlands phr at doc.ic.ac.uk
Thu Oct 7 23:01:40 UTC 2004


On Thu, 7 Oct 2004, Peter Eisch wrote:

>In the Customization Guide there's an example for how to sniff out
>drives on a system, but that's really only pertinent to IDE-interface
>devices.  Is there a similarly clever way to scan scsi controllers?

This would work to populate the "hds" variable, but for SCSI drives:

$ hds=`awk '{print $4}' < /proc/partitions  |grep '^sd.[0-9]'`


Cheers,
Phil




More information about the Kickstart-list mailing list