{"id":190,"date":"2011-10-18T08:26:20","date_gmt":"2011-10-18T07:26:20","guid":{"rendered":"http:\/\/blog.campodoro.org\/?p=190"},"modified":"2011-10-18T08:36:56","modified_gmt":"2011-10-18T07:36:56","slug":"adding-a-non-vmfs-drive-to-your-esxi-server-and-use-it","status":"publish","type":"post","link":"https:\/\/blog.campodoro.org\/?p=190","title":{"rendered":"Adding a non-VMFS drive to your ESX(i) server and use it!"},"content":{"rendered":"<p>I had some spare Windows drives lying around and wanted to put them in my HP MicroServer running ESXi 4.1.<\/p>\n<p>After installing the SATA drive, and rebooting, I tried to simply add the drive in the vSphere console. No love from VMWare \u00e2\u20ac\u201d I got the message, \u00e2\u20ac\u0153Error while adding drive &#8211; disk not available.\u00e2\u20ac\u009d Hmmm. I was sure the drive was working.<\/p>\n<p>Turns out that in ESXi, once a disk has been written to, in any format, it won\u00e2\u20ac\u2122t initialize.<br \/>\nHere\u00e2\u20ac\u2122s what it took to add the drive in:<\/p>\n<p>Low-level formatted the drive (the name of the drive might be shorter or longer):<br \/>\n<code>~ #  dd if=\/dev\/zero of=\/vmfs\/devices\/disks\/t10.ATA_ST3500413AS_Z2A3TKQ6 bs=512 conv=notrunc<\/code><\/p>\n<p><strong>Try adding the disk to your datastore now<\/strong>; I canceled this command after waiting 5 minutes and noticed that ESXi now saw the disk as a &#8216;blank disk&#8217;. Adding it to my datastore now worked! If not, continue&#8230;<\/p>\n<p>Recreate the partition table:<br \/>\n<code>~ # fdisk \/vmfs\/devices\/disks\/t10.ATA_ST3500413AS_Z2A3TKQ6<\/code><\/p>\n<p>Then \u00e2\u20ac\u02dc<strong>o<\/strong>\u00e2\u20ac\u2122 to Create a new empty DOS partition table<br \/>\nThen \u00e2\u20ac\u02dc<strong>n<\/strong>\u00e2\u20ac\u2122 to add a new partition.  I used Primary as the type, and 1 as the partition number.<br \/>\nThen \u00e2\u20ac\u02dc<strong>t<\/strong>\u00e2\u20ac\u2122 to change the type.  \u00e2\u20ac\u02dcfb\u00e2\u20ac\u2122 is the code for VMFS 3.0<br \/>\nThen \u00e2\u20ac\u02dc<strong>w<\/strong>\u00e2\u20ac\u2122 to write everything to the drive<\/p>\n<p>Finally, use the \u00e2\u20ac\u02dcvmkfstools\u00e2\u20ac\u2122 program to create the volume.  I added it as a new datastore using the following command:<br \/>\n<code>~ # vmkfstools -C vmfs3 -S Datastore2 \/vmfs\/devices\/disks\/t10.ATA_ST3500413AS_Z2A3TKQ6<\/code><\/p>\n<p>As always, YMMV.<\/p>\n<div class=\"tweetthis\" style=\"text-align:left;\"><p> <a class=\"tt\" href=\"http:\/\/twitter.com\/share?url=https:\/\/blog.campodoro.org\/?p=190&text=Adding+a+non-VMFS+drive+to+your+ESX%28i%29+server+and+use+it%21+%23campodoro+%23tips+%23apple&via=goudkamp&related=richardxthripp%2Ctweetthisplugin\" title=\"Twitter\"><img decoding=\"async\" class=\"nothumb\" src=\"http:\/\/blog.campodoro.org\/wp-content\/plugins\/tweet-this\/icons\/en\/twitter\/tt-twitter.png\" alt=\"Post to Twitter\" \/><\/a> <a class=\"tt\" href=\"http:\/\/twitter.com\/share?url=https:\/\/blog.campodoro.org\/?p=190&text=Adding+a+non-VMFS+drive+to+your+ESX%28i%29+server+and+use+it%21+%23campodoro+%23tips+%23apple&via=goudkamp&related=richardxthripp%2Ctweetthisplugin\" title=\"Twitter\">Tweet<\/a> <a class=\"tt\" href=\"http:\/\/delicious.com\/post?url=https:\/\/blog.campodoro.org\/?p=190&amp;title=Adding+a+non-VMFS+drive+to+your+ESX%28i%29+server+and+use+it%21\" title=\"Post to Delicious\"><img decoding=\"async\" class=\"nothumb\" src=\"http:\/\/blog.campodoro.org\/wp-content\/plugins\/tweet-this\/icons\/en\/delicious\/tt-delicious.png\" alt=\"Post to Delicious\" \/><\/a> <a class=\"tt\" href=\"http:\/\/delicious.com\/post?url=https:\/\/blog.campodoro.org\/?p=190&amp;title=Adding+a+non-VMFS+drive+to+your+ESX%28i%29+server+and+use+it%21\" title=\"Post to Delicious\">Post to Delicious<\/a> <a class=\"tt\" href=\"http:\/\/www.facebook.com\/share.php?u=https:\/\/blog.campodoro.org\/?p=190&amp;t=Adding+a+non-VMFS+drive+to+your+ESX%28i%29+server+and+use+it%21\" title=\"Post to Facebook\"><img decoding=\"async\" class=\"nothumb\" src=\"http:\/\/blog.campodoro.org\/wp-content\/plugins\/tweet-this\/icons\/en\/facebook\/tt-facebook.png\" alt=\"Post to Facebook\" \/><\/a> <a class=\"tt\" href=\"http:\/\/www.facebook.com\/share.php?u=https:\/\/blog.campodoro.org\/?p=190&amp;t=Adding+a+non-VMFS+drive+to+your+ESX%28i%29+server+and+use+it%21\" title=\"Post to Facebook\">Post to Facebook<\/a><\/p><\/div>","protected":false},"excerpt":{"rendered":"<p>I had some spare Windows drives lying around and wanted to put them in my HP MicroServer running ESXi 4.1. After installing the SATA drive, and rebooting, I tried to simply add the drive in the vSphere console. No love &hellip; <a href=\"https:\/\/blog.campodoro.org\/?p=190\">Continue reading <span class=\"meta-nav\">&rarr;<\/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":[10,8],"tags":[],"class_list":["post-190","post","type-post","status-publish","format-standard","hentry","category-linux","category-menu"],"_links":{"self":[{"href":"https:\/\/blog.campodoro.org\/index.php?rest_route=\/wp\/v2\/posts\/190"}],"collection":[{"href":"https:\/\/blog.campodoro.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.campodoro.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.campodoro.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.campodoro.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=190"}],"version-history":[{"count":5,"href":"https:\/\/blog.campodoro.org\/index.php?rest_route=\/wp\/v2\/posts\/190\/revisions"}],"predecessor-version":[{"id":195,"href":"https:\/\/blog.campodoro.org\/index.php?rest_route=\/wp\/v2\/posts\/190\/revisions\/195"}],"wp:attachment":[{"href":"https:\/\/blog.campodoro.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=190"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.campodoro.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=190"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.campodoro.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=190"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}