This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

HDD spindown

Hard disks, HDD, RAID Hardware, disk controllers, SATA, PATA, SCSI, IDE, On Board, USB, Firewire, CF (Compact Flash)
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
fizzgig656
Advanced User
Advanced User
Posts: 155
Joined: 05 Dec 2012 16:10
Location: england
Status: Offline

HDD spindown

Post by fizzgig656 »

i have 4 HDD's in my nas and none of them seem to be spinning down. whats going on? what can be stopping them?

more info,
4 drives used in 2 mirror zfs setups, all drives are set to spin down after 60 minutes, power level 1. nether mirror seem to be spinning down.
one mirror has data for CIFS/SMB and the destination for transmission once downloads complete, also the webserver user the data on this drive.
the other mirror has the transmission temp download, is where the extended-webgui is installed, is the location of the webserver. the watch folders and config for transmission is on a USB drive along with the config for DLNA/UPNP.
The watch folder and config for transmission are help on a usbdrive along with the DLNA/UPnP conf settings.

ive tried turning all services except SSH and dynamic DNS and leaving it at leave an hour and the drives still haven't spun down.

It has been working my previous versions of nas4free (think i started with 9.0 or possibly 8.?) ,Any thoughts please anyone!!!
10.2.0.2 - Prester (revision 1814) embedded x64 no swap + extended webgui, on atom D2700MUD 1x4gb ram, 1x mini sata controllers, 4 HDD in a icydock 4bay caddy run 2x 500gb mirror and 2x1tb mirror. Using CIFS/SMB, SSH, DLNA/UPnP, dynamic DNS, Webserver (owncloud) and BitTorrent for home use.

User avatar
b0ssman
Forum Moderator
Forum Moderator
Posts: 2438
Joined: 14 Feb 2013 08:34
Location: Munich, Germany
Status: Offline

Re: HDD spindown

Post by b0ssman »

you signature says you have a mini sas controller. if the devices are daX instea of adaX you need to use
http://www.noresult.net/freebsd/spindown/
manually to set up spin down for scsi.
Nas4Free 11.1.0.4.4517. Supermicro X10SLL-F, 16gb ECC, i3 4130, IBM M1015 with IT firmware. 4x 3tb WD Red, 4x 2TB Samsung F4, both GEOM AES 256 encrypted.

fizzgig656
Advanced User
Advanced User
Posts: 155
Joined: 05 Dec 2012 16:10
Location: england
Status: Offline

Re: HDD spindown

Post by fizzgig656 »

thanks for the reply, i believe the are ada that are on the motherboard and sata card, from disk management all the HDD are ada 0-3 plus one da which is the os/usb flashdrive
10.2.0.2 - Prester (revision 1814) embedded x64 no swap + extended webgui, on atom D2700MUD 1x4gb ram, 1x mini sata controllers, 4 HDD in a icydock 4bay caddy run 2x 500gb mirror and 2x1tb mirror. Using CIFS/SMB, SSH, DLNA/UPnP, dynamic DNS, Webserver (owncloud) and BitTorrent for home use.

User avatar
Parkcomm
Advanced User
Advanced User
Posts: 384
Joined: 21 Sep 2012 12:58
Location: Australia
Status: Offline

Re: HDD spindown

Post by Parkcomm »

Or possibly the disks are not idle - I assume you know how to use top and find:

Code: Select all

find /mnt/ -atime 1h -ls
will tell you which files were accessed in the last hour
https://www.freebsd.org/cgi/man.cgi?find(1)

Code: Select all

top -m io -HSztja -o total
will tell you what processes are accessing I/O
https://www.freebsd.org/cgi/man.cgi?top(1)
NAS4Free Embedded 10.2.0.2 - Prester (revision 2003), HP N40L Microserver (AMD Turion) with modified BIOS, ZFS Mirror 4 x WD Red + L2ARC 128M Apple SSD, 10G ECC Ram, Intel 1G CT NIC + inbuilt broadcom

fizzgig656
Advanced User
Advanced User
Posts: 155
Joined: 05 Dec 2012 16:10
Location: england
Status: Offline

Re: HDD spindown

Post by fizzgig656 »

