HDD hibernate in logs

Got a feature request? Great! Post your ideas here!
Charlie Brown
Posts: 22
youtube meble na wymiar Warszawa
Joined: Sat Jan 09, 2016 3:40 am

HDD hibernate in logs

Post by Charlie Brown »

I would like to know when the HDD hibernate and/or wake up.
Shawn.S@AST
Posts: 181
Joined: Fri May 25, 2012 3:10 pm

Re: HDD hibernate in logs

Post by Shawn.S@AST »

Hi Charlie,

Thanks for the great suggestion!!! I will feedback your suggestion to our product development team and see if it is feasible to add this into logs and if this resource consumption, frequency of logging will be acceptable!
Charlie Brown
Posts: 22
Joined: Sat Jan 09, 2016 3:40 am

Re: HDD hibernate in logs

Post by Charlie Brown »

Thanks! With a minimum interval of 5 minutes I fail to see how this could become a resource problem.
User avatar
orion
Posts: 3485
Joined: Wed May 29, 2013 11:09 am

Re: HDD hibernate in logs

Post by orion »

I would like to see status, rather than a log. It's helpful if we know which processes occupy HDD to prevent HDD hibernation. A log in HDD could result in HDD working all the time and the huge information (HDD accessing) is not easy to read.
Charlie Brown
Posts: 22
Joined: Sat Jan 09, 2016 3:40 am

Re: HDD hibernate in logs

Post by Charlie Brown »

Hibernate routine:

1. Write log.
2. Hibernate

HDD wake up routine:

1. Wake HDDs
2. Write log
User avatar
orion
Posts: 3485
Joined: Wed May 29, 2013 11:09 am

Re: HDD hibernate in logs

Post by orion »

mm... As far as I know, SATA HDD supports standby timer. It means HDD will go to standby (hibernation) mode automatically (the timer duration can be set by hdparm). Writing log will result in HDD working all the time if asustor implements this way. If they create a process to do hibernation task, the way you suggested is possible. However, I believe they should utilize hdparm.
Shawn.S@AST
Posts: 181
Joined: Fri May 25, 2012 3:10 pm

Re: HDD hibernate in logs

Post by Shawn.S@AST »

Hi Charlie an Orion,

After discussion internally, we do utilize the hdparm and writing log will result in the hdd timer to be reset and preventing the hard drive from sleeping. We will keep on thinking of other possibilities. Any idea is welcome!
Charlie Brown
Posts: 22
Joined: Sat Jan 09, 2016 3:40 am

Re: HDD hibernate in logs

Post by Charlie Brown »

Bummer. Final idea is to check out Synology/XPEnology code as they are able to do this.
Last edited by Charlie Brown on Tue Jan 19, 2016 3:10 pm, edited 1 time in total.
sys
Posts: 188
Joined: Thu Jun 14, 2012 8:13 pm

Re: HDD hibernate in logs

Post by sys »

I searched the log in my Synology DS1511 (3 drives installed) but did not find the log of hard drive going to sleep. Do you mean that I have to replace DSM with XPEnology? And which package to install?
Charlie Brown
Posts: 22
Joined: Sat Jan 09, 2016 3:40 am

Re: HDD hibernate in logs

Post by Charlie Brown »

I am in error and stand corrected. :oops: On Synology it is only logged when the HDD's wake up, not when they are going into hibernate.
Still very useful if one wants to know how many times the drives wake up. Perhaps this is feasible Shawn? :?:

Code: Select all

Date			Time		 Level			Host Name	  Category	Program	Messages
2016-01-19	18:37:27	Information	DISKSTATION	user		System	  Internal disks woke up from hibernation.
Edit: typo corrected
Last edited by Charlie Brown on Wed Jan 20, 2016 3:19 pm, edited 2 times in total.