{"id":769,"date":"2014-04-01T11:58:05","date_gmt":"2014-04-01T11:58:05","guid":{"rendered":"http:\/\/10sa.com\/sql_stories\/?p=769"},"modified":"2014-04-01T12:59:16","modified_gmt":"2014-04-01T12:59:16","slug":"iscsi-change-the-device-on-the-target-hot-plugging","status":"publish","type":"post","link":"http:\/\/10sa.com\/sql_stories\/?p=769","title":{"rendered":"iScsi &#8211; change the device on the target (hot plugging)"},"content":{"rendered":"<p>The aim of the operation was to enlarge the space in the database volume. My colleague replaced the disks in the storage (hot plug). I was forced to perform the entire operation remotely.<br \/>\nThe LSI controller saw the new disks, however the OS and the Iscsi software thought that the device was still 360GB in size. I configured the controller and created a new 700GB array. I had to force the OS to change its mind&#8230;<\/p>\n<p>I used the following option:<\/p>\n<pre lang=\"bash\"> \r\necho 1 > \/sys\/block\/sdc\/device\/rescan\r\n<\/pre>\n<p>After that FDISK saw the proper size.<br \/>\nAnd from now, the b\/m command shows that the backend-store (LUN1) disapeared<\/p>\n<pre lang=\"bash\">\r\ntgtadm --lld iscsi --op new\r\n<\/pre>\n<p>So i added it, again:<\/p>\n<pre>\r\ntgtadm --lld iscsi --op new --mode logicalunit --tid 2 --lun 1 -b \/dev\/sdc\r\n<\/pre>\n<p>Voila!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The aim of the operation was to enlarge the space in the database volume. My colleague replaced the disks in the storage (hot plug). I was forced to perform the entire operation remotely. The LSI controller saw the new disks, however the OS and the Iscsi software thought that the device was still 360GB in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[18],"tags":[],"_links":{"self":[{"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=\/wp\/v2\/posts\/769"}],"collection":[{"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=769"}],"version-history":[{"count":11,"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=\/wp\/v2\/posts\/769\/revisions"}],"predecessor-version":[{"id":780,"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=\/wp\/v2\/posts\/769\/revisions\/780"}],"wp:attachment":[{"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=769"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=769"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=769"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}