Skip to content

Instantly share code, notes, and snippets.

@csamsel
Created December 9, 2019 21:29
Show Gist options
  • Save csamsel/d8dd7f8061a54b714e4a74a9022edb6e to your computer and use it in GitHub Desktop.
Save csamsel/d8dd7f8061a54b714e4a74a9022edb6e to your computer and use it in GitHub Desktop.
activate power management on sas drives
# disable background scan (might prevent standby)
sdparm --quiet --clear=EN_BMS --save /dev/disk/by-id/scsi-?????????????????
# enable standby (powers down drive motor)
sdparm --flexible --quiet --save -p po --set=STANDBY=1 /dev/disk/by-id/scsi-?????????????????
# set standby to 30min
sdparm --flexible --quiet --save -p po --set=SCT=18000 /dev/disk/by-id/scsi-?????????????????
# enable idle (drives spins but servos are off)
sdparm --flexible --quiet --save -p po --set=IDLE_B=1 /dev/disk/by-id/scsi-?????????????????
# set idle to 5min
sdparm --flexible --quiet --save -p po --set=ICT=3000 /dev/disk/by-id/scsi-?????????????????
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment