Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Spindown nightmare

Featured Replies

I am running Unraid 7.2.3. I have been trying to identify the cause of my disks not spinning down.

A few weeks ago I thought I had a fix - it was to set the spindown delay on each disk in the array, rather than allow the default to trickle down. This worked - disks started spinning down after an hour of inactvity. I wrote a User Script to run (using hdparm to set to 242) after the array starts and thought it was solved (even though this seems to be a problem with Unraid not honouring the default).

In the last week I have noticed the disks are not spinning down again, after a couple of weeks of uptime - I need to run my script to set the spindown delay per disk and then they do.

Is there a known issue in Unraid with spindown that I can't find on the internet? Years ago (< v6) spindown was not a problem.

MORE THOUGHTS:

It's like there is a disconnect between the default spindown, the per disk spindown and the spindown set by hdparm).

What is the mechanism Unraid uses to determine when to spin down disks? Does it rely on its own "last use" time per disk then send a spindown command? (I assume this is the case - if so this could be why my hdparm set is being forgotten)

here is my script:

#!/bin/bash

HDPARM_VALUE=242

echo "Waiting for array to start..."

# Wait until disks.ini exists and is populated

while [ ! -s /var/local/emhttp/disks.ini ]; do

sleep 2

done

echo "Array is started."

echo "Applying spindown delay to parity and array disks..."

# Extract device= entries (sdX, nvmeXnY)

DEVS=$(grep -oP 'device="\K[^"]+' /var/local/emhttp/disks.ini | grep -v "flash")

for DEVNAME in $DEVS; do

DEV="/dev/$DEVNAME"

if [[ ! -b "$DEV" ]]; then

echo "Skipping $DEVNAME (no block device)"

continue

fi

hdparm -S "$HDPARM_VALUE" "$DEV" >/dev/null 2>&1

echo "Set spindown delay on $DEV"

done

echo "Done."

Edited by topherino

  • Community Expert
9 hours ago, topherino said:

Is there a known issue in Unraid with spindown that I can't find on the internet?

Nope, only known issue is with zfs pools/disks, which will spin up once every 24H, but there's a fix.

Diagnostics may help see what the issue is.

  • Community Expert

Nothing jumps out to me regarding hardware or config, most likely something is accessing the disks, you could try set the wrong filesystem for one of the disks, that would make it unmountable, and then see if that specific disk still has the issue.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.