Closed Finomosec closed 4 months ago
Hello,
here is my cat /proc/mdstat:
cat /proc/mdstat
md0 : active raid5 sdf1[4] sde1[1] sdc1[2] sdb1[0] 14650718208 blocks super 1.2 level 5, 512k chunk, algorithm 2 [4/3] [UUU_] [===================>.] recovery = 99.9% (4882207424/4883572736) finish=7.8min speed=2908K/sec bitmap: 2/37 pages [8KB], 65536KB chunk
The total_blocks (14650718208) can differ from the block_to_be_synced [due to lack of a better name] (4883572736). But the output only gives the total_blocks.
total_blocks
block_to_be_synced
https://github.com/prometheus/procfs/blob/5cca38bb07f4513b5b5d6a2e790a8486862b6c86/mdstat.go#L26
In this regex, the second \d contains the needed value.
\d
Can you add it to the output?
Hello,
here is my
cat /proc/mdstat
:The
total_blocks
(14650718208) can differ from theblock_to_be_synced
[due to lack of a better name] (4883572736). But the output only gives thetotal_blocks
.https://github.com/prometheus/procfs/blob/5cca38bb07f4513b5b5d6a2e790a8486862b6c86/mdstat.go#L26
In this regex, the second
\d
contains the needed value.Can you add it to the output?