{"id":502,"date":"2011-09-28T19:55:39","date_gmt":"2011-09-28T17:55:39","guid":{"rendered":"http:\/\/mattiesworld.gotdns.org\/weblog\/2011\/09\/28\/add-new-harddisk-on-the-fly\/"},"modified":"2011-09-28T19:55:39","modified_gmt":"2011-09-28T17:55:39","slug":"add-new-harddisk-on-the-fly","status":"publish","type":"post","link":"https:\/\/mattiesworld.gotdns.org\/weblog\/2011\/09\/28\/add-new-harddisk-on-the-fly\/","title":{"rendered":"Add new harddisk on the fly"},"content":{"rendered":"<p>So you have this linux box and you want to add an extra harddrive without having to reboot it. The key command we&#8217;re looking for, is a way to rescan the scsi bus. This can be achived by rewriting some values in the \/sys synthetic filesystem:<\/p>\n<p><code>echo \"- - -\" > \/sys\/class\/scsi_host\/host#\/scan<\/code><\/p>\n<p>Replace the digit for the scsi host as appropiate.<\/p>\n<p>If everything went well, you should get output on the console indicating it detected a new hard drive.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So you have this linux box and you want to add an extra harddrive without having to reboot it. The key command we&#8217;re looking for, is a way to rescan the scsi bus. This can be achived by rewriting some values in the \/sys synthetic filesystem: echo &#8220;- &#8211; -&#8221; > \/sys\/class\/scsi_host\/host#\/scan Replace the digit &hellip; <a href=\"https:\/\/mattiesworld.gotdns.org\/weblog\/2011\/09\/28\/add-new-harddisk-on-the-fly\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Add new harddisk on the fly<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,10],"tags":[],"class_list":["post-502","post","type-post","status-publish","format-standard","hentry","category-linux","category-tweaking"],"_links":{"self":[{"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/posts\/502","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/comments?post=502"}],"version-history":[{"count":0,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/posts\/502\/revisions"}],"wp:attachment":[{"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/media?parent=502"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/categories?post=502"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/tags?post=502"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}