No I wasn't but am now thanks. Given me something to work on.
10.2.0.2 - Prester (revision 1814) embedded x64 no swap + extended webgui, on atom D2700MUD 1x4gb ram, 1x mini sata controllers, 4 HDD in a icydock 4bay caddy run 2x 500gb mirror and 2x1tb mirror. Using CIFS/SMB, SSH, DLNA/UPnP, dynamic DNS, Webserver (owncloud) and BitTorrent for home use.

fizzgig656
Advanced User
Advanced User
Posts: 155
Joined: 05 Dec 2012 16:10
Location: england
Status: Offline

Re: HDD spindown

Post by fizzgig656 »

Parkcomm wrote:Or possibly the disks are not idle - I assume you know how to use top and find:

Code: Select all

find /mnt/ -atime 1h -ls
will tell you which files were accessed in the last hour
https://www.freebsd.org/cgi/man.cgi?find(1)
When I ran this I only got 4 permission denied returns for possible one mirror.

Code: Select all

top -m io -HSztja -o total
will tell you what processes are accessing I/O
https://www.freebsd.org/cgi/man.cgi?top(1)
Little activity. Assuming I'm looking at read or write counts. Only had one or 2 from pid 19.
Can't heck much more at the moment. But thought I'd reply with what I found.
10.2.0.2 - Prester (revision 1814) embedded x64 no swap + extended webgui, on atom D2700MUD 1x4gb ram, 1x mini sata controllers, 4 HDD in a icydock 4bay caddy run 2x 500gb mirror and 2x1tb mirror. Using CIFS/SMB, SSH, DLNA/UPnP, dynamic DNS, Webserver (owncloud) and BitTorrent for home use.

User avatar
b0ssman
Forum Moderator
Forum Moderator
Posts: 2438
Joined: 14 Feb 2013 08:34
Location: Munich, Germany
Status: Offline

Re: HDD spindown

Post by b0ssman »

if you have any activity then the drives wont spin down.
Nas4Free 11.1.0.4.4517. Supermicro X10SLL-F, 16gb ECC, i3 4130, IBM M1015 with IT firmware. 4x 3tb WD Red, 4x 2TB Samsung F4, both GEOM AES 256 encrypted.

fizzgig656
Advanced User
Advanced User
Posts: 155
Joined: 05 Dec 2012 16:10
Location: england
Status: Offline

Re: HDD spindown

Post by fizzgig656 »

Yeah I understand that. Trying to decide what's doing it. I switched all but extended webgui, ssh and dynamic dns off and still no luck.

Can I find out what the pids are?
Did i read somewhere that there was an issue with nas4free not allowing disks to spin down?
10.2.0.2 - Prester (revision 1814) embedded x64 no swap + extended webgui, on atom D2700MUD 1x4gb ram, 1x mini sata controllers, 4 HDD in a icydock 4bay caddy run 2x 500gb mirror and 2x1tb mirror. Using CIFS/SMB, SSH, DLNA/UPnP, dynamic DNS, Webserver (owncloud) and BitTorrent for home use.

fizzgig656
Advanced User
Advanced User
Posts: 155
Joined: 05 Dec 2012 16:10
Location: england
Status: Offline

Re: HDD spindown

Post by fizzgig656 »

Just tried ataidle -s but get an error

ataidle: error opening -s
10.2.0.2 - Prester (revision 1814) embedded x64 no swap + extended webgui, on atom D2700MUD 1x4gb ram, 1x mini sata controllers, 4 HDD in a icydock 4bay caddy run 2x 500gb mirror and 2x1tb mirror. Using CIFS/SMB, SSH, DLNA/UPnP, dynamic DNS, Webserver (owncloud) and BitTorrent for home use.

fizzgig656
Advanced User
Advanced User
Posts: 155
Joined: 05 Dec 2012 16:10
Location: england
Status: Offline

Re: HDD spindown

Post by fizzgig656 »

Erm. Having a look and fell on this. I think someone's already mentioned it. But maybe it's not a good idea?
http://wiki.nas4free.org/doku.php?id=warnings

Thoughts?
10.2.0.2 - Prester (revision 1814) embedded x64 no swap + extended webgui, on atom D2700MUD 1x4gb ram, 1x mini sata controllers, 4 HDD in a icydock 4bay caddy run 2x 500gb mirror and 2x1tb mirror. Using CIFS/SMB, SSH, DLNA/UPnP, dynamic DNS, Webserver (owncloud) and BitTorrent for home use.

