{"id":1668,"date":"2013-04-05T21:46:06","date_gmt":"2013-04-05T20:46:06","guid":{"rendered":"http:\/\/kudzia.eu\/b\/?p=1668"},"modified":"2014-08-16T19:25:33","modified_gmt":"2014-08-16T18:25:33","slug":"adventure-with-green-drives","status":"publish","type":"post","link":"https:\/\/kudzia.eu\/b\/2013\/04\/adventure-with-green-drives\/","title":{"rendered":"adventure with green drives"},"content":{"rendered":"<p>wd [and other vendors] sell green drives; they are reasonably cheap but have annoying tendency to spin down very very quickly. i bought recently 2x WD20NPVT-00Z2TT0 with intention of using them [in very unprofessional fashion] in PERC6 RAID1 array.<br \/>\n<!--more--><\/p>\n<p>those drives park the heads and spin down after 8 seconds of inactivity:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nwhile &#x5B; true ] ; do\r\n        sleep 7 ;\r\n        smartctl -d sat -a \/dev\/sdb|grep Load_Cycle_Count\r\ndone\r\n<\/pre>\n<p>gives:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       24\r\n193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       24\r\n193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       24\r\n193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       24\r\n193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       24\r\n<\/pre>\n<p>while the same code with slightly longer sleep value<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nwhile &#x5B; true ] ; do\r\n        sleep 10 ;\r\n        smartctl -d sat -a \/dev\/sdb|grep Load_Cycle_Count\r\ndone\r\n<\/pre>\n<p>gives:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       10\r\n193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       11\r\n193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       12\r\n193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       13\r\n193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       14\r\n193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       15\r\n193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       16\r\n193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       16\r\n193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       17\r\n193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       18\r\n193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       19\r\n193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       20\r\n193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       21\r\n193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       22\r\n193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       23\r\n<\/pre>\n<p>notice the increasing value in the last column; such behavior might be fine for a media center machine serving some video from time to time but is undesired for the 24&#215;7 server with some background cron jobs running all the time.<\/p>\n<p>i have downloaded <a href=\"http:\/\/idle3-tools.sourceforge.net\/\">idle3-tools<\/a> for linux and run <\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n.\/idle3ctl -s 129 \/dev\/sdb\r\n<\/pre>\n<p>129 corresponds to idle interval of 30 sec.<\/p>\n<p>after power off + power on the same test as above gave much better results:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       31\r\n193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       31\r\n193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       31\r\n193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       31\r\n193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       31\r\n<\/pre>\n<p>the disk is no longer parking after 8s idle period.<\/p>\n<p>in the long run i&#8217;ll use <i>-s 254<\/i> parameter which should correspond to the idle time of 254-128=126 30s periods = 63 min. i&#8217;ll add a 30 min cron job dumping smart values to wake the hard drive and monitor of the load cycle count does not increase:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nsmartctl -d megaraid,2 -a \/dev\/sda &gt;&gt; log\r\nsmartctl -d megaraid,3 -a \/dev\/sda &gt;&gt; log\r\n<\/pre>\n<p>WD20NPVT worked fine in a desktop computer. read and write performance was reasonable &#8211; 80-100MB\/s for a sequential access. but then i&#8217;ve put the disks to the server. i&#8217;ve read earlier that i should expect problems although have not seen any details. i have connected both disks to PERC6 in PE1950 and created RAID1 on 2x WD20NPVT, let it initialize and measured linear access speeds. reads were perfectly fine ~100MB\/s, but writes &#8211; never above 30MB\/s. i think i&#8217;ve tried it all:<\/p>\n<ul>\n<li>creating raid0 on single drive<\/li>\n<li>enabling drive&#8217;s internal cache [ <i>MegaCli64 -LDSetProp EnDskCache -L1 -a0<\/i> ]<\/li>\n<li>checking different stripe size [in theory it should not affect RAID1 as i understand it but apparently it does, although results vary by maybe +\/-10%]<\/li>\n<li>turning off and on write-back cache provided by the PERC6<\/li>\n<\/ul>\n<p>but i never got better write speed. but actually 30MB\/s should be enough for my particular use case. i&#8217;ve been running heavy IO load on the server for the last 10 days and so far all works fine.<\/p>\n<p>i&#8217;ll update this post if i encounter any trouble in the future.<\/p>\n<p>the server which i&#8217;m preparing also has 2x WD1000CHTZ wd 1TB raptor drives. there were no performance issues with those. raptors &#8211; also in RAID1 &#8211; will be boot drives and spool to which rsyncs \/ vmware dumps will arrive. from there rdiff-backup will created copies onto RAID1 on 2x WD20NPVT; from there data will be copied to the offsite location where it&#8217;ll be placed on offline media.<\/p>\n<p><b>edit<\/b> 2013-07-13 &#8211; out of blue write speed deteriorated from tolerable 20MB\/s to 4MB\/s on the 2TB 2.5 green disks. final verdict &#8211; don&#8217;t mix green WD20NPVT with PERC6. i&#8217;m moving data to another machine and will use 2x WD2003FYYS. according to <a href=\"http:\/\/www.wdc.com\/wdproducts\/library\/cs\/2579-771506.pdf\">this<\/a> they should work fine with PERC6.<br \/>\n<b>edit<\/b> 2014-07-07 &#8211; WD RE4 2TB disks work indeed with dell&#8217;s PERC6 &#8211; they&#8217;ve been working flawlessly in RAID1 for the last 12 months under moderate load [ WD2003FYYS, WD2000FYYZ] . WD20NPVT are used as rotated \/ offline backup drives and are doing fine too.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>wd [and other vendors] sell green drives; they are reasonably cheap but have annoying tendency to spin down very very quickly. i bought recently 2x WD20NPVT-00Z2TT0 with intention of using them [in very unprofessional fashion] in PERC6 RAID1 array.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-1668","post","type-post","status-publish","format-standard","hentry","category-tech"],"_links":{"self":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/1668","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/comments?post=1668"}],"version-history":[{"count":14,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/1668\/revisions"}],"predecessor-version":[{"id":2294,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/1668\/revisions\/2294"}],"wp:attachment":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/media?parent=1668"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/categories?post=1668"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/tags?post=1668"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}