Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing value blocks_to_be_synced #636

Closed
Finomosec opened this issue May 9, 2024 · 0 comments · Fixed by #637
Closed

Missing value blocks_to_be_synced #636

Finomosec opened this issue May 9, 2024 · 0 comments · Fixed by #637

Comments

@Finomosec
Copy link

Finomosec commented May 9, 2024

Hello,

here is my 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.

recoveryLineBlocksRE = regexp.MustCompile(`\((\d+)/\d+\)`)

In this regex, the second \d contains the needed value.

Can you add it to the output?

SuperQ added a commit that referenced this issue May 13, 2024
Capture the blocks to be synced from the recvery line as it can differ
from the total blocks.
* Reformat test struct to make it easier to read.

Fixes: #636

Signed-off-by: SuperQ <superq@gmail.com>
SuperQ added a commit that referenced this issue May 13, 2024
Capture the blocks to be synced from the recvery line as it can differ
from the total blocks.
* Reformat test struct to make it easier to read.

Fixes: #636

Signed-off-by: SuperQ <superq@gmail.com>
jritter pushed a commit to jritter/procfs that referenced this issue Jul 15, 2024
Capture the blocks to be synced from the recvery line as it can differ
from the total blocks.
* Reformat test struct to make it easier to read.

Fixes: prometheus#636

Signed-off-by: SuperQ <superq@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant