Linux RAID subsystem development
 help / color / mirror / Atom feed
* Which API for md state monitoring - sysfs vs. /proc/mdstat vs. GET_DISK_INFO ioctl
@ 2017-02-14 14:43 Tim Small
  2017-02-14 15:26 ` Hannes Reinecke
  2017-02-15 21:21 ` Anthony Youngman
  0 siblings, 2 replies; 3+ messages in thread
From: Tim Small @ 2017-02-14 14:43 UTC (permalink / raw)
  To: linux-raid; +Cc: shli

Hello,

A design question for a user-space RAID monitoring tool.  The tool is
intended to export machine-readable md state so that the system owners
can creating automated alert policies etc.

Should it get its information on md device state from /proc/mdstat, or
/sys/block/*/md/ as a data source, or should it use the ioctl interface
that mdadm uses (on the basis that this is more complete / heavily tested).

I assume the issues are:

. usability (/proc/mdstat is intended to be human-readable so machine
parsing it seems bleugh - it's also incomplete?)

. stability (perhaps /sys/block/*/md/ is less stable than the ioctl or
proc interface?  Or perhaps it's just fine and won't break in
backward-incompatible ways?).

Any thoughts?

Should I see which way the recent "add bad block flag to disk state"
patch-set thread goes?

Tim.

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

end of thread, other threads:[~2017-02-15 21:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-14 14:43 Which API for md state monitoring - sysfs vs. /proc/mdstat vs. GET_DISK_INFO ioctl Tim Small
2017-02-14 15:26 ` Hannes Reinecke
2017-02-15 21:21 ` Anthony Youngman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox