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

Feature: Add ability to speed up RAID Resyncs and Reshaping #383

Open
madereddy opened this issue Nov 12, 2024 · 0 comments
Open

Feature: Add ability to speed up RAID Resyncs and Reshaping #383

madereddy opened this issue Nov 12, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@madereddy
Copy link

Providing the ability to speed up RAID Resyncs and Reshaping would be very helpful. This gist has alot of details on it.

  1. Add ability to capture the defaults for the following commands
cat /sys/block/md2/md/stripe_cache_size
cat /proc/sys/dev/raid/speed_limit_min
cat /sys/block/md2/queue/read_ahead_kb
cat /sys/block/md2/md/sync_max
  1. Set new max values to help speed up the RAID operation
$ echo 32768 > /sys/block/md2/md/stripe_cache_size   # This is the max value, and it takes up 32Mib to synchronize read/write operations while the array is degraded
$ echo 50000 > /proc/sys/dev/raid/speed_limit_min    # This is a hint that you want more focus on the sync-expansion task
$ echo 32768 > /sys/block/md2/queue/read_ahead_kb    # This is how far ahead of a read request the drive array will preload
$ echo max > /sys/block/md2/md/sync_max
  1. After RAID operation completes have a command to set the values back to the default captured in step 1.

Details on how much faster the RAID operation was by setting the different values in this gist comment.

@007revad 007revad added the enhancement New feature or request label Nov 13, 2024
@007revad 007revad self-assigned this Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants