{"id":240,"date":"2013-12-13T23:15:00","date_gmt":"2013-12-14T07:15:00","guid":{"rendered":"http:\/\/yootopia.com\/mystory\/wp\/?p=240"},"modified":"2013-12-13T23:15:00","modified_gmt":"2013-12-14T07:15:00","slug":"nas4free-how-to-replace-a-failing-disk","status":"publish","type":"post","link":"http:\/\/www.yootopia.com\/mystory\/wp\/?p=240","title":{"rendered":"[NAS4Free] How to replace a failing disk"},"content":{"rendered":"<p>I am very happy with NAS4Free server so far.  Especially the ZFS is awesome!!!<\/p>\n<p>I wanted to test out how easy and fast replacement of bad disk from ZFS RAIDZ2 and also wanted to test this out without reboots.  I must say that it went really, really smooth!!!<\/p>\n<p>Here is the procedure:<\/p>\n<p>(My ZFS zpool name is &#8220;vault0&#8221;)<br \/>\n1. Backup all data &#8211; yeah, we say this but never do it&#8230;<br \/>\n2. Issue &#8220;# zpool status&#8221; command to find out the status of the pool and the bad device.  In this case, the bad disk is ada2<br \/>\n3. zpool offline vault0 ada2<br \/>\n4. Remove the ada2 from the system &#8211; check dmesg<br \/>\n5. Insert the new replacement of ada2 &#8211; check dmesg<br \/>\n6. camcontrol identify ada2 &#8211; check the drive serial number to be sure<br \/>\n7. zpool online vault0 ada2<br \/>\n8. zpool replace vault0 ada2<br \/>\n9. zpool status<br \/>\n10. wait for the resilvering\/rebuilding process to complete.<\/p>\n<p>The best part is the step 10 runs really fast.  Previously I used raidframe RAID5 with 2TB disks and comparing to zpool replace process, it is day and night difference in the speed!!!!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am very happy with NAS4Free server so far. Especially the ZFS is awesome!!! I wanted to test out how easy and fast replacement of bad disk from ZFS RAIDZ2 and also wanted to test this out without reboots. I &hellip; <a href=\"http:\/\/www.yootopia.com\/mystory\/wp\/?p=240\">Continue reading <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":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[19,58],"tags":[67,64,66,65],"class_list":["post-240","post","type-post","status-publish","format-standard","hentry","category-howto","category-nas","tag-disk-failure","tag-nas4free","tag-replacing-disk","tag-zfs"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p48Rtg-3S","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/www.yootopia.com\/mystory\/wp\/index.php?rest_route=\/wp\/v2\/posts\/240","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.yootopia.com\/mystory\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.yootopia.com\/mystory\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.yootopia.com\/mystory\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.yootopia.com\/mystory\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=240"}],"version-history":[{"count":0,"href":"http:\/\/www.yootopia.com\/mystory\/wp\/index.php?rest_route=\/wp\/v2\/posts\/240\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.yootopia.com\/mystory\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.yootopia.com\/mystory\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=240"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.yootopia.com\/mystory\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}