User avatar
Parkcomm
Advanced User
Advanced User
Posts: 384
Joined: 21 Sep 2012 12:58
Location: Australia
Status: Offline

Re: HDD spindown

Post by Parkcomm »

fizzgig656 wrote: Little activity. Assuming I'm looking at read or write counts. Only had one or 2 from pid 19.
Can't heck much more at the moment. But thought I'd reply with what I found.
Just so you know how to use the tools - use top to tell you which process is doing reads or writes - but use find to locate the actual files. This is important because the process might be accessing your USB drive or pseudo devices like /dev/urandom or /dev/null/ etc. These will not affect spin down of your rotation drives.
Last edited by Parkcomm on 30 Oct 2015 02:09, edited 1 time in total.
NAS4Free Embedded 10.2.0.2 - Prester (revision 2003), HP N40L Microserver (AMD Turion) with modified BIOS, ZFS Mirror 4 x WD Red + L2ARC 128M Apple SSD, 10G ECC Ram, Intel 1G CT NIC + inbuilt broadcom

fizzgig656
Advanced User
Advanced User
Posts: 155
Joined: 05 Dec 2012 16:10
Location: england
Status: Offline

Re: HDD spindown

Post by fizzgig656 »

If I log in as root and just run

Code: Select all

find /mnt/ -atime 1h -ls
I get no output.

Code: Select all

ltbowers: ~# find /mnt/ -atime 1h -ls
ltbowers: ~#
Does that mean nothings accessing any file?

Should I really be thinking of spinning down zfs mirrored drives?

Once again thanks for telling me and explainging it (sometimes more useful....there's only so much go ogling you can do before the wife starts looking at me with the big frying pan :? )
10.2.0.2 - Prester (revision 1814) embedded x64 no swap + extended webgui, on atom D2700MUD 1x4gb ram, 1x mini sata controllers, 4 HDD in a icydock 4bay caddy run 2x 500gb mirror and 2x1tb mirror. Using CIFS/SMB, SSH, DLNA/UPnP, dynamic DNS, Webserver (owncloud) and BitTorrent for home use.

User avatar
Parkcomm
Advanced User
Advanced User
Posts: 384
Joined: 21 Sep 2012 12:58
Location: Australia
Status: Offline

Re: HDD spindown

Post by Parkcomm »

Does that mean nothings accessing any file?
Pretty much - I'd check the power settings in the BIOS next.
Should I really be thinking of spinning down zfs mirrored drives?
Don't know - I am not familiar with the issue covered in the wiki. The reason I don't spin mine down is that it doesn't save much. Per Drive assuming an energy cost of 20c per KW:

Code: Select all

            Watts       KwH in a Year   $ per year (20c per KW)
Spun down -   0.5           4383                 1
Spun Up-      6.0          52596                11
So spinning down will save you $10 per drive per year - $40 for your system, if the drives are spun down 24/7. If they are spun up 6 hours per day then you only save $30.

For me not worth it - I have multiple users doing all sorts of stuff which would reduce the time spent spun down anyway.

For you the equation might be different.
NAS4Free Embedded 10.2.0.2 - Prester (revision 2003), HP N40L Microserver (AMD Turion) with modified BIOS, ZFS Mirror 4 x WD Red + L2ARC 128M Apple SSD, 10G ECC Ram, Intel 1G CT NIC + inbuilt broadcom

spy0r
Advanced User
Advanced User
Posts: 160
Joined: 18 Jun 2015 12:24
Location: Munich, Germany
Status: Offline

Re: HDD spindown

Post by spy0r »

i wouldn't spin down a ZFS pool, too (same arguments as Parkcomm).

But a simple question: Did you enable SMART? I think if you poll the SMART values too often, that will prevent the drives from spindown, too. I had a setting like that with a backup disk in another system: SMART poll every 30minutes, Spindown after 20minutes - That worked.
NAS4Free 11.0.0.4 x64-embedded - Lian Li Q25b - AsRock Rack C2550D4I - 4x8Gb ECC Ram - 128Gb SSD Swap/Log/Extensions - RaidZ1: 3x3Tb Western Digital Red (WD30EFRX) - Backup: 1x8Tb Seagate Archive (ST8000AS0002) - APC Back UPS PRO (550VA)

fizzgig656
Advanced User
Advanced User
Posts: 155
Joined: 05 Dec 2012 16:10
Location: england
Status: Offline

Re: HDD spindown

Post by fizzgig656 »

Fair enough. Your advice and judgment is taken very seriously. I think I'll leave them. If they drives are not in use like above, will they idle (guessing it's one step up from standby)
Do you guys use power levels at all?
10.2.0.2 - Prester (revision 1814) embedded x64 no swap + extended webgui, on atom D2700MUD 1x4gb ram, 1x mini sata controllers, 4 HDD in a icydock 4bay caddy run 2x 500gb mirror and 2x1tb mirror. Using CIFS/SMB, SSH, DLNA/UPnP, dynamic DNS, Webserver (owncloud) and BitTorrent for home use.

