Re: raidtab -> mdadm conf file?

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

 



On Wed, 19 Feb 2003, Robert L. Harris wrote:

>   I currently have about 30 machines using raidtools and /etc/raidtab.
> Does anyone have a script that will generate a complete mdadm conf
> file based on a raidtab or output from mdadm --detail?  While mdadm may

Assuming the arrays are operational you could do something like:


# echo "DEVICES /dev/sd*" > /etc/mdadm.conf
# mdadm --detail --scan >> /etc/mdadm.conf

Just adjust the first command so that it has the desired device set.

--
Derek Vadala, derek@cynicism.com, http://www.cynicism.com/~derek

-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux