* Testing /proc/mdstat parsing
@ 2013-09-20 23:03 Ian Pilcher
0 siblings, 0 replies; only message in thread
From: Ian Pilcher @ 2013-09-20 23:03 UTC (permalink / raw)
To: linux-raid
For my NAS monitoring daemon, I have decided to check the status of my
RAID arrays by parsing /proc/mdstat. (I did consider using sysfs,
ioctls, or mdadm, but /proc/mdstat seems to be the most efficient way
to get a "snapshot" of the state of all the arrays.)
I've played around with various setups and failure scenarios in a VM,
and I've also reviewed md_seq_show() in md.c. Based on this, I've
written parsing code that can handle everything that I've been able to
come up with so far. But that's just me ...
Does anyone know of or have a collection of /proc/mdstat examples that
can be used for testing?
Thanks!
--
========================================================================
Ian Pilcher arequipeno@gmail.com
Sometimes there's nothing left to do but crash and burn...or die trying.
========================================================================
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-09-20 23:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-20 23:03 Testing /proc/mdstat parsing Ian Pilcher
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).