{"id":69,"date":"2008-05-15T18:48:16","date_gmt":"2008-05-16T00:48:16","guid":{"rendered":"http:\/\/www.pervasivecode.com\/blog\/2008\/05\/15\/save-power-and-heat-spin-down-backup-drives-when-idle\/"},"modified":"2008-08-27T10:09:29","modified_gmt":"2008-08-27T16:09:29","slug":"save-power-and-heat-spin-down-backup-drives-when-idle","status":"publish","type":"post","link":"http:\/\/www.pervasivecode.com\/blog\/2008\/05\/15\/save-power-and-heat-spin-down-backup-drives-when-idle\/","title":{"rendered":"Save power and heat: spin down backup drives when idle"},"content":{"rendered":"<p>Here&#8217;s a tip for those of you who, like me, back up your data to hard disks instead of tapes. Backing up to the same hard disk doesn&#8217;t protect you much (if the disk failed, you&#8217;d lose the data and the backup at once), so presumably you&#8217;re backing up to a separate physical drive. That means that the backup drive need not spin 24\/7. Instead, it only needs to spin at backup time.<br \/>\n<!--more--><br \/>\nFortunately most disks can be told to spin down when idle, like laptop drives do. For the main disks of a server this is probably not worth the trouble, but for backup drives it can save you a lot of power and heat. Excessive heat kills hard drives, so this can also prolong the life of your backup drive.<\/p>\n<p>On Linux this is accomplished with hdparm:<\/p>\n<pre>sudo hdparm -S 6 \/dev\/sda<\/pre>\n<p>The numeric value is on a nonlinear scale, so <code>man hdparm<\/code> and read about the -S option to make sure you pick the value you intended.<\/p>\n<p>You can check the current status (active or standby) like this:<\/p>\n<pre>sudo hdparm -C \/dev\/sda<\/pre>\n<p>Gotchas:<br \/>\nExternal drives aren&#8217;t managed directly by the kernel, so hdparm won&#8217;t work on them. My hardware RAID card won&#8217;t pass through these commands. Linux RAID will not pass these commands through, though you may be able to apply the commands individually to RAID set members (which is what I was able to do).<\/p>\n<p>I don&#8217;t know how to do this on a per-drive basis on Mac OS X (<code>pmset<\/code> apparently affects every drive on the system), or at all on Windows. If you know feel free to post a comment explaining how it&#8217;s done.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here&#8217;s a tip for those of you who, like me, back up your data to hard disks instead of tapes. Backing up to the same hard disk doesn&#8217;t protect you much (if the disk failed, you&#8217;d lose the data and the backup at once), so presumably you&#8217;re backing up to a separate physical drive. That &hellip; <a href=\"http:\/\/www.pervasivecode.com\/blog\/2008\/05\/15\/save-power-and-heat-spin-down-backup-drives-when-idle\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Save power and heat: spin down backup drives when idle&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43,15],"tags":[],"class_list":["post-69","post","type-post","status-publish","format-standard","hentry","category-raid","category-servers"],"_links":{"self":[{"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/posts\/69"}],"collection":[{"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/comments?post=69"}],"version-history":[{"count":0,"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/posts\/69\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/media?parent=69"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/categories?post=69"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/tags?post=69"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}