NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

joe_schmo's avatar
Aug 22, 2017

/proc/sys/dev/raid/speed_limit_max resetting...

I followed the guide here:

https://www.cyberciti.biz/tips/linux-raid-increase-resync-rebuild-speed.html

To increase speed, enter:
echo value > /proc/sys/dev/raid/speed_limit_min

OR
sysctl -w dev.raid.speed_limit_min=value

In this example, set it to 50000 K/Sec, enter:
# echo 50000 > /proc/sys/dev/raid/speed_limit_min


But after about a few seconds, I get:


tail -f /proc/sys/dev/raid/speed_limit_max
500000
tail: /proc/sys/dev/raid/speed_limit_max: file truncated
500000
tail: /proc/sys/dev/raid/speed_limit_max: file truncated
1000
tail: /proc/sys/dev/raid/speed_limit_max: file truncated
1000
tail: /proc/sys/dev/raid/speed_limit_max: file truncated
200000

 

I am trying to figure out what process is resetting this. Does anyone know?

3 Replies

Replies have been turned off for this discussion
  • I am also experiencing this issue. Slow rebuild / resync requires adjustments to the 

    /proc/sys/dev/raid/speed_limit_max and 

    /proc/sys/dev/raid/speed_limit_min values as well as others..

     

    Why does the value keep getting reset, and by what??

    • lawrencealan83's avatar
      lawrencealan83
      Aspirant

      Check your `dmesg` ... I had a bunch of SCSI messages for /dev/sde.. as soon as i removed that from all the raids via mdadm my speeds went back to what they should be and have not reset. Also fixed an issue I was having w/ the NAS freezing up on me.

       

      Bad drive reported good by the NAS :(

       

      [15672.997577] scsi target0:0:4: handle(0x000d), sas_address(0x4433221103000000), phy(3)

      [15672.997580] scsi target0:0:4: enclosure_logical_id(0x4494fc6f00e40108), slot(3)

      [15673.111621] sd 0:0:4:0: task abort: SUCCESS scmd(ffff8800d1225b00)

      [15768.999287] sd 0:0:4:0: attempting task abort! scmd(ffff8801ec53e480)

      [15768.999296] sd 0:0:4:0: [sde] tag#0 CDB: ATA command pass through(16) 85 06 20 00 00 00 00 00 00 00 00 00 00 00 e5 00

      [15768.999299] scsi target0:0:4: handle(0x000d), sas_address(0x4433221103000000), phy(3)

      [15768.999302] scsi target0:0:4: enclosure_logical_id(0x4494fc6f00e40108), slot(3)

      [15769.401167] sd 0:0:4:0: task abort: SUCCESS scmd(ffff8801ec53e480)

      [15808.003982] sd 0:0:4:0: attempting task abort! scmd(ffff8801eace9c80)

      [15808.003991] sd 0:0:4:0: [sde] tag#18 CDB: ATA command pass through(16) 85 08 0e 00 d0 00 01 00 00 00 4f 00 c2 00 b0 00

      [15808.003995] scsi target0:0:4: handle(0x000d), sas_address(0x4433221103000000), phy(3)

      [15808.003997] scsi target0:0:4: enclosure_logical_id(0x4494fc6f00e40108), slot(3)

      • lawrencealan83's avatar
        lawrencealan83
        Aspirant

        As soon as I started the readynasd.service back up, it reset all my mdadm changes. I had to 

        echo 1 > /sys/block/sde/device/delete

        So the device isn't reinsterted automatically (basically powers down the drive)

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More