Jellyfin Forum
Bash script to slowdown mdadm raid resync/reshap speed whenever a user is connected - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Off Topic (https://forum.jellyfin.org/f-off-topic)
+--- Forum: Self-hosting & Homelabs (https://forum.jellyfin.org/f-self-hosting-homelabs)
+--- Thread: Bash script to slowdown mdadm raid resync/reshap speed whenever a user is connected (/t-bash-script-to-slowdown-mdadm-raid-resync-reshap-speed-whenever-a-user-is-connected)



Bash script to slowdown mdadm raid resync/reshap speed whenever a user is connected - sharky172 - 2024-01-03

Hello everyone,

I recently added a new disk to the RAID 5 where all my videos are stored (increasing the number of disks from 4 to 5). Following this RAID reshaping (which is expected to take about 10 more days), I created this script to slow down the RAID resync whenever a connection is detected on Jellyfin. This allows Jellyfin to remain usable and without performance loss throughout the entire RAID resync period.

For those who are interested, here is the script: https://gist.github.com/hcharbonnier/8ce5e9ec104901d3e27f78e3ccd3fc7b