linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Detecting array parameters
@ 2010-06-09 21:13 Piergiorgio Sartor
  2010-06-09 22:31 ` Neil Brown
  2010-06-10 23:04 ` Leslie Rhorer
  0 siblings, 2 replies; 6+ messages in thread
From: Piergiorgio Sartor @ 2010-06-09 21:13 UTC (permalink / raw)
  To: linux-raid

Hi,

if I understood it correctly, in order to detect
the several array parameters (number of disks, for
example), it is possible to use "mdadm -D /dev/mdX"
or to check the files in the corresponding /sys/block/...
/mdX/... files.

Now, assuming something needs to be done in scripts,
what would be the best way? Using "mdadm -D ... | grep"
(or "mdadm ... | gawk ...."), or to read the proper
files in /sys/block/md...?

Assuming the wanted information is available on both
sides, which does not seem always the case.

Thanks,

bye,

-- 

piergiorgio

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-06-17  5:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-09 21:13 Detecting array parameters Piergiorgio Sartor
2010-06-09 22:31 ` Neil Brown
2010-06-12  9:58   ` Piergiorgio Sartor
2010-06-17  5:52     ` Neil Brown
2010-06-10 23:04 ` Leslie Rhorer
2010-06-12  9:59   ` Piergiorgio Sartor

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).