truenas-spindown-timer icon indicating copy to clipboard operation
truenas-spindown-timer copied to clipboard

Cannot spindown drivers in Raidz1 pool | Truenas Scale

Open CaptPea opened this issue 1 year ago • 1 comments

Hi,

I setup the script on my Truenas Scale system (version: TrueNAS-SCALE-22.12.4.2) and unfortunately the drives will not spindown.

I have made sure that the storage system dataset pool is on my ssd (not part of the Raidz1 pool). All drivers are also set as advised: Screenshot from 2024-02-22 16-59-10

I have added the script to a folder I called "Scripts" in the system ssd. And I am running it as: Screenshot from 2024-02-22 17-00-46 Full command: /root/scripts/truenas-spindown-timer/spindown_timer.sh -t 3600 -p 600 -u zpool -i [MY-POOL-NAME]

I checked and it also seems that the script is in autostart:ps -aux | grep "spindown_timer.sh" #root 2787 0.0 0.0 2484 580 ? S 07:55 0:00 /bin/sh -c /root/scripts/truenas-spindown-timer/spindown_timer.sh -t 3600 -p 600 -u zpool -i chonknas #root 2789 0.0 0.0 6056 3356 ? S 07:55 0:00 bash /root/scripts/truenas-spindown-timer/spindown_timer.sh -t 3600 -p 600 -u zpool -i chonknas #root 207195 0.0 0.0 6056 1760 ? S 09:55 0:00 bash /root/scripts/truenas-spindown-timer/spindown_timer.sh -t 3600 -p 600 -u zpool -i chonknas #admin 218593 0.0 0.0 5276 2256 pts/0 S+ 10:02 0:00 grep spindown_timer.sh

I use this NAS as:

  • Nextcloud server
  • Jellyfin
  • File archive

Any idea of what might be the reason why they won't spindown?

CaptPea avatar Feb 22 '24 16:02 CaptPea

Hi, I'm also on scale and found that my disks won't accept hdparm commands. I may have found some things that can help to debug whether we have the same issue, though: You can try manually spinning down a disk using hdparm to see whether you are encountering the same issue. If hdparm isn't working, you may be able to use sdparm to communicate with the disks.

The easiest way to do this is to go to shell in the web GUI using 'System Settings' -> 'Shell', and to type in the manual spin down command, e.g. 'sudo hdparm -y /dev/sda' to try to spin down SDA. If it doesn't work you can try the same using sdparm instead of hdparm.

tranermr avatar Feb 24 '24 18:02 tranermr