hello...
im looking for a guide to some things in /proc/mdstat. specifically, i have a
line that says:
md0 : active raid1 sdc1[2] sdb1[0] 8883840 blocks [2/1] [U_] recovery=1%
finish=9.9 minutes.
i gather this in general represents something like:
<md device> : <status> <level> <list of configured devices> <total blocks/aka
superblock offset?> <?> <?> [recovery/resync completion and time remaining]
(on an active array of course).
but im curious as to what the 2 bracketed items are. would [2/1] indicate the
total number of devices configured for md0 over the number currently in an 'ok'
state? is the [U_] an indication of the individual devices' current status ('U'
for up maybe)? if so, what are the other possible values besides 'U' and '_'?
i traced it back to the mdk_personality_s struct in linux/raid/md_k.h but im
just not C-savvy (victim of evil college C++ migration...) enough to know where
to go from there :/
im trying to write something that will parse /proc/mdstat and produce out
readable by less knowledgable people...(unless something like this is already
under development??)
much appreciated,
james blanding