User avatar
Parkcomm
Advanced User
Advanced User
Posts: 384
Joined: 21 Sep 2012 12:58
Location: Australia
Status: Offline

Re: HDD spindown

Post by Parkcomm »

I always intend to use level 128, then I do something that need faster disk speed, so I step it up - but I'd say my disk are sitting on level 254 more often than not.
NAS4Free Embedded 10.2.0.2 - Prester (revision 2003), HP N40L Microserver (AMD Turion) with modified BIOS, ZFS Mirror 4 x WD Red + L2ARC 128M Apple SSD, 10G ECC Ram, Intel 1G CT NIC + inbuilt broadcom

fizzgig656
Advanced User
Advanced User
Posts: 155
Joined: 05 Dec 2012 16:10
Location: england
Status: Offline

Re: HDD spindown

Post by fizzgig656 »

Ok. So if you disable the setting. Making fully performance available. When not in use or even little will it reduce power?
10.2.0.2 - Prester (revision 1814) embedded x64 no swap + extended webgui, on atom D2700MUD 1x4gb ram, 1x mini sata controllers, 4 HDD in a icydock 4bay caddy run 2x 500gb mirror and 2x1tb mirror. Using CIFS/SMB, SSH, DLNA/UPnP, dynamic DNS, Webserver (owncloud) and BitTorrent for home use.

User avatar
Parkcomm
Advanced User
Advanced User
Posts: 384
Joined: 21 Sep 2012 12:58
Location: Australia
Status: Offline

Re: HDD spindown

Post by Parkcomm »

APM will reduce power used and slow down performance even if you do not spin down. Is that what you were asking?
NAS4Free Embedded 10.2.0.2 - Prester (revision 2003), HP N40L Microserver (AMD Turion) with modified BIOS, ZFS Mirror 4 x WD Red + L2ARC 128M Apple SSD, 10G ECC Ram, Intel 1G CT NIC + inbuilt broadcom

fizzgig656
Advanced User
Advanced User
Posts: 155
Joined: 05 Dec 2012 16:10
Location: england
Status: Offline

Re: HDD spindown

Post by fizzgig656 »

Sort off. If I don't set APM, so leave it disabled will the drives idle on low ish power (as low as it can without spinning down) themselves? Does APM make more of an effect while the hdd is in use?
10.2.0.2 - Prester (revision 1814) embedded x64 no swap + extended webgui, on atom D2700MUD 1x4gb ram, 1x mini sata controllers, 4 HDD in a icydock 4bay caddy run 2x 500gb mirror and 2x1tb mirror. Using CIFS/SMB, SSH, DLNA/UPnP, dynamic DNS, Webserver (owncloud) and BitTorrent for home use.

User avatar
Parkcomm
Advanced User
Advanced User
Posts: 384
Joined: 21 Sep 2012 12:58
Location: Australia
Status: Offline

Re: HDD spindown

Post by Parkcomm »

APM definitely lowers power while the disk is in use - I do not know if the power usage is reduced during idle, probably.
NAS4Free Embedded 10.2.0.2 - Prester (revision 2003), HP N40L Microserver (AMD Turion) with modified BIOS, ZFS Mirror 4 x WD Red + L2ARC 128M Apple SSD, 10G ECC Ram, Intel 1G CT NIC + inbuilt broadcom

Post Reply

Return to “Hard disk & controller”