{"id":3479,"date":"2017-01-10T20:32:20","date_gmt":"2017-01-10T19:32:20","guid":{"rendered":"http:\/\/tomaskalabis.com\/wordpress\/?p=3479"},"modified":"2017-01-10T20:36:11","modified_gmt":"2017-01-10T19:36:11","slug":"how-remove-unmountedinaccessible-datastore-from-esxi-host","status":"publish","type":"post","link":"https:\/\/tomaskalabis.com\/wordpress\/how-remove-unmountedinaccessible-datastore-from-esxi-host\/","title":{"rendered":"How to remove unmounted\/inaccessible datastore from ESXi Host"},"content":{"rendered":"<h3>How to remove unmounted\/inaccessible datastore from ESXi Host<\/h3>\n<p>if you have datastore which is unmounded or incaccessible, it not very easy to remove it. i tried &#8222;delete datastore&#8220; from esxi host, but i got error. so lets try command line !<\/p>\n<figure id=\"attachment_3480\" aria-describedby=\"caption-attachment-3480\" style=\"width: 398px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2017\/01\/remove_datastore_1.png\"><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-3480 size-full\" src=\"http:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2017\/01\/remove_datastore_1.png\" width=\"398\" height=\"168\" srcset=\"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2017\/01\/remove_datastore_1.png 398w, https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2017\/01\/remove_datastore_1-288x122.png 288w\" sizes=\"(max-width: 398px) 100vw, 398px\" \/><\/a><figcaption id=\"caption-attachment-3480\" class=\"wp-caption-text\">The &#8222;Remove datastore&#8220; operation failed for the entity with the following error message.<\/figcaption><\/figure>\n<figure id=\"attachment_3481\" aria-describedby=\"caption-attachment-3481\" style=\"width: 494px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2017\/01\/remove_datastore_2.png\"><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-3481 size-large\" src=\"http:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2017\/01\/remove_datastore_2-494x200.png\" width=\"494\" height=\"200\" srcset=\"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2017\/01\/remove_datastore_2-494x200.png 494w, https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2017\/01\/remove_datastore_2-288x117.png 288w, https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2017\/01\/remove_datastore_2.png 726w\" sizes=\"(max-width: 494px) 100vw, 494px\" \/><\/a><figcaption id=\"caption-attachment-3481\" class=\"wp-caption-text\">unmounted\/inaccessible datastore<\/figcaption><\/figure>\n<pre class=\"lang:default decode:true \">esxcli storage core device list<\/pre>\n<p>enable ssh service on your ESXi host and use putty to find out &#8222;naa.&#8220; of unmounted\/inaccessible datastore<\/p>\n<pre class=\"lang:default decode:true\">naa.600000e00d00000000010bc100000000\r\n   Display Name: FUJITSU Fibre Channel Disk (naa.600000e00d00000000010bc10000000                                                                                                                                                             0)\r\n   Has Settable Display Name: true\r\n   Size: 7001824\r\n   Device Type: Direct-Access\r\n   Multipath Plugin: NMP\r\n   Devfs Path: \/vmfs\/devices\/disks\/naa.600000e00d00000000010bc100000000\r\n   Vendor: FUJITSU\r\n   Model: ETERNUS_DXL\r\n   Revision: 0000\r\n   SCSI Level: 5\r\n   Is Pseudo: false\r\n   Status: degraded\r\n   Is RDM Capable: true\r\n   Is Local: false\r\n   Is Removable: false\r\n   Is SSD: false\r\n   Is VVOL PE: false\r\n   Is Offline: false\r\n   Is Perennially Reserved: false\r\n   Queue Full Sample Size: 0\r\n   Queue Full Threshold: 0\r\n   Thin Provisioning Status: unknown\r\n   Attached Filters:\r\n   VAAI Status: unknown\r\n   Other UIDs: vml.0200000000600000e00d00000000010bc100000000455445524e55\r\n   Is Shared Clusterwide: true\r\n   Is Local SAS Device: false\r\n   Is SAS: false\r\n   Is USB: false\r\n   Is Boot USB Device: false\r\n   Is Boot Device: false\r\n   Device Max Queue Depth: 64\r\n   No of outstanding IOs with competing worlds: 32\r\n   Drive Type: unknown\r\n   RAID Level: unknown\r\n   Number of Physical Drives: unknown\r\n   Protection Enabled: false\r\n   PI Activated: false\r\n   PI Type: 0\r\n   PI Protection Mask: NO PROTECTION\r\n   Supported Guard Types: NO GUARD SUPPORT\r\n   DIX Enabled: false\r\n   DIX Guard Type: NO GUARD SUPPORT\r\n   Emulated DIX\/DIF Enabled: false<\/pre>\n<p>find datastore&#8230; in my case it was 7 TB LUN with naa.600000e00d00000000010bc100000000<\/p>\n<pre class=\"lang:default decode:true\">esxcli storage core device detached remove -d naa.600000e00d00000000010bc100000000<\/pre>\n<p>to remove storage device use command <em>esxcli storage core device detached remove -d<\/em><\/p>\n<pre class=\"lang:default decode:true\">[root@esx1:~] esxcli storage filesystem list\r\nMount Point                                        Volume Name      UUID                                 Mounted  Type              Size            Free\r\n-------------------------------------------------  ---------------  -----------------------------------  -------  ------  --------------  --------------\r\n\/vmfs\/volumes\/57a32fbb-d098f1c4-1720-002219861349  ESXi1-local      57a32fbb-d098f1c4-1720-002219861349     true  VMFS-5    137975824384    100131667968\r\n\/vmfs\/volumes\/57b55c20-2747171c-076a-002219863383  DX80-LUN1        57b55c20-2747171c-076a-002219863383     true  VMFS-5   7341709721600   6352039575552\r\n\/vmfs\/volumes\/5873e252-b85da628-17a4-002219861349  IFN_DS3024_LUN1  5873e252-b85da628-17a4-002219861349     true  VMFS-5  11984569368576  11642288996352\r\n\/vmfs\/volumes\/623ec67d-dda8563b-e28a-e642f456a4e5                   623ec67d-dda8563b-e28a-e642f456a4e5     true  vfat         261853184       101347328\r\n\/vmfs\/volumes\/57a32fb5-13bc5014-68c1-002219861349                   57a32fb5-13bc5014-68c1-002219861349     true  vfat         299712512        83927040\r\n\/vmfs\/volumes\/584597d0-8ecb1b8e-4716-002219861349                   584597d0-8ecb1b8e-4716-002219861349     true  vfat        4293591040      4262395904\r\n\/vmfs\/volumes\/33e5b27e-efb7be2e-9be6-8a8aa0cc769a                   33e5b27e-efb7be2e-9be6-8a8aa0cc769a     true  vfat         261853184        74805248<\/pre>\n<p>and IFN_DS3024_LUN2 is removed from ESXi host.<\/p>\n<pre class=\"lang:default decode:true\">esxcli storage core adapter rescan --all<\/pre>\n<p>to rescan all HBAs use<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to remove unmounted\/inaccessible datastore from ESXi Host if you have datastore which is unmounded or incaccessible, it not very easy to remove it. i tried &#8222;delete datastore&#8220; from esxi &#8230;<\/p>\n","protected":false},"author":2,"featured_media":2402,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[224,113],"tags":[220,80,100],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to remove unmounted\/inaccessible datastore from ESXi Host<\/title>\n<meta name=\"description\" content=\"How to remove unmounted\/inaccessible datastore from ESXi Host - The &quot;Remove datastore&quot; operation failed for the entity with the following error message.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/tomaskalabis.com\/wordpress\/how-remove-unmountedinaccessible-datastore-from-esxi-host\/\" \/>\n<meta property=\"og:locale\" content=\"cs_CZ\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to remove unmounted\/inaccessible datastore from ESXi Host\" \/>\n<meta property=\"og:description\" content=\"How to remove unmounted\/inaccessible datastore from ESXi Host - The &quot;Remove datastore&quot; operation failed for the entity with the following error message.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/tomaskalabis.com\/wordpress\/how-remove-unmountedinaccessible-datastore-from-esxi-host\/\" \/>\n<meta property=\"og:site_name\" content=\"tomaskalabis.com\" \/>\n<meta property=\"article:published_time\" content=\"2017-01-10T19:32:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-01-10T19:36:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2015\/07\/vsphere_logo.png\" \/>\n\t<meta property=\"og:image:width\" content=\"164\" \/>\n\t<meta property=\"og:image:height\" content=\"164\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Tomas Kalabis\" \/>\n<meta name=\"twitter:label1\" content=\"Napsal(a)\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tomas Kalabis\" \/>\n\t<meta name=\"twitter:label2\" content=\"Odhadovan\u00e1 doba \u010dten\u00ed\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minuty\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/how-remove-unmountedinaccessible-datastore-from-esxi-host\/\",\"url\":\"https:\/\/tomaskalabis.com\/wordpress\/how-remove-unmountedinaccessible-datastore-from-esxi-host\/\",\"name\":\"How to remove unmounted\/inaccessible datastore from ESXi Host\",\"isPartOf\":{\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/how-remove-unmountedinaccessible-datastore-from-esxi-host\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/how-remove-unmountedinaccessible-datastore-from-esxi-host\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2015\/07\/vsphere_logo.png\",\"datePublished\":\"2017-01-10T19:32:20+00:00\",\"dateModified\":\"2017-01-10T19:36:11+00:00\",\"author\":{\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/#\/schema\/person\/8e7e83f618a561ed3734a38cef4cf1d6\"},\"description\":\"How to remove unmounted\/inaccessible datastore from ESXi Host - The \\\"Remove datastore\\\" operation failed for the entity with the following error message.\",\"breadcrumb\":{\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/how-remove-unmountedinaccessible-datastore-from-esxi-host\/#breadcrumb\"},\"inLanguage\":\"cs\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/tomaskalabis.com\/wordpress\/how-remove-unmountedinaccessible-datastore-from-esxi-host\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"cs\",\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/how-remove-unmountedinaccessible-datastore-from-esxi-host\/#primaryimage\",\"url\":\"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2015\/07\/vsphere_logo.png\",\"contentUrl\":\"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2015\/07\/vsphere_logo.png\",\"width\":164,\"height\":164},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/how-remove-unmountedinaccessible-datastore-from-esxi-host\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/tomaskalabis.com\/wordpress\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to remove unmounted\/inaccessible datastore from ESXi Host\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/#website\",\"url\":\"https:\/\/tomaskalabis.com\/wordpress\/\",\"name\":\"tomaskalabis.com\",\"description\":\"my personal blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/tomaskalabis.com\/wordpress\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"cs\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/#\/schema\/person\/8e7e83f618a561ed3734a38cef4cf1d6\",\"name\":\"Tomas Kalabis\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"cs\",\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9f7e4796b38d5720e8a07b918f423311?s=96&d=retro&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/9f7e4796b38d5720e8a07b918f423311?s=96&d=retro&r=g\",\"caption\":\"Tomas Kalabis\"},\"sameAs\":[\"https:\/\/x.com\/tomaskalabis\"],\"url\":\"https:\/\/tomaskalabis.com\/wordpress\/author\/kalabis\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to remove unmounted\/inaccessible datastore from ESXi Host","description":"How to remove unmounted\/inaccessible datastore from ESXi Host - The \"Remove datastore\" operation failed for the entity with the following error message.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/tomaskalabis.com\/wordpress\/how-remove-unmountedinaccessible-datastore-from-esxi-host\/","og_locale":"cs_CZ","og_type":"article","og_title":"How to remove unmounted\/inaccessible datastore from ESXi Host","og_description":"How to remove unmounted\/inaccessible datastore from ESXi Host - The \"Remove datastore\" operation failed for the entity with the following error message.","og_url":"https:\/\/tomaskalabis.com\/wordpress\/how-remove-unmountedinaccessible-datastore-from-esxi-host\/","og_site_name":"tomaskalabis.com","article_published_time":"2017-01-10T19:32:20+00:00","article_modified_time":"2017-01-10T19:36:11+00:00","og_image":[{"width":164,"height":164,"url":"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2015\/07\/vsphere_logo.png","type":"image\/png"}],"author":"Tomas Kalabis","twitter_misc":{"Napsal(a)":"Tomas Kalabis","Odhadovan\u00e1 doba \u010dten\u00ed":"2 minuty"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/tomaskalabis.com\/wordpress\/how-remove-unmountedinaccessible-datastore-from-esxi-host\/","url":"https:\/\/tomaskalabis.com\/wordpress\/how-remove-unmountedinaccessible-datastore-from-esxi-host\/","name":"How to remove unmounted\/inaccessible datastore from ESXi Host","isPartOf":{"@id":"https:\/\/tomaskalabis.com\/wordpress\/#website"},"primaryImageOfPage":{"@id":"https:\/\/tomaskalabis.com\/wordpress\/how-remove-unmountedinaccessible-datastore-from-esxi-host\/#primaryimage"},"image":{"@id":"https:\/\/tomaskalabis.com\/wordpress\/how-remove-unmountedinaccessible-datastore-from-esxi-host\/#primaryimage"},"thumbnailUrl":"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2015\/07\/vsphere_logo.png","datePublished":"2017-01-10T19:32:20+00:00","dateModified":"2017-01-10T19:36:11+00:00","author":{"@id":"https:\/\/tomaskalabis.com\/wordpress\/#\/schema\/person\/8e7e83f618a561ed3734a38cef4cf1d6"},"description":"How to remove unmounted\/inaccessible datastore from ESXi Host - The \"Remove datastore\" operation failed for the entity with the following error message.","breadcrumb":{"@id":"https:\/\/tomaskalabis.com\/wordpress\/how-remove-unmountedinaccessible-datastore-from-esxi-host\/#breadcrumb"},"inLanguage":"cs","potentialAction":[{"@type":"ReadAction","target":["https:\/\/tomaskalabis.com\/wordpress\/how-remove-unmountedinaccessible-datastore-from-esxi-host\/"]}]},{"@type":"ImageObject","inLanguage":"cs","@id":"https:\/\/tomaskalabis.com\/wordpress\/how-remove-unmountedinaccessible-datastore-from-esxi-host\/#primaryimage","url":"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2015\/07\/vsphere_logo.png","contentUrl":"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2015\/07\/vsphere_logo.png","width":164,"height":164},{"@type":"BreadcrumbList","@id":"https:\/\/tomaskalabis.com\/wordpress\/how-remove-unmountedinaccessible-datastore-from-esxi-host\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/tomaskalabis.com\/wordpress\/"},{"@type":"ListItem","position":2,"name":"How to remove unmounted\/inaccessible datastore from ESXi Host"}]},{"@type":"WebSite","@id":"https:\/\/tomaskalabis.com\/wordpress\/#website","url":"https:\/\/tomaskalabis.com\/wordpress\/","name":"tomaskalabis.com","description":"my personal blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/tomaskalabis.com\/wordpress\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"cs"},{"@type":"Person","@id":"https:\/\/tomaskalabis.com\/wordpress\/#\/schema\/person\/8e7e83f618a561ed3734a38cef4cf1d6","name":"Tomas Kalabis","image":{"@type":"ImageObject","inLanguage":"cs","@id":"https:\/\/tomaskalabis.com\/wordpress\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/9f7e4796b38d5720e8a07b918f423311?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9f7e4796b38d5720e8a07b918f423311?s=96&d=retro&r=g","caption":"Tomas Kalabis"},"sameAs":["https:\/\/x.com\/tomaskalabis"],"url":"https:\/\/tomaskalabis.com\/wordpress\/author\/kalabis\/"}]}},"jetpack_featured_media_url":"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2015\/07\/vsphere_logo.png","_links":{"self":[{"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/posts\/3479"}],"collection":[{"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/comments?post=3479"}],"version-history":[{"count":2,"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/posts\/3479\/revisions"}],"predecessor-version":[{"id":3484,"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/posts\/3479\/revisions\/3484"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/media\/2402"}],"wp:attachment":[{"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/media?parent=3479"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/categories?post=3479"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/tags?post=3479"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}