LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-08-2021, 12:14 PM   #1
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,639

Rep: Reputation: Disabled
What is better for hard discs - spinning down and waking every 1/4 hour or running continuously?


Title says it all. I put two of my disks to sleep after 3 minutes running, but something is waking them every quarter hour or so. Is it healthier for them to keep them running in a use of two times 2 - 3 hours of use per day or spinning them down? What hurts them less?
 
Old 04-08-2021, 12:55 PM   #2
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,849

Rep: Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553
Quote:
Originally Posted by JZL240I-U View Post
Title says it all. I put two of my disks to sleep after 3 minutes running, but something is waking them every quarter hour or so. Is it healthier for them to keep them running in a use of two times 2 - 3 hours of use per day or spinning them down? What hurts them less?
Check your crontabs so see if some job involving your disks is scheduled to run every 15 minutes. Systemd may be running something behind your back at that interval, too.

One data point: I've had disks that ran almost continously for years (except for brief shutdowns---mainly household power failures or equipment moves) and they experienced no problem. Until, that is, they reached the far end of the "bathtub" curve. (I had an old Seagate 2GB drive that ran pretty much non-stop for the better part of a dozen years before it gave up. They don't make 'em like that any more.) My view is that powering on a component -- disk, power supply, etc. -- is likely when it's going to fail... so I leave things spinning.

Another data point: I leave the hard disk in my laptop spinning as long as AC power is applied. The disk in it is many years old and shows no signs of failing. Sure... I might extend the uptime while the laptop is running on battery but I rarely run it that way so long as there's an AC outlet available.
 
Old 04-08-2021, 01:16 PM   #3
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: One main distro, & some smaller ones casually.
Posts: 5,863

Rep: Reputation: Disabled
Continuous running puts less stress on a disk; every time you spin up also uses more power.
 
Old 04-08-2021, 01:21 PM   #4
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,815

Rep: Reputation: 2238Reputation: 2238Reputation: 2238Reputation: 2238Reputation: 2238Reputation: 2238Reputation: 2238Reputation: 2238Reputation: 2238Reputation: 2238Reputation: 2238
Perhaps it's smartd polling, which defaults to every 30 minutes. You can configure smartd to skip disks that are sleeping.
From my /etc/smartd.conf:
Code:
# The word DEVICESCAN will cause any remaining lines in this
# configuration file to be ignored: it tells smartd to scan for all
# ATA and SCSI devices.  DEVICESCAN may be followed by any of the
# Directives listed below, which will be applied to all devices that
# are found.  Most users should comment out DEVICESCAN and explicitly
# list the devices that they wish to monitor.
#DEVICESCAN -H -m root
/dev/sda -d ata -H -m root -n standby,q
/dev/sdb -d ata -H -m root -n standby,q
/dev/sdc -d ata -H -m root -n standby,q
 
Old 04-08-2021, 01:54 PM   #5
Bonzoo
Member
 
Registered: Sep 2018
Location: Costa Rica
Distribution: Antix21a2,Parrot rolling,MXfce19.4,Sparky Openbox
Posts: 233

Rep: Reputation: 48
My machine in my shop has only been rebooted once or twice in 3 years. Kernel change
Debian. Runs my plasma cutting cnc. No problem. These pieces of crap are designed to run continually
 
Old 04-08-2021, 11:40 PM   #6
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,497
Blog Entries: 1

Rep: Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230
Status quo changes are more stressful than maintaining status quo. Keep them spinning.
 
1 members found this post helpful.
Old 04-09-2021, 11:39 AM   #7
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,639

Original Poster
Rep: Reputation: Disabled
Okay, thanks, I'll keep them spinning then. Thanks also for the infos about cron, systemd and smartd.conf -- I'll keep those in memory just in case .
 
Old 04-11-2021, 02:02 AM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
I have a drive I only use once a week for automated backups. It was surprisingly hard to make the system ignore it, while still being able to mount it:
https://dt.iki.fi/disable-usb-drive
https://dt.iki.fi/udev#scenario-igno...d-backup-drive
Even if your drive is not USB-connected, there might be some interesting bits in those articles. But do take them with a grain of salt.
 
Old 04-11-2021, 08:38 AM   #9
Bonzoo
Member
 
Registered: Sep 2018
Location: Costa Rica
Distribution: Antix21a2,Parrot rolling,MXfce19.4,Sparky Openbox
Posts: 233

Rep: Reputation: 48
I have a spinner from 2000 in a USB adapter that still spins.It has all those "shared files" from ??? NAPSTER ! Took a few for this old guy to remember the name.We invented "free softwarez" back in the day. LOL.
 
Old 04-11-2021, 09:46 AM   #10
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,639

Original Poster
Rep: Reputation: Disabled
Thanks, ondoho interesting reading but not my usecase. Nice to know anyway .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Schedule php script every hour, half an hour, and 15 minutes manolakis Programming 5 08-22-2018 07:43 AM
[SOLVED] Binutils "make " command is running continuously for more than an hour .. dgashu Linux From Scratch 14 09-20-2011 12:18 AM
Cron job issue - every hour works, but specific hour fails lunarleviathan Linux - Newbie 6 11-20-2009 12:19 AM
Aergh. X dies on the hour, every hour l00zer Linux - Software 4 06-07-2005 10:02 PM
Hard drives spinning up and down continuously r_jensen11 Linux - Hardware 2 02-26-2004 04:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration