0

I'm running Openmediavault Linux 4.19.75-v7l+ and I'm running into an issue trying to run the command

$ echo 50000 > /proc/sys/dev/raid/speed_limit_min 

Or:

$ echo 50000 > /proc/sys/dev/raid/speed_limit_max

The console spits this out back at me each time:

-bash: /proc/sys/dev/raid/speed_limit_min: Permission denied

I have already created a user under a /bin/bash shell and added that user account to pretty much every group.

All I’m trying to do is increase the initial resync speed of a fresh RAID 6 with 5 drives. At the moment, it's saying it’ll take upwards of 30 days (!!!) to finish.

Any thoughts or helpful advice is greatly appretiated!

  • Have you tried running it as sudo like this: sudo echo 50000 > /proc/sys/dev/raid/speed_limit_min. Or just even open the file like this — for example with nano — and then adding your value? sudo /proc/sys/dev/raid/speed_limit_min – JakeGould Nov 9 at 1:20
  • Neither works. I get the same Permission denied – Daniel Nov 9 at 1:25
  • Is there even a /proc/sys/dev/raid/ directory path? It could be that if the directory structure doesn’t even exist then the system won’t allow access to the full /proc/sys/dev/raid/speed_limit_min file. – JakeGould Nov 11 at 15:24
0

You need root permsision to write that file.

sudo echo ...

Does not work because sudo does not see the redirection. use the echo command in a root shell or do it this way instead:

echo 50000 | sudo tee /proc/sys/dev/raid/speed_limit_min 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.