Page 1 of 1

Request: Package spindown-0.3a

Posted: 17 Jan 2014 13:16
by Delta1981
Hello,

Is is possible to add the package spindown-0.3a to the embedded version of Nas4free?

With this package it is possible to spindown harddrives that are connected to a LSI raid card (M1015), normal spindown commands don't work on certain raid cards.

Information for spindown-0.3a:

Comment:
SCSI/firewire harddrive spindown daemon

Description:
SCSI / firewire harddrive spindown daemon

This is a small program for handling automated spinning down of
SCSI harddrives. With SCSI devices it is not as common to spindown
for power management purposes as for ATA however it might be required
to spin down a disk contained in a firewire enclosure for instance.

WWW: http://www.noresult.net/freebsd/spindown/


Thanx.

Re: Request: Package spindown-0.3a

Posted: 17 Jan 2014 22:20
by RedAntz
Hi Delta1981,

Thanks for your suggestions. I am aware that power management is not working with cam and will review if this fits to the solution.

If you are using IBM M1015 and want to handle this manually, you can use 'camcontrol' command to handle that for now. To test :

Code: Select all

smartctl -a /dev/da1 |grep Start_Stop_Count
Note the raw value. Then run

Code: Select all

camcontrol stop da1
After that, run the smratctl command again :

Code: Select all

smartctl -a /dev/da1 |grep Start_Stop_Count
You will notice that the command will take a little longer to appear and it has incremented.

Re: Request: Package spindown-0.3a

Posted: 18 Jan 2014 15:31
by Delta1981
Hello RedAntz,

Thanks for the reply, i'll try your camcontrol commands for the spindown of the harddrives.

Re: Request: Package spindown-0.3a

Posted: 18 Jan 2014 20:27
by ChriZathens
If LSI cards don't support spin down via the normal way, then I second this request, since spin down does not work for me, either...
Stopping manually the disks is not the best solution..

Re: Request: Package spindown-0.3a

Posted: 06 Feb 2014 16:30
by sodalimon
Sounds to me like a life changing solution :)
Seriously...

Re: Request: Package spindown-0.3a

Posted: 07 Feb 2014 07:07
by b0ssman
+1 for spindown to be included.

dont worry about webgui or so just include it.

Re: Request: Package spindown-0.3a

Posted: 05 May 2014 08:21
by danic
The solution I have for my NAS running the embedded version and SAS2008 based cards is add this to the Command Scripts Section (Post Init). It requires that the NAS has internet at boot time.

Code: Select all

pkg_add -r spindown && /usr/local/sbin/spindown -b -p /var/run/spindown.pid -t 3600 -d da0 -d da1 -d da2 -d da3 -d da4 -d da5 -d da6 -d da7 -d da8 -d da9 -i 60 
The '-t' option spinsdowns da[0-9] after 3600 seconds and '-i' option is the interval in seconds for checking for activity
Spindown man pae

Re: Request: Package spindown-0.3a

Posted: 09 Oct 2014 21:41
by Delta1981
danic wrote:The solution I have for my NAS running the embedded version and SAS2008 based cards is add this to the Command Scripts Section (Post Init). It requires that the NAS has internet at boot time.

Code: Select all

pkg_add -r spindown && /usr/local/sbin/spindown -b -p /var/run/spindown.pid -t 3600 -d da0 -d da1 -d da2 -d da3 -d da4 -d da5 -d da6 -d da7 -d da8 -d da9 -i 60 
The '-t' option spinsdowns da[0-9] after 3600 seconds and '-i' option is the interval in seconds for checking for activity
Spindown man pae
Thanks for this solution, i'll try this with my server.

Re: Request: Package spindown-0.3a

Posted: 07 Jan 2015 13:06
by Delta1981
I just noticed that from version R1232 (http://sourceforge.net/p/nas4free/code/commit_browser) the spindown package has been added.

Thank you developers.