{"id":412,"date":"2012-03-26T13:49:17","date_gmt":"2012-03-26T12:49:17","guid":{"rendered":"http:\/\/www.tekhead.org\/blog\/?p=412"},"modified":"2012-03-29T14:32:13","modified_gmt":"2012-03-29T13:32:13","slug":"propertycollector-error-when-editing-virtual-machine-swapfile-location","status":"publish","type":"post","link":"http:\/\/tekhead.it\/blog\/2012\/03\/propertycollector-error-when-editing-virtual-machine-swapfile-location\/","title":{"rendered":"propertyCollector Error When Editing Virtual Machine Swapfile Location"},"content":{"rendered":"<p>Today I came across the following propertyCollector error message whilst trying to modify the VM Swapfile location for two hosts in my lab cluster. This pops up as soon as you select the <strong>Virtual Machine Swapfile Location<\/strong> settings under the <strong>Configuration<\/strong> tab for your host. Once you click <strong>Close<\/strong>, you then see <strong>Swapfile Location:<\/strong> as <strong>Getting Data&#8230;<\/strong> for an infinite period of time, and the <strong>Edit&#8230;<\/strong> option becomes greyed out and cannot be selected.<\/p>\n<p>The same error occurred on both an ESX and ESXi host in the came cluster, both using the latest vSphere 4.1 build 582267. I am going to assume this can appear on older versions too.<\/p>\n<pre>The object has already been deleted or has not been completely created\r\n\r\nCall \"PropertyCollector.RetrieveContents\" for object \"propertyCollector\" on vCenter Server \"&lt;servername&gt;\" failed.<\/pre>\n<p>You can see the error in the following screenshot:<\/p>\n<p><a href=\"http:\/\/www.tekhead.org\/wp-uploads\/www.tekhead.org\/2012\/03\/propertyCollector-Error.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-432 aligncenter\" title=\"propertyCollector-Error\" src=\"http:\/\/www.tekhead.org\/wp-uploads\/www.tekhead.org\/2012\/03\/propertyCollector-Error-1024x430.jpg\" alt=\"Call &quot;PropertyCollector.RetrieveContents&quot; for object &quot;propertyCollector&quot; on vCenter Server &quot;&lt;servername&gt;&quot; failed.\" width=\"480\" height=\"201\" srcset=\"http:\/\/tekhead.it\/wp-uploads\/www.tekhead.org\/2012\/03\/propertyCollector-Error-1024x430.jpg 1024w, http:\/\/tekhead.it\/wp-uploads\/www.tekhead.org\/2012\/03\/propertyCollector-Error-150x63.jpg 150w, http:\/\/tekhead.it\/wp-uploads\/www.tekhead.org\/2012\/03\/propertyCollector-Error-300x126.jpg 300w, http:\/\/tekhead.it\/wp-uploads\/www.tekhead.org\/2012\/03\/propertyCollector-Error.jpg 1139w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/a><\/p>\n<p>This seems to occur because the host does not have any record, even a default, for the snapshot location. This only affected half the hosts in my cluster, where the other half were showing their defaults just fine.<\/p>\n<p>The fix for this is very simple. I&#8217;m sure it could be implemented by multiple methods, but I used PowerCLI. Simply:<\/p>\n<ol>\n<li>Connect to the faulty host, e.g.:<br \/>\n<strong> Connect-VIServer &lt;servername \/ ip&gt;<\/strong><\/li>\n<li>Validate that you can see your preferred datastore from that host:<br \/>\n<strong> Get-Datastore<\/strong><\/li>\n<li>Manually set the datastore to your preferred DS:<br \/>\n<strong> Set-VMHost -VMSwapfileDatastore &lt;datastorename&gt;<\/strong><\/li>\n<li>Go back to vCenter and you will find the new value reflected, and you can now edit the <strong>Virtual Machine Swapfile Location<\/strong> settings under the <strong>Configuration <\/strong>tab for your host:<\/li>\n<\/ol>\n<p><a href=\"http:\/\/www.tekhead.org\/wp-uploads\/www.tekhead.org\/2012\/03\/propertyCollector-Fixed.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-433\" title=\"propertyCollector-Fixed\" src=\"http:\/\/www.tekhead.org\/wp-uploads\/www.tekhead.org\/2012\/03\/propertyCollector-Fixed-300x102.jpg\" alt=\"\" width=\"300\" height=\"102\" srcset=\"http:\/\/tekhead.it\/wp-uploads\/www.tekhead.org\/2012\/03\/propertyCollector-Fixed-300x102.jpg 300w, http:\/\/tekhead.it\/wp-uploads\/www.tekhead.org\/2012\/03\/propertyCollector-Fixed-150x51.jpg 150w, http:\/\/tekhead.it\/wp-uploads\/www.tekhead.org\/2012\/03\/propertyCollector-Fixed.jpg 711w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>If you have multiple hosts with the same issue,\u00a0or indeed when simply making swapfile location changes across your cluster, you could of course script the above.<\/p>\n<p>I&#8217;m not sure whether this applies to vSphere 5 as I have not come across it there to date.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I came across the following propertyCollector error message whilst trying to modify the VM Swapfile location for two hosts in my lab cluster. This pops up as [..]<\/p>\n","protected":false},"author":1,"featured_media":428,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_yoast_wpseo_focuskw":"","_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[41],"tags":[100,123,112,86,125,124,540,88],"class_list":["post-412","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vmware","tag-4-1","tag-error","tag-esx","tag-esxi","tag-fix","tag-swapfile","tag-vmware","tag-vsphere"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"http:\/\/tekhead.it\/wp-uploads\/www.tekhead.org\/2012\/03\/storage.png","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2l3lU-6E","amp_enabled":true,"_links":{"self":[{"href":"http:\/\/tekhead.it\/blog\/wp-json\/wp\/v2\/posts\/412","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/tekhead.it\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/tekhead.it\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/tekhead.it\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/tekhead.it\/blog\/wp-json\/wp\/v2\/comments?post=412"}],"version-history":[{"count":19,"href":"http:\/\/tekhead.it\/blog\/wp-json\/wp\/v2\/posts\/412\/revisions"}],"predecessor-version":[{"id":486,"href":"http:\/\/tekhead.it\/blog\/wp-json\/wp\/v2\/posts\/412\/revisions\/486"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/tekhead.it\/blog\/wp-json\/wp\/v2\/media\/428"}],"wp:attachment":[{"href":"http:\/\/tekhead.it\/blog\/wp-json\/wp\/v2\/media?parent=412"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/tekhead.it\/blog\/wp-json\/wp\/v2\/categories?post=412"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/tekhead.it\/blog\/wp-json\/wp\/v2\/tags?post=412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}