* raidtab -> mdadm conf file?
@ 2003-02-19 20:25 Robert L. Harris
2003-02-19 20:53 ` Derek Vadala
0 siblings, 1 reply; 4+ messages in thread
From: Robert L. Harris @ 2003-02-19 20:25 UTC (permalink / raw)
To: Linux-Raid
[-- Attachment #1: Type: text/plain, Size: 805 bytes --]
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
not need need the conf file once it's built etc I like to keep them
around in the event we have to rebuild an array that's destroyed (2+
disks out of a RAID5 Array)) to an identicle, standard format.
Robert
: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 #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: raidtab -> mdadm conf file?
2003-02-19 20:25 raidtab -> mdadm conf file? Robert L. Harris
@ 2003-02-19 20:53 ` Derek Vadala
2003-02-19 20:56 ` Robert L. Harris
0 siblings, 1 reply; 4+ messages in thread
From: Derek Vadala @ 2003-02-19 20:53 UTC (permalink / raw)
To: Robert L. Harris; +Cc: Linux-Raid
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: raidtab -> mdadm conf file?
2003-02-19 20:53 ` Derek Vadala
@ 2003-02-19 20:56 ` Robert L. Harris
2003-02-19 21:07 ` Derek Vadala
0 siblings, 1 reply; 4+ messages in thread
From: Robert L. Harris @ 2003-02-19 20:56 UTC (permalink / raw)
To: Derek Vadala; +Cc: Linux-Raid
[-- Attachment #1: Type: text/plain, Size: 1170 bytes --]
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 #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: raidtab -> mdadm conf file?
2003-02-19 20:56 ` Robert L. Harris
@ 2003-02-19 21:07 ` Derek Vadala
0 siblings, 0 replies; 4+ messages in thread
From: Derek Vadala @ 2003-02-19 21:07 UTC (permalink / raw)
To: Robert L. Harris; +Cc: Linux-Raid
On Wed, 19 Feb 2003, Robert L. Harris wrote:
> What should the output of "mdadm --detail --scan" look like?
>
> root@disk2:~# mdadm --detail --scan
> mdadm: option s not valid in mode D
>
A series of array entries like such (one for each array that's running):
ARRAY /dev/md0 level=raid1 num-devices=2 UUID=8b9bafc6:ed98bbd6:83d1c10f:d388a65f
ARRAY /dev/md6 level=raid1 num-devices=2 UUID=98079ef1:26a71e58:a91327d9:ada25de7
etc....
Which version of mdadm are you working with?
--
Derek Vadala, derek@cynicism.com, http://www.cynicism.com/~derek
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-02-19 21:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-19 20:25 raidtab -> mdadm conf file? Robert L. Harris
2003-02-19 20:53 ` Derek Vadala
2003-02-19 20:56 ` Robert L. Harris
2003-02-19 21:07 ` Derek Vadala
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).