{"id":48,"date":"2009-09-11T13:09:22","date_gmt":"2009-09-11T19:09:22","guid":{"rendered":"http:\/\/benincosa.com\/blog\/?p=48"},"modified":"2018-09-19T10:29:39","modified_gmt":"2018-09-19T16:29:39","slug":"kickstarting-with-fiber-channel-drives","status":"publish","type":"post","link":"https:\/\/benincosa.com\/?p=48","title":{"rendered":"Kickstarting with Fiber Channel Drives"},"content":{"rendered":"<p>One of the issues I&#8217;ve run into many times is when you kickstart a storage node attached to fiber channel, then it will start installing \/dev\/sda1 on the disk LUN. I blew away a huge storage partition by doing this on accident. Yikes! When I took my RHCE class the instructor just looked bewildered and had no idea how to solve it. The solution is obvious: Remove the drivers during the %pre script. This link shows how to do it:<\/p>\n<pre class=\"lang:sh decode:true \">%pre\r\n\r\n#!\/bin\/sh\r\n\r\n# This will remove the loaded HBA modules from the kernel\r\nremove_qla(){\r\n  for i in $(lsmod | grep qla | awk '{print $1'}); do\r\n  echo Will remove: $i &gt;&gt; \/dev\/tty1\r\n  rmmod $i\r\n  sleep 1\r\n  done\r\n}\r\n\r\nremove_lpfc(){\r\nfor i in $(lsmod | grep lpfc | awk '{print $1'}); do\r\n  echo Will remove: $i &gt;&gt; \/dev\/tty1\r\n  rmmod $i\r\n  sleep 1\r\n  done\r\n\r\n}\r\nremove_qla\r\nsleep 2\r\nremove_qla\r\nremove_lpfc\r\n\r\n\r\n<\/pre>\n<p>This script comes from <a href=\"http:\/\/communities.vmware.com\/message\/1272854#1272854\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/communities.vmware.com\/message\/1272854#1272854<\/a><\/p>\n<p>5 years later, a solution emerges. Its been there all along, but nobody I knew could solve it.<br \/>\nMany people are paranoid anyway and will not use this because like the thread states: There&#8217;s nothing worse than blowing away a LUN. And yes, I&#8217;ve done it. At the US Army Laboratories of all places!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the issues I&#8217;ve run into many times is when you kickstart a storage node attached to fiber channel, then it will start installing \/dev\/sda1 on the disk LUN. I blew away a huge storage partition by doing this on accident. Yikes! When I took my RHCE class the instructor just looked bewildered and&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[13,32],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/benincosa.com\/index.php?rest_route=\/wp\/v2\/posts\/48"}],"collection":[{"href":"https:\/\/benincosa.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/benincosa.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/benincosa.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/benincosa.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=48"}],"version-history":[{"count":3,"href":"https:\/\/benincosa.com\/index.php?rest_route=\/wp\/v2\/posts\/48\/revisions"}],"predecessor-version":[{"id":3661,"href":"https:\/\/benincosa.com\/index.php?rest_route=\/wp\/v2\/posts\/48\/revisions\/3661"}],"wp:attachment":[{"href":"https:\/\/benincosa.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=48"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/benincosa.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=48"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/benincosa.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=48"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}