Jump to content

Automatic extended SMART checks


Recommended Posts

Hello!

 

I am trying to set up automated extended SMART checks for my server on a schedule (every few months).

However I was not able to find out a solution that is already available - e.g. native unraid tool.

 

Thus, I want to set it up via user scripts and a snippet that I found:

for i in {b..o}; do
    smartctl --test=long /dev/sd$i
done

This snippet works well with short SMART tests.

However I could not find a solution to disable the spin down of my hard drives programmatically - which would be necessary, since I don't want to disable it manually every time a SMART test is scheduled.

 

Do you have a nice solution for that, or maybe you know how to set the spin down settings via terminal?

 

 

Thanks in advance!

Greetings

  • Upvote 1
Link to comment
  • 4 months later...

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...