{"id":105,"date":"2010-02-25T05:15:22","date_gmt":"2010-02-25T05:15:22","guid":{"rendered":"http:\/\/poojanwagh.opalstacked.com\/techblog\/?p=105"},"modified":"2010-02-25T05:22:48","modified_gmt":"2010-02-25T05:22:48","slug":"replaced-my-250gb-hard-drive-with-a-1tb-hard-drive","status":"publish","type":"post","link":"https:\/\/tech.poojanblog.com\/blog\/unix-linux\/replaced-my-250gb-hard-drive-with-a-1tb-hard-drive\/","title":{"rendered":"Replaced my 250GB hard drive with a 1TB hard drive"},"content":{"rendered":"<p>In a prior incarnation of my &#8220;RAID&#8221; system, I was using 1 partition on one drive plus 4 partitions on another drive to set up a RAID-Z2 system.<\/p>\n<p>My thinking was that splitting up by partition at least protects me against sector failure (if not whole drive failure). The 4 partitions were 250 GB each on a<a title=\"Amazon\" href=\"http:\/\/www.amazon.com\/gp\/product\/B002F9NBIM?ie=UTF8&amp;tag=poojanblog-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=B002F9NBIM\"> 1TB Hitachi\/SimpleTech<\/a> drive.<\/p>\n<p><a title=\"Murphy's Law\" href=\"http:\/\/en.wikipedia.org\/wiki\/Murphy%27s_law\">I should&#8217;ve anticipated it<\/a>, but don&#8217;t you know, the 1 TB drive failed&#8211;after about 1 week. So, my data would&#8217;ve been lost. (Except I kept a copy on another computer; I&#8217;m not crazy.)<\/p>\n<p>I knew I&#8217;d need at least 3 hard drives to prevent this from happening again. So, I sent the Hitachi drive for warranty and ordered a <a title=\"Amazon\" href=\"http:\/\/www.amazon.com\/gp\/product\/B001E06W8O?ie=UTF8&amp;tag=obsecompthind-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=B001E06W8O\">Fantom 1 TB<\/a> hard drive. (BTW: I really like the Fantom; it looks slick, is constructed well, and runs rather cool.)<\/p>\n<p>In the meantime, I spotted a <a title=\"MacMall\" href=\"http:\/\/www.macmall.com\/p\/Fantom-Drives-Hard-Drives\/product~dpno~7532250~pdp.ejchfbg\">500 GB Fantom<\/a> for a good price <span style=\"color: #999999\">(not too enthused about the mail-in-rebates, though)<\/span>, so I got that as well. Once I had the two Fantoms in hand, I could set up a RAIDZ (2 data + 1 parity) configuration with what I already had: a 250 GB Cavalry hard drive (from before), a 500 GB Fantom, and a 1 TB Fantom. Setting it up this way meant that I&#8217;d only be making use of 750 GB of space (out of the 1.75 TB that all the drives have together). 250 GB of that 750 is used for parity, so I really only get 500GB of usable space. Such is the price for reliability.<\/p>\n<p>A couple days ago, the replacement 1 TB Hitachi arrived. So, I decided to take out the 250 GB hard drive and replace that slice with the 1 TB Hitachi. I did a:<br \/>\n<code>sudo zpool offline tank da1s1<\/code><br \/>\nI then powered down and unplugged the 250GB Cavalry drive. Seeing as how FreeBSD can be quite flaky in disk numbering, I made sure to keep track of which USB port it was plugged into.<\/p>\n<p>Incidently, I had a Kill-A-Watt on the whole setup. Before unplugging the Cavalry, the Kill-A-Watt estimated $36.33 per year and 33 Watts usage. After unplugging, it said 22 Watts usage. Wow! That explains why the Cavalry runs burning hot to the touch (makes a good foot warmer in winter).<\/p>\n<p>After plugging in the Hitachi drive (I inadvertently powered down the machine in the process), I did the following to re-silver:<br \/>\n<code>sudo zpool replace tank da1s1 da1s1<\/code><\/p>\n<p>Right now, it&#8217;s sitting at the following:<\/p>\n<code><br \/>\n&gt; zpool status<br \/>\npool: tank<br \/>\nstate: DEGRADED<br \/>\nstatus: One or more devices is currently being resilvered.\u00a0 The pool will<br \/>\ncontinue to function, possibly in a degraded state.<br \/>\naction: Wait for the resilver to complete.<br \/>\nscrub: resilver in progress for 0h12m, 11.90% done, 1h35m to go<br \/>\nconfig:<\/p>\n<p>NAME\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 STATE\u00a0\u00a0\u00a0\u00a0 READ WRITE CKSUM<br \/>\ntank\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 DEGRADED\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0<br \/>\nraidz1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 DEGRADED\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0<br \/>\nda0s1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ONLINE\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0 4.89M resilvered<br \/>\nreplacing\u00a0\u00a0\u00a0 DEGRADED\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0<br \/>\nda1s1\/old\u00a0 OFFLINE\u00a0\u00a0\u00a0\u00a0\u00a0 0 7.68K\u00a0\u00a0\u00a0\u00a0 0<br \/>\nda1s1\u00a0\u00a0\u00a0\u00a0\u00a0 ONLINE\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0 7.23G resilvered<br \/>\nda2s1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ONLINE\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0 4.88M resilvered<\/p>\n<p>errors: No known data errors<br \/>\n<\/code>\n<p>Pretty slick! I&#8217;ll now have 1 TB of storage (out of the 2.5 TB total hard drive space).<\/p>\n<p>I know it seems crazy, but I think I&#8217;ll continue to keep the slices incongruent. For example, when I need more space, I&#8217;ll replace the 500 GB drive with a 2 TB drive. I&#8217;ll immediately have 2 TB available (out of a total of 4 TB hard drive space, 3 TB are being used). One of the mistakes I made presently is that I have two drives of the same size. So, at some point, I&#8217;m going to replace one of them but not get any additional space from it. More likely, 2 TB of space will suffice for many years to come.<\/p>\n<p>By the way, the Kill-A-Watt now shows 30 Watts usage. Of course, that&#8217;s while the drives are active (re-silvering). Hopefully, they&#8217;ll lower their power when the re-silvering is finished.<\/p>\n<div class='wp_likes' id='wp_likes_post-105'><a class='like' href=\"javascript:wp_likes.like(105);\" title='' ><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/tech.poojanblog.com\/blog\/wp-content\/plugins\/wp-likes\/images\/like.png\" alt='' border='0'\/><\/a><span class='text'>Be the first to like.<\/span><\/p>\n<div class='like' ><a href=\"javascript:wp_likes.like(105);\">Like<\/a><\/div>\n<div class='unlike' ><a href=\"javascript:wp_likes.unlike(105);\">Unlike<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>the replacement 1 TB Hitachi arrived. So, I decided to take out the 250 GB hard drive and replace that slice with the 1 TB Hitachi.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[10],"tags":[34,12,40,39,31,3],"class_list":["post-105","post","type-post","status-publish","format-standard","hentry","category-unix-linux","tag-da1","tag-freebsd","tag-kill-a-watt","tag-resilver","tag-usb-drive","tag-zfs"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/posts\/105","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/comments?post=105"}],"version-history":[{"count":4,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/posts\/105\/revisions"}],"predecessor-version":[{"id":109,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/posts\/105\/revisions\/109"}],"wp:attachment":[{"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/media?parent=105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/categories?post=105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/tags?post=105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}