Skip to content

Instantly share code, notes, and snippets.

@csamsel
Created March 22, 2018 11:03
Show Gist options
  • Save csamsel/bcf93ae41f2fb1d2a4e86d79c347817d to your computer and use it in GitHub Desktop.
Save csamsel/bcf93ae41f2fb1d2a4e86d79c347817d to your computer and use it in GitHub Desktop.
script to activate TLER and disable NCQ on raid member HDDs
for i in sdb sdc sdd sde
do
# activate TLER
smartctl -q errorsonly -l scterc,70,70 /dev/$i
# disable NCQ
echo 1 > /sys/block/$i/device/queue_depth
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment