{"id":3508,"date":"2019-04-13T19:24:23","date_gmt":"2019-04-13T07:24:23","guid":{"rendered":"http:\/\/www.zoyinc.com\/?p=3508"},"modified":"2019-04-13T19:24:23","modified_gmt":"2019-04-13T07:24:23","slug":"replacing-a-system-disk-in-open-media-vault","status":"publish","type":"post","link":"http:\/\/www.zoyinc.com\/?p=3508","title":{"rendered":"Replacing a system disk in Open Media Vault"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3519 size-full\" src=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/04\/ReplacingOMVSystemDisk08.jpg\" alt=\"\" width=\"1000\" height=\"258\" srcset=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/04\/ReplacingOMVSystemDisk08.jpg 1000w, http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/04\/ReplacingOMVSystemDisk08-150x39.jpg 150w, http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/04\/ReplacingOMVSystemDisk08-300x77.jpg 300w, http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/04\/ReplacingOMVSystemDisk08-768x198.jpg 768w, http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/04\/ReplacingOMVSystemDisk08-500x129.jpg 500w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/>Fortunately Open Media Vault, OMV, emails warnings when disks are failing. This is also true for the system disk. I have been getting warnings my old system disk is failing and this is what I did to fix it.<\/p>\n<p>First shutdown the PC and disconnect the RAID disks &#8211; just to ensure you don&#8217;t do anything to them by accident.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>Rule 1: take your time, double check things especially things like if it is <span style=\"color: #000000;\">&#8220;\/dev\/sda&#8221; <span style=\"color: #ff0000;\">or<\/span> &#8220;\/dev\/sdb&#8221;<\/span> etc.<\/strong><\/span><\/p>\n<h2>Backup the current disk<\/h2>\n<p>First create a USB book disk running Debian using the instructions <a  href=\"http:\/\/www.zoyinc.com\/?p=2353\">Create a Debian Live USB fshutdowlash drive<\/a>\u00a0and boot from it.<\/p>\n<p>Login the Debian and follow the instructions\u00a0<a  href=\"http:\/\/www.zoyinc.com\/?p=2510\">Enabling SSH access to Debian live USB<\/a> to enable ssh access to the host. Ensure you run ifconfig so you can work out the IP of the PC now it is running Debian live.<\/p>\n<p>From your personal PC run a putty session to the Debian live instance &#8211; using the IP you got above. Doing the rest from your personal PC will make life a lot easier, you can copy and paste instructions etc. etc.<\/p>\n<p>From the Putty use the instructions in\u00a0<a  href=\"http:\/\/www.zoyinc.com\/?p=2416\">Backing up Open Media Vault<\/a> to backup the drive to remote storage.<\/p>\n<p>Now shutdown the PC, you can just turn it off, not need to shutdown gracefully. Swap out the old hard drive and put in the new one. <strong>Ensure the RAID disks are disconnected just to be sure<\/strong> and again boot to the Debian live USB key. Once again follow the instructions to enable ssh, <a  href=\"http:\/\/www.zoyinc.com\/?p=2510\">Enabling SSH access to Debian live USB.<\/a><\/p>\n<p>Again follow the instructions in\u00a0<a  href=\"http:\/\/www.zoyinc.com\/?p=2416\">Backing up Open Media Vault<\/a> but this time follow the instructions in the section &#8220;Doing a restore&#8221;.<\/p>\n<p>When the restore is done shutdown the OMV server using:<\/p>\n<p>shutdown -h now<\/p>\n<h2>Restore to the new system disk<\/h2>\n<p>Now unplug the USB and restart the server using the new system disk &#8211; but with RAID still disconnected. If that works again shutdown the OMV server and then connect the RAID drives. Finally restart with everything finished.<\/p>\n<p>Login to the server and check under S.M.A.R.T. to check the new system disk and old RAID disks are preent:<\/p>\n<p><a  href=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/04\/ReplacingOMVSystemDisk01.jpg\" class=\"thickbox no_icon\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3511\" src=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/04\/ReplacingOMVSystemDisk01.jpg\" alt=\"\" width=\"570\" height=\"179\" srcset=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/04\/ReplacingOMVSystemDisk01.jpg 570w, http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/04\/ReplacingOMVSystemDisk01-150x47.jpg 150w, http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/04\/ReplacingOMVSystemDisk01-300x94.jpg 300w, http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/04\/ReplacingOMVSystemDisk01-500x157.jpg 500w\" sizes=\"auto, (max-width: 570px) 100vw, 570px\" \/><\/a><\/p>\n<p>Also login to RAID Management and check everything looks good by selecting the RAID, in our case &#8220;nas2:Mirror&#8221; and click on details:<\/p>\n<h2><a  href=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/04\/ReplacingOMVSystemDisk03.jpg\" class=\"thickbox no_icon\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3512\" src=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/04\/ReplacingOMVSystemDisk03.jpg\" alt=\"\" width=\"526\" height=\"280\" \/><\/a>Enable S.M.A.R.T. monitoring<\/h2>\n<p>First enable monitoring for this new disk by going to S.M.A.R.T where you will see the new disk, this time a Fujitsu rather than a Toshiba and you will see monitoring is not enabled.:<\/p>\n<p><a  href=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/04\/ReplacingOMVSystemDisk06.jpg\" class=\"thickbox no_icon\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3514\" src=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/04\/ReplacingOMVSystemDisk06.jpg\" alt=\"\" width=\"569\" height=\"183\" srcset=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/04\/ReplacingOMVSystemDisk06.jpg 569w, http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/04\/ReplacingOMVSystemDisk06-150x48.jpg 150w, http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/04\/ReplacingOMVSystemDisk06-300x96.jpg 300w, http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/04\/ReplacingOMVSystemDisk06-500x161.jpg 500w\" sizes=\"auto, (max-width: 569px) 100vw, 569px\" \/><\/a>Select the new disk, FUJITSU in my case, and click on &#8220;Edit&#8221;. You will get a &#8220;Device Properties&#8221; dialog, select &#8220;Activate S.M.A.R.T. monitoring&#8221; and click on Save. At the top of OMV you will be prompted to &#8220;Apply&#8221; &#8211; click on &#8220;apply&#8221; and wait for the config to be applied.<\/p>\n<p>Because it is a replacement drive if you go to &#8220;Scheduled tests&#8221; under S.M.A.R.T. and assuming you have set up monitoring using <a  href=\"http:\/\/www.zoyinc.com\/?p=2984\">Hard disk SMART monitoring and alerts in OMV<\/a> you should see something like:<\/p>\n<p><a  href=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/04\/ReplacingOMVSystemDisk04.jpg\" class=\"thickbox no_icon\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3513\" src=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/04\/ReplacingOMVSystemDisk04.jpg\" alt=\"\" width=\"1052\" height=\"379\" srcset=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/04\/ReplacingOMVSystemDisk04.jpg 1052w, http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/04\/ReplacingOMVSystemDisk04-150x54.jpg 150w, http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/04\/ReplacingOMVSystemDisk04-300x108.jpg 300w, http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/04\/ReplacingOMVSystemDisk04-768x277.jpg 768w, http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/04\/ReplacingOMVSystemDisk04-500x180.jpg 500w\" sizes=\"auto, (max-width: 1052px) 100vw, 1052px\" \/><\/a>Because the disk has been removed it shows &#8220;n\/a&#8221;, not applicable. Double click on this scheduled test and you will get a popup:<\/p>\n<p><a  href=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/04\/ReplacingOMVSystemDisk07.jpg\" class=\"thickbox no_icon\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3515\" src=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/04\/ReplacingOMVSystemDisk07.jpg\" alt=\"\" width=\"400\" height=\"363\" srcset=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/04\/ReplacingOMVSystemDisk07.jpg 400w, http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/04\/ReplacingOMVSystemDisk07-150x136.jpg 150w, http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/04\/ReplacingOMVSystemDisk07-300x272.jpg 300w, http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/04\/ReplacingOMVSystemDisk07-331x300.jpg 331w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/a>Select your new disk, in our case FUJITSU, and click on Save.<\/p>\n<p>Repeat this for the second scheduled test which is also marked as n\/a &#8211; remember we have two scheduled tasks, a short one once a day and a long one once a week on Monday.<\/p>\n<p>Again you will see a bar at the top of OMV prompting you to apply the changes. Once you are finished click on &#8220;Apply&#8221; to apply the new changes<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fortunately Open Media Vault, OMV, emails warnings when disks are failing. This is also true for the system disk. I have been getting warnings my old system disk is failing and this is what I did to fix it. First shutdown the PC and disconnect the RAID disks &#8211; just to ensure you don&#8217;t do [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":3522,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[312,313],"tags":[327,318,500,501,295,319,320,499,498,497,341,139],"class_list":["post-3508","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian","category-open-media-vault","tag-backup","tag-debian","tag-hard-drive","tag-hhd","tag-linux","tag-omv","tag-open-media-vault","tag-recover","tag-replace","tag-restore","tag-ssh","tag-system"],"_links":{"self":[{"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=\/wp\/v2\/posts\/3508","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3508"}],"version-history":[{"count":7,"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=\/wp\/v2\/posts\/3508\/revisions"}],"predecessor-version":[{"id":3523,"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=\/wp\/v2\/posts\/3508\/revisions\/3523"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=\/wp\/v2\/media\/3522"}],"wp:attachment":[{"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3508"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}