librenms / librenms-agent

LibreNMS Agent & Scripts
GNU General Public License v2.0
117 stars 188 forks source link

mdadm sync check - completed percent #415

Closed oernii closed 1 year ago

oernii commented 2 years ago

On my system mdadm runs periodic checks and while running the smtp agent will not work. This PR handles this case. These are my values:

cat /proc/mdstat

Personalities : [raid1] [raid6] [raid5] [raid4] md127 : active raid6 sdm1[8] sdj1[7] sdh1[6] sdf1[4] sdd1[2] sdg1[5] sdl1[9] sde1[3] sdb1[0] sdc1[1] 31255019520 blocks super 1.2 level 6, 128k chunk, algorithm 2 [10/10] [UUUUUUUUUU] [========>............] check = 40.4% (1579717248/3906877440) finish=2589.7min speed=14976K/sec bitmap: 1/30 pages [4KB], 65536KB chunk

cat /sys/block/md127/md/sync_completed

3159583488 / 7813754880

CLAassistant commented 2 years ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


oernii seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.