Re: Scripted RAID config

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux