Doorgaan naar hoofdcontent

Freenas 11 power optimization

My power consumption went from 65watt idle to 29watt idle:
What did I do: 
  • Move system dataset to the freenas-boot pool
    • gui -> system -> system dataset
  • Enable power saving deamon
    •  gui -> system -> advanced -> enable powerd
  • Configure smart to check only spinning disk (prevent unnecessary disk spinup)
    • gui -> storage -> view disk > smart extra option -> -n standy
  • Check disk power state script (run commandline)
    • !/bin/bash
      devlist=(ada0 ada1 ada2 ada3 ada4 ada5)
      timeout=30
      while [ 1 ]
      do
              echo -n `date`

              for LINE in "${devlist[@]}"; do
                      CM=$(camcontrol cmd $LINE -a "E5 00 00 00 00 00 00 00 00 00 00 0
      0" -r - | awk '{print $10}')
                      if [ "$CM" = "FF" ] ; then
                              echo -n " SPINNING  "
                      elif [ "$CM" = "00" ] ; then
                              echo -n "   IDLE    "
                      else
                              echo -n "  UNKNOWN  "
                      fi
              done
      echo
      sleep $timeout
      done
  • use camcontrol to set disk spindown
    • gui -> tasks > init/shutdown script -> command / camcontrol standby ada(x) -t 600 / postinit (1 command for every disk)

Reacties