<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Homelab on Cosmic Homebrew</title>
        <link>https://blog.familie-topp.net/tags/homelab/</link>
        <description>Recent content in Homelab on Cosmic Homebrew</description>
        <generator>Hugo -- gohugo.io</generator>
        <language>en-us</language>
        <copyright>Jesco Topp</copyright>
        <lastBuildDate>Mon, 19 May 2025 14:09:26 +0200</lastBuildDate><atom:link href="https://blog.familie-topp.net/tags/homelab/index.xml" rel="self" type="application/rss+xml" /><item>
        <title>Spindown Disks under Proxmox</title>
        <link>https://blog.familie-topp.net/homelab/proxmox-disk-spindown/</link>
        <pubDate>Mon, 19 May 2025 14:09:26 +0200</pubDate>
        
        <guid>https://blog.familie-topp.net/homelab/proxmox-disk-spindown/</guid>
        <description>&lt;img src="https://blog.familie-topp.net/img/site/open-hard-disk-black-background.jpg" alt="Featured image of post Spindown Disks under Proxmox" /&gt;&lt;h1 id=&#34;reduce-your-power-consumption-in-your-homelab-spindown-idle-disks&#34;&gt;Reduce your power consumption in your Homelab: Spindown Idle Disks
&lt;/h1&gt;&lt;p&gt;My Proxmox server is an older Ivy Bridge based Xeon E3-1225-v2
with 32 GB ECC RAM and four 3 TB harddisks as main storage and
three smaller SSDs for various services. In the true sense of
hyper-convergence this small server provides computing and storage
resources. It uses about 65W when idle, which amounts to roughly
15€ in monthly energy costs.&lt;/p&gt;
&lt;p&gt;Roundabout 25-30W come from the four harddisks being constantly
on. But truth be told, the NAS services are actually only used one
or two times a day.ä for watching movies or shows. For 20 hrs the
disks are idling away. Spinning them down saves 1/3rd of the energy
costs.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://blog.familie-topp.net/img/server-power-consumption.jpg&#34;
	
	
	
	loading=&#34;lazy&#34;
	
		alt=&#34;image&#34;
	
	
&gt;&lt;/p&gt;
&lt;p&gt;Many people are concerned about stressing their disks with spinning
down and up a few times a day. My experience is that this is not a
problem unless you spin them up a few times per hour. I have been
spinning down disks since 2014 and never lost a disk. My latest
array has been running for three years now. Even if I would loose
a disk eventually, the saved money is more than enough to buy a
new disk. My RAID array can handle loosing a disk. In my opinion
common sense is much more important - for disks this means to mix
vendors and use disks from different manufacturing dates. Buying
all identical disks at once from the same shop puts you at much
higher risks for multiple disk failures which cannot be handled
by RAID levels.&lt;/p&gt;
&lt;p&gt;In Proxmox/Debian it is very easy to spin down idle disks. I use
the &lt;em&gt;hd-idle&lt;/em&gt; package:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sudo apt install hd-idle
systemctl enable --now hd-idle
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The configuration file needs updating to configure the correct
disks for spindown:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;nano /etc/default/hd-idle
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;At the bottom of the file you can find the options string. Below
example shows the options to spindown two disks after 1200s of idle
time. This works well for me, you might be happier with longer or
shorter idle periods.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;HD_IDLE_OPTS=&amp;#34;-a disk/by-label/wwn-0x50014ee25ca35250 -i 1200 \\
              -a disk/by-label/wwn-0x50014ee2b1f6a196 -i 1200 \\
              -l /var/log/hd-idle.log&amp;#34;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;You start the hd-idle service with systemd:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sudo systemctl enable —now hd-idle.service
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The current status of disks can be checked with hdparm:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;hdparm -C /dev/disk/by-id/wwn-0x5000039fe6f3c34e
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Its best to use disk identifiers &lt;code&gt;/dev/disks/by-id&lt;/code&gt; instead of
&lt;code&gt;/dev/sdX&lt;/code&gt;. Disk identifiers never change even when add or remove
disks from your server.&lt;/p&gt;
&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;www.freepik.com&#34; &gt;Header image designed by Freepik&lt;/a&gt;&lt;/p&gt;
</description>
        </item>
        
    </channel>
</rss>
