{"id":660,"date":"2010-12-22T11:22:11","date_gmt":"2010-12-22T16:22:11","guid":{"rendered":"http:\/\/it.thelibrarie.com\/weblog\/?p=660"},"modified":"2010-12-22T11:22:41","modified_gmt":"2010-12-22T16:22:41","slug":"freenas-rebuilding","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2010\/12\/freenas-rebuilding\/","title":{"rendered":"FreeNAS Rebuilding"},"content":{"rendered":"<p>We decided to test pulling out a HD and sticking it back in to see how the FreeNAS would react.<\/p>\n<p>Specs:<br \/>\nFreeNAS 0.7.2 (5543)<br \/>\nAreca ARC-1222 w\/ Battery<br \/>\nHotswap ICYDock drives<br \/>\nHitachi 2TB SATA HD&#8217;s (QTY 8 )<br \/>\nRAID 50 (so a stripe of 2x RAID 5&#8217;s, 12TB unformatted)<\/p>\n<p>Pulled out the HD, put the HD back in.  Drive lights on 7 of the drives turned to orange (means data was being accessed\/changed) and the drive we pulled out and put back was green (only power).<\/p>\n<p>Logged into the Areca Web Panel and added the HD as a hot spare.  The RAID controller instantly tried to rebuild the array.  After 15 minutes the rebuild process was still at 0.0% so something was definitely wrong.<\/p>\n<p>Checked the FreeNAS and HD space was rapidly being used up (about 100MB\/sec).  Checked &#8220;top&#8221; to see what the problem was &#8211; fsck_ufs was running full tilt.<\/p>\n<p>FreeBSD was checking the HD for errors after a forced reboot earlier in the day.  So there was little free time for the RAID controller to rebuild.<\/p>\n<p>Unfortunately the kill PID command was not working.  Kill -9 PID also failed.  I would have to reboot.<\/p>\n<p>Edit this file to make sure this doesn&#8217;t happen again:<\/p>\n<blockquote><p><code>vi \/etc\/rc.conf<\/code><br \/>\n<code>i<\/code><br \/>\n<code>background_fsck=\"NO\"<\/code><br \/>\nEscape<br \/>\n<code>:wq!<\/code><\/p><\/blockquote>\n<p>Reboot.  Now, due to the HD&#8217;s being run full tilt, we had to manually reboot the server.  It might have worked out OK if we just left it after issuing the reboot command, but I&#8217;m not a patient man.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We decided to test pulling out a HD and sticking it back in to see how the FreeNAS would react. Specs: FreeNAS 0.7.2 (5543) Areca ARC-1222 w\/ Battery Hotswap ICYDock drives Hitachi 2TB SATA HD&#8217;s (QTY 8 ) RAID 50 (so a stripe of 2x RAID 5&#8217;s, 12TB unformatted) Pulled out the HD, put the &hellip; <a href=\"https:\/\/it.thelibrarie.com\/weblog\/2010\/12\/freenas-rebuilding\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">FreeNAS Rebuilding<\/span> <span class=\"meta-nav\">&rarr;<\/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":[7],"tags":[],"class_list":["post-660","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/660","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/comments?post=660"}],"version-history":[{"count":2,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/660\/revisions"}],"predecessor-version":[{"id":662,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/660\/revisions\/662"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=660"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=660"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=660"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}