<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: [PSH] Raiders of the Lost VM files &#8211; MAJ</title>
	<atom:link href="http://www.hypervisor.fr/?feed=rss2&#038;p=3612" rel="self" type="application/rss+xml" />
	<link>http://www.hypervisor.fr/?p=3612</link>
	<description>French Bare-Metal weblog</description>
	<lastBuildDate>Fri, 30 Jul 2021 14:16:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: NiTRo</title>
		<link>http://www.hypervisor.fr/?p=3612&#038;cpage=1#comment-3233</link>
		<dc:creator>NiTRo</dc:creator>
		<pubDate>Wed, 27 Aug 2014 15:26:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.hypervisor.fr/?p=3612#comment-3233</guid>
		<description>ok sorry i didn&#039;t see the previous message, i&#039;ll have a look on the errors. Thanks for your feedback by the way!</description>
		<content:encoded><![CDATA[<p>ok sorry i didn&#8217;t see the previous message, i&#8217;ll have a look on the errors. Thanks for your feedback by the way!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim Nickel</title>
		<link>http://www.hypervisor.fr/?p=3612&#038;cpage=1#comment-3232</link>
		<dc:creator>Jim Nickel</dc:creator>
		<pubDate>Wed, 27 Aug 2014 15:25:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.hypervisor.fr/?p=3612#comment-3232</guid>
		<description>The compare script works fine.

It&#039;s just the delete script that doesn&#039;t work.

Jim</description>
		<content:encoded><![CDATA[<p>The compare script works fine.</p>
<p>It&#8217;s just the delete script that doesn&#8217;t work.</p>
<p>Jim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim Nickel</title>
		<link>http://www.hypervisor.fr/?p=3612&#038;cpage=1#comment-3231</link>
		<dc:creator>Jim Nickel</dc:creator>
		<pubDate>Wed, 27 Aug 2014 15:24:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.hypervisor.fr/?p=3612#comment-3231</guid>
		<description>I don&#039;t know...I am hoping the author can fix it

The problem has something to do with the parameters being passed to the DeleteDatastoreFile - the combination of the datastore and filename are not valid - wrong syntax or something.

Jim</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know&#8230;I am hoping the author can fix it</p>
<p>The problem has something to do with the parameters being passed to the DeleteDatastoreFile &#8211; the combination of the datastore and filename are not valid &#8211; wrong syntax or something.</p>
<p>Jim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NiTRo</title>
		<link>http://www.hypervisor.fr/?p=3612&#038;cpage=1#comment-3230</link>
		<dc:creator>NiTRo</dc:creator>
		<pubDate>Wed, 27 Aug 2014 15:19:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.hypervisor.fr/?p=3612#comment-3230</guid>
		<description>Hi Jim, so what was the issue?</description>
		<content:encoded><![CDATA[<p>Hi Jim, so what was the issue?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim Nickel</title>
		<link>http://www.hypervisor.fr/?p=3612&#038;cpage=1#comment-3229</link>
		<dc:creator>Jim Nickel</dc:creator>
		<pubDate>Wed, 27 Aug 2014 14:38:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.hypervisor.fr/?p=3612#comment-3229</guid>
		<description>Sorry...the output from the compare was:

LostFile                                                    FileSize Modification
--------                                                    -------- ------------
[iSCSI-C_Drive] vCenterCBM/vmx-vCenterCBM-2622869734-2.vswp 126      9/23/2013 7:56:42 PM
[iSCSI-C_Drive] Win2K8R2/ViewSecurity-flat.vmdk             40,960   11/17/2012 7:12:51 PM
[iSCSI-C_Drive] Win2K8R2/ViewSecurity.vmdk                  0        11/17/2012 7:23:15 PM
[iSCSI-C_Drive] Win2K8R2/ViewSecurity.nvram                 0        11/17/2012 7:23:15 PM
[iSCSI-C_Drive] Win2K8R2/ViewSecurity.vmxf                  0        11/17/2012 7:23:17 PM
[iSCSI-C_Drive] Win2K8R2/ViewSecurity.vmsd                  0        11/17/2012 7:23:17 PM</description>
		<content:encoded><![CDATA[<p>Sorry&#8230;the output from the compare was:</p>
<p>LostFile                                                    FileSize Modification<br />
&#8212;&#8212;&#8211;                                                    &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;<br />
[iSCSI-C_Drive] vCenterCBM/vmx-vCenterCBM-2622869734-2.vswp 126      9/23/2013 7:56:42 PM<br />
[iSCSI-C_Drive] Win2K8R2/ViewSecurity-flat.vmdk             40,960   11/17/2012 7:12:51 PM<br />
[iSCSI-C_Drive] Win2K8R2/ViewSecurity.vmdk                  0        11/17/2012 7:23:15 PM<br />
[iSCSI-C_Drive] Win2K8R2/ViewSecurity.nvram                 0        11/17/2012 7:23:15 PM<br />
[iSCSI-C_Drive] Win2K8R2/ViewSecurity.vmxf                  0        11/17/2012 7:23:17 PM<br />
[iSCSI-C_Drive] Win2K8R2/ViewSecurity.vmsd                  0        11/17/2012 7:23:17 PM</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim Nickel</title>
		<link>http://www.hypervisor.fr/?p=3612&#038;cpage=1#comment-3228</link>
		<dc:creator>Jim Nickel</dc:creator>
		<pubDate>Wed, 27 Aug 2014 14:35:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.hypervisor.fr/?p=3612#comment-3228</guid>
		<description>Hi,

The compare script works fine, and gave me this:

PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI&gt; compare -passthru -property path $(foreach ($ds in ((get-v
iew -ViewType datastore&#124;sort name -unique&#124;?{$_.summary.accessible}&#124;%{(get-view $_.browser).SearchDatastoreSubFolders($(&quot;[&quot; + $_.Na
me + &quot;]&quot;),(New-Object VMware.Vim.HostDatastoreBrowserSearchSpec -property @{matchPattern=(&quot;*zdump*&quot;,&quot;*.xml&quot;,&quot;*.vmsn&quot;,&quot;*.vmsd&quot;,&quot;*.v
swp*&quot;, &quot;*.vmx&quot;,&quot;*.vmdk&quot;,&quot;*.vmss&quot;,&quot;*.nvram&quot;,&quot;*.vmxf&quot;); details=(New-Object VMware.Vim.FileQueryFlags -property @{filesize=$true;mod
ification=$true})}))})&#124;?{$_.file})){foreach ($files in $ds.file){$files&#124;?{$_.Path -notmatch &quot;-ctk.vmdk&#124;esxconsole.vmdk&#124;esxconsole-
flat.vmdk&quot;}&#124;select @{n=&quot;path&quot;;e={$ds.FolderPath + $files.path&#124;%{$_ -replace &quot; &quot;,&quot;&quot;}}},FileSize,Modification&#124;?{$_.path -notmatch &quot;.
zfs&#124;.snapshot&#124;var/tmp/cache&#124;/hostCache/&quot;}}}) $(get-view -ViewType virtualmachine&#124;?{$_.Runtime.ConnectionState -notmatch &quot;invalid&#124;o
rphaned&quot;}&#124;%{$_.layoutex.file}&#124;?{$_.type -ne &quot;log&quot;}&#124;%{$_.name}&#124;%{$_ -replace &quot; &quot;,&quot;&quot;}&#124;sort -unique&#124;select @{n=&quot;path&quot;;e={$_}})&#124;?{$_.S
ideIndicator -eq &quot; foreach ($lost in (compare -passthru -property path $(fore
ach ($ds in ((get-view -ViewType datastore&#124;sort name -unique&#124;?{$_.summary.accessible}&#124;%{(get-view $_.browser).SearchDatastoreSubFo
lders($(&quot;[&quot; + $_.Name + &quot;]&quot;),(New-Object VMware.Vim.HostDatastoreBrowserSearchSpec -property @{matchPattern=(&quot;*zdump*&quot;,&quot;*.xml&quot;,&quot;*.
vmsn&quot;,&quot;*.vmsd&quot;,&quot;*.vswp*&quot;, &quot;*.vmx&quot;,&quot;*.vmdk&quot;,&quot;*.vmss&quot;,&quot;*.nvram&quot;,&quot;*.vmxf&quot;); details=(New-Object VMware.Vim.FileQueryFlags -property @
{filesize=$true;modification=$true})}))})&#124;?{$_.file})){foreach ($files in $ds.file){$files&#124;?{$_.Path -notmatch &quot;-ctk.vmdk&#124;esxconso
le.vmdk&#124;esxconsole-flat.vmdk&quot;}&#124;select @{n=&quot;path&quot;;e={$ds.FolderPath + $files.path&#124;%{$_ -replace &quot; &quot;,&quot;&quot;}}},FileSize,Modification&#124;?{$
_.path -notmatch &quot;.zfs&#124;.snapshot&#124;var/tmp/cache&#124;/hostCache/&quot;}}}) $(get-view -ViewType virtualmachine&#124;?{$_.Runtime.ConnectionState -
notmatch &quot;invalid&#124;orphaned&quot;}&#124;%{$_.layoutex.file}&#124;?{$_.type -ne &quot;log&quot;}&#124;%{$_.name}&#124;%{$_ -replace &quot; &quot;,&quot;&quot;}&#124;sort -unique&#124;select @{n=&quot;pa
th&quot;;e={$_}})&#124;?{$_.SideIndicator -eq &quot;&lt;=&quot;}&#124;select @{n=&quot;LostFile&quot;;e={$_.Path -replace &quot;]&quot;,&quot;] &quot;}}, @{n=&quot;FileSize&quot;;e={&quot;{0:N0}&quot; -f ($_.
FileSize/1MB)}}, Modification&#124;?{$_.lostfile -match &quot;vswp&quot;})){(get-view (Get-View ServiceInstance&#124;select -first 1).content.filemana
ger&#124;select -first 1).DeleteDatastoreFile($lost.LostFile,(Get-View -ViewType datacenter&#124;?{$_.Datastore -match (get-datastore $lost.
LostFile.split(&quot;[]&quot;)[1]&#124;get-view).moref}&#124;select -first 1).moref)}
get-datastore : 8/27/2014 8:22:57 AM    Get-Datastore        Datastore with name &#039;iSCSI-C_Drive&#039; was not found using the
specified filter(s).
At line:1 char:1339
+ ... astore -match (get-datastore $lost.LostFile.split(&quot;[]&quot;)[1]&#124;get-view).moref}&#124;sele ...
+                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (:) [Get-Datastore], VimException
    + FullyQualifiedErrorId : Core_OutputHelper_WriteNotFoundError,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetDatastore

Exception calling &quot;DeleteDatastoreFile&quot; with &quot;2&quot; argument(s): &quot;Invalid datastore path &#039;[iSCSI-C_Drive]
vCenterCBM/vmx-vCenterCBM-2622869734-2.vswp&#039;.&quot;
At line:1 char:1160
+ foreach ($lost in (compare -passthru -property path $(foreach ($ds in ((get-view ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : VimException


Some kind of problem with the argument passed to the DeleteDatastoreFile.

Thanks,

Jim</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>The compare script works fine, and gave me this:</p>
<p>PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI&gt; compare -passthru -property path $(foreach ($ds in ((get-v<br />
iew -ViewType datastore|sort name -unique|?{$_.summary.accessible}|%{(get-view $_.browser).SearchDatastoreSubFolders($(&#8220;[" + $_.Na<br />
me + "]&#8220;),(New-Object VMware.Vim.HostDatastoreBrowserSearchSpec -property @{matchPattern=(&#8220;*zdump*&#8221;,&#8221;*.xml&#8221;,&#8221;*.vmsn&#8221;,&#8221;*.vmsd&#8221;,&#8221;*.v<br />
swp*&#8221;, &#8220;*.vmx&#8221;,&#8221;*.vmdk&#8221;,&#8221;*.vmss&#8221;,&#8221;*.nvram&#8221;,&#8221;*.vmxf&#8221;); details=(New-Object VMware.Vim.FileQueryFlags -property @{filesize=$true;mod<br />
ification=$true})}))})|?{$_.file})){foreach ($files in $ds.file){$files|?{$_.Path -notmatch &#8220;-ctk.vmdk|esxconsole.vmdk|esxconsole-<br />
flat.vmdk&#8221;}|select @{n=&#8221;path&#8221;;e={$ds.FolderPath + $files.path|%{$_ -replace &#8221; &#8220;,&#8221;"}}},FileSize,Modification|?{$_.path -notmatch &#8220;.<br />
zfs|.snapshot|var/tmp/cache|/hostCache/&#8221;}}}) $(get-view -ViewType virtualmachine|?{$_.Runtime.ConnectionState -notmatch &#8220;invalid|o<br />
rphaned&#8221;}|%{$_.layoutex.file}|?{$_.type -ne &#8220;log&#8221;}|%{$_.name}|%{$_ -replace &#8221; &#8220;,&#8221;"}|sort -unique|select @{n=&#8221;path&#8221;;e={$_}})|?{$_.S<br />
ideIndicator -eq &#8221; foreach ($lost in (compare -passthru -property path $(fore<br />
ach ($ds in ((get-view -ViewType datastore|sort name -unique|?{$_.summary.accessible}|%{(get-view $_.browser).SearchDatastoreSubFo<br />
lders($(&#8220;[" + $_.Name + "]&#8220;),(New-Object VMware.Vim.HostDatastoreBrowserSearchSpec -property @{matchPattern=(&#8220;*zdump*&#8221;,&#8221;*.xml&#8221;,&#8221;*.<br />
vmsn&#8221;,&#8221;*.vmsd&#8221;,&#8221;*.vswp*&#8221;, &#8220;*.vmx&#8221;,&#8221;*.vmdk&#8221;,&#8221;*.vmss&#8221;,&#8221;*.nvram&#8221;,&#8221;*.vmxf&#8221;); details=(New-Object VMware.Vim.FileQueryFlags -property @<br />
{filesize=$true;modification=$true})}))})|?{$_.file})){foreach ($files in $ds.file){$files|?{$_.Path -notmatch &#8220;-ctk.vmdk|esxconso<br />
le.vmdk|esxconsole-flat.vmdk&#8221;}|select @{n=&#8221;path&#8221;;e={$ds.FolderPath + $files.path|%{$_ -replace &#8221; &#8220;,&#8221;"}}},FileSize,Modification|?{$<br />
_.path -notmatch &#8220;.zfs|.snapshot|var/tmp/cache|/hostCache/&#8221;}}}) $(get-view -ViewType virtualmachine|?{$_.Runtime.ConnectionState -<br />
notmatch &#8220;invalid|orphaned&#8221;}|%{$_.layoutex.file}|?{$_.type -ne &#8220;log&#8221;}|%{$_.name}|%{$_ -replace &#8221; &#8220;,&#8221;"}|sort -unique|select @{n=&#8221;pa<br />
th&#8221;;e={$_}})|?{$_.SideIndicator -eq &#8220;&lt;=&quot;}|select @{n=&quot;LostFile&quot;;e={$_.Path -replace &quot;]&quot;,&quot;] &quot;}}, @{n=&quot;FileSize&quot;;e={&quot;{0:N0}&quot; -f ($_.<br />
FileSize/1MB)}}, Modification|?{$_.lostfile -match &quot;vswp&quot;})){(get-view (Get-View ServiceInstance|select -first 1).content.filemana<br />
ger|select -first 1).DeleteDatastoreFile($lost.LostFile,(Get-View -ViewType datacenter|?{$_.Datastore -match (get-datastore $lost.<br />
LostFile.split(&quot;[]&quot;)[1]|get-view).moref}|select -first 1).moref)}<br />
get-datastore : 8/27/2014 8:22:57 AM    Get-Datastore        Datastore with name &#039;iSCSI-C_Drive&#039; was not found using the<br />
specified filter(s).<br />
At line:1 char:1339<br />
+ &#8230; astore -match (get-datastore $lost.LostFile.split(&quot;[]&quot;)[1]|get-view).moref}|sele &#8230;<br />
+                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
    + CategoryInfo          : ObjectNotFound: (:) [Get-Datastore], VimException<br />
    + FullyQualifiedErrorId : Core_OutputHelper_WriteNotFoundError,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetDatastore</p>
<p>Exception calling &quot;DeleteDatastoreFile&quot; with &quot;2&quot; argument(s): &quot;Invalid datastore path &#039;[iSCSI-C_Drive]<br />
vCenterCBM/vmx-vCenterCBM-2622869734-2.vswp&#039;.&quot;<br />
At line:1 char:1160<br />
+ foreach ($lost in (compare -passthru -property path $(foreach ($ds in ((get-view &#8230;<br />
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException<br />
    + FullyQualifiedErrorId : VimException</p>
<p>Some kind of problem with the argument passed to the DeleteDatastoreFile.</p>
<p>Thanks,</p>
<p>Jim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: VM swapfiles: Leftover swapfiles &#171; Virtual-Ice</title>
		<link>http://www.hypervisor.fr/?p=3612&#038;cpage=1#comment-2338</link>
		<dc:creator>VM swapfiles: Leftover swapfiles &#171; Virtual-Ice</dc:creator>
		<pubDate>Thu, 05 Jul 2012 11:26:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.hypervisor.fr/?p=3612#comment-2338</guid>
		<description>[...] is in french so here is a link to his post through Google translate. And if you can read french, Allez. Share this:TwitterFacebookEmailLike this:LikeBe the first to like [...]</description>
		<content:encoded><![CDATA[<p>[...] is in french so here is a link to his post through Google translate. And if you can read french, Allez. Share this:TwitterFacebookEmailLike this:LikeBe the first to like [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
