What should the output of "mdadm --detail --scan" look like? root@disk2:~# mdadm --detail --scan mdadm: option s not valid in mode D Thus spake Derek Vadala (derek@cynicism.com): > 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 :wq! --------------------------------------------------------------------------- Robert L. Harris | PGP Key ID: E344DA3B @ x-hkp://pgp.mit.edu DISCLAIMER: These are MY OPINIONS ALONE. I speak for no-one else. FYI: perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'
Attachment:
pgp00020.pgp
Description: PGP signature