<?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: Backup VMs in a Hyper-V Cluster (Core-version)</title>
	<atom:link href="http://blog.jumlin.com/2010/04/backup-vms-in-a-hyper-v-cluster-core-version/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jumlin.com/2010/04/backup-vms-in-a-hyper-v-cluster-core-version/</link>
	<description>The coding hell of Dennis V and the daily IT of Niklas Jumlin</description>
	<lastBuildDate>Tue, 31 Jan 2012 09:52:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Admicom</title>
		<link>http://blog.jumlin.com/2010/04/backup-vms-in-a-hyper-v-cluster-core-version/comment-page-1/#comment-12174</link>
		<dc:creator>Admicom</dc:creator>
		<pubDate>Tue, 31 Jan 2012 09:52:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gofolo.com/?p=96#comment-12174</guid>
		<description>Thks Donato.

I have found the problem : it comes from the snapshots. I have manually merged the snapshots, one by one, with the parent one, renaming *.avhd in *.vhd the latest one, and I finally obtain a unique *.vhd.

So, the export function works now and the script too. Thank u for your help.

Bye.

Nicolas (France)</description>
		<content:encoded><![CDATA[<p>Thks Donato.</p>
<p>I have found the problem : it comes from the snapshots. I have manually merged the snapshots, one by one, with the parent one, renaming *.avhd in *.vhd the latest one, and I finally obtain a unique *.vhd.</p>
<p>So, the export function works now and the script too. Thank u for your help.</p>
<p>Bye.</p>
<p>Nicolas (France)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Donato</title>
		<link>http://blog.jumlin.com/2010/04/backup-vms-in-a-hyper-v-cluster-core-version/comment-page-1/#comment-12137</link>
		<dc:creator>Donato</dc:creator>
		<pubDate>Mon, 30 Jan 2012 10:26:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gofolo.com/?p=96#comment-12137</guid>
		<description>sorry, i was wrong
change &quot;$dest\TmpDir&quot; with &quot;c:\TmpDir&quot;</description>
		<content:encoded><![CDATA[<p>sorry, i was wrong<br />
change &#8220;$dest\TmpDir&#8221; with &#8220;c:\TmpDir&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Donato</title>
		<link>http://blog.jumlin.com/2010/04/backup-vms-in-a-hyper-v-cluster-core-version/comment-page-1/#comment-12134</link>
		<dc:creator>Donato</dc:creator>
		<pubDate>Mon, 30 Jan 2012 08:36:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gofolo.com/?p=96#comment-12134</guid>
		<description>to Admicom:
the export don&#039;y start...
try to save in a local directory 
##  Export to Temp dir
 
	echo &quot;Exporting the VM: $VMName&quot;
	$exportstart = get-date -uformat &quot;%Y-%m-%d %H:%M:%S&quot;
	Add-Content $log &quot;$exportstart :: $VMName : Exporting started&quot;
	$status = $VM_Service.ExportVirtualSystem($VM.__PATH, $True, &quot;$name\TmpDir&quot;)
                                                                                                                                      &#124;&#124;&#124;&#124;&#124;&#124;
change the original $dest with $name in this point and check if export work</description>
		<content:encoded><![CDATA[<p>to Admicom:<br />
the export don&#8217;y start&#8230;<br />
try to save in a local directory<br />
##  Export to Temp dir</p>
<p>	echo &#8220;Exporting the VM: $VMName&#8221;<br />
	$exportstart = get-date -uformat &#8220;%Y-%m-%d %H:%M:%S&#8221;<br />
	Add-Content $log &#8220;$exportstart :: $VMName : Exporting started&#8221;<br />
	$status = $VM_Service.ExportVirtualSystem($VM.__PATH, $True, &#8220;$name\TmpDir&#8221;)<br />
                                                                                                                                      ||||||<br />
change the original $dest with $name in this point and check if export work</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Admicom</title>
		<link>http://blog.jumlin.com/2010/04/backup-vms-in-a-hyper-v-cluster-core-version/comment-page-1/#comment-12072</link>
		<dc:creator>Admicom</dc:creator>
		<pubDate>Fri, 27 Jan 2012 23:32:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gofolo.com/?p=96#comment-12072</guid>
		<description>Here is what I obtain :


__GENUS          : 2
__CLASS          : __PARAMETERS
__SUPERCLASS     :
__DYNASTY        : __PARAMETERS
__RELPATH        :
__PROPERTY_COUNT : 2
__DERIVATION     : {}
__SERVER         :
__NAMESPACE      :
__PATH           :
Job              : \\HYPERV1-W2K8\root\virtualization:Msvm_ConcreteJob.Instance
                   ID=&quot;CBD12BF1-F1D0-4AF2-AE8D-4FFBA56A9F32&quot;
ReturnValue      : 4096

Saving the state of 01_DC-MYCOMPANY - 2012-01-28-samedi
Exporting the VM: 01_DC-MYCOMPANY
0
Name              : 01_DC-MYCOMPANY
Parent            :
Exists            : True
Root              : F:\
FullName          : F:1_DC-MYCOMPANY
Extension         :
CreationTime      : 28/01/2012 00:28:22
CreationTimeUtc   : 27/01/2012 23:28:22
LastAccessTime    : 28/01/2012 00:28:22
LastAccessTimeUtc : 27/01/2012 23:28:22
LastWriteTime     : 28/01/2012 00:28:22
LastWriteTimeUtc  : 27/01/2012 23:28:22
Attributes        : Directory
BaseName          : 01_DC-MYCOMPANY
Mode              : d----

Name              : Daily
Parent            : 01_DC-MYCOMPANY
Exists            : True
Root              : F:\
FullName          : F:1_DC-MYCOMPANY\Daily
Extension         :
CreationTime      : 28/01/2012 00:28:22
CreationTimeUtc   : 27/01/2012 23:28:22
LastAccessTime    : 28/01/2012 00:28:22
LastAccessTimeUtc : 27/01/2012 23:28:22
LastWriteTime     : 28/01/2012 00:28:22
LastWriteTimeUtc  : 27/01/2012 23:28:22
Attributes        : Directory
BaseName          : Daily
Mode              : d----

Name              : 01
Parent            : Daily
Exists            : True
Root              : F:\
FullName          : F:1_DC-MYCOMPANY\Daily1
Extension         :
CreationTime      : 28/01/2012 00:28:22
CreationTimeUtc   : 27/01/2012 23:28:22
LastAccessTime    : 28/01/2012 00:28:22
LastAccessTimeUtc : 27/01/2012 23:28:22
LastWriteTime     : 28/01/2012 00:28:22
LastWriteTimeUtc  : 27/01/2012 23:28:22
Attributes        : Directory
BaseName          : 01
Mode              : d----

__GENUS          : 2
__CLASS          : __PARAMETERS
__SUPERCLASS     :
__DYNASTY        : __PARAMETERS
__RELPATH        :
__PROPERTY_COUNT : 2
__DERIVATION     : {}
__SERVER         :
__NAMESPACE      :
__PATH           :
Job              : \\HYPERV1-W2K8\root\virtualization:Msvm_ConcreteJob.Instance
                   ID=&quot;AF1BA7B5-5E6E-4153-804E-E9EAB1D1BC45&quot;
ReturnValue      : 4096


7-Zip (A) 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18
Scanning

Creating archive F:1_DC-MYCOMPANY\Daily1\2012-01-28-samedi.zip


Everything is Ok</description>
		<content:encoded><![CDATA[<p>Here is what I obtain :</p>
<p>__GENUS          : 2<br />
__CLASS          : __PARAMETERS<br />
__SUPERCLASS     :<br />
__DYNASTY        : __PARAMETERS<br />
__RELPATH        :<br />
__PROPERTY_COUNT : 2<br />
__DERIVATION     : {}<br />
__SERVER         :<br />
__NAMESPACE      :<br />
__PATH           :<br />
Job              : \\HYPERV1-W2K8\root\virtualization:Msvm_ConcreteJob.Instance<br />
                   ID=&#8221;CBD12BF1-F1D0-4AF2-AE8D-4FFBA56A9F32&#8243;<br />
ReturnValue      : 4096</p>
<p>Saving the state of 01_DC-MYCOMPANY &#8211; 2012-01-28-samedi<br />
Exporting the VM: 01_DC-MYCOMPANY<br />
0<br />
Name              : 01_DC-MYCOMPANY<br />
Parent            :<br />
Exists            : True<br />
Root              : F:\<br />
FullName          : F:1_DC-MYCOMPANY<br />
Extension         :<br />
CreationTime      : 28/01/2012 00:28:22<br />
CreationTimeUtc   : 27/01/2012 23:28:22<br />
LastAccessTime    : 28/01/2012 00:28:22<br />
LastAccessTimeUtc : 27/01/2012 23:28:22<br />
LastWriteTime     : 28/01/2012 00:28:22<br />
LastWriteTimeUtc  : 27/01/2012 23:28:22<br />
Attributes        : Directory<br />
BaseName          : 01_DC-MYCOMPANY<br />
Mode              : d&#8212;-</p>
<p>Name              : Daily<br />
Parent            : 01_DC-MYCOMPANY<br />
Exists            : True<br />
Root              : F:\<br />
FullName          : F:1_DC-MYCOMPANY\Daily<br />
Extension         :<br />
CreationTime      : 28/01/2012 00:28:22<br />
CreationTimeUtc   : 27/01/2012 23:28:22<br />
LastAccessTime    : 28/01/2012 00:28:22<br />
LastAccessTimeUtc : 27/01/2012 23:28:22<br />
LastWriteTime     : 28/01/2012 00:28:22<br />
LastWriteTimeUtc  : 27/01/2012 23:28:22<br />
Attributes        : Directory<br />
BaseName          : Daily<br />
Mode              : d&#8212;-</p>
<p>Name              : 01<br />
Parent            : Daily<br />
Exists            : True<br />
Root              : F:\<br />
FullName          : F:1_DC-MYCOMPANY\Daily1<br />
Extension         :<br />
CreationTime      : 28/01/2012 00:28:22<br />
CreationTimeUtc   : 27/01/2012 23:28:22<br />
LastAccessTime    : 28/01/2012 00:28:22<br />
LastAccessTimeUtc : 27/01/2012 23:28:22<br />
LastWriteTime     : 28/01/2012 00:28:22<br />
LastWriteTimeUtc  : 27/01/2012 23:28:22<br />
Attributes        : Directory<br />
BaseName          : 01<br />
Mode              : d&#8212;-</p>
<p>__GENUS          : 2<br />
__CLASS          : __PARAMETERS<br />
__SUPERCLASS     :<br />
__DYNASTY        : __PARAMETERS<br />
__RELPATH        :<br />
__PROPERTY_COUNT : 2<br />
__DERIVATION     : {}<br />
__SERVER         :<br />
__NAMESPACE      :<br />
__PATH           :<br />
Job              : \\HYPERV1-W2K8\root\virtualization:Msvm_ConcreteJob.Instance<br />
                   ID=&#8221;AF1BA7B5-5E6E-4153-804E-E9EAB1D1BC45&#8243;<br />
ReturnValue      : 4096</p>
<p>7-Zip (A) 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18<br />
Scanning</p>
<p>Creating archive F:1_DC-MYCOMPANY\Daily1\2012-01-28-samedi.zip</p>
<p>Everything is Ok</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Admicom</title>
		<link>http://blog.jumlin.com/2010/04/backup-vms-in-a-hyper-v-cluster-core-version/comment-page-1/#comment-12038</link>
		<dc:creator>Admicom</dc:creator>
		<pubDate>Fri, 27 Jan 2012 00:18:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gofolo.com/?p=96#comment-12038</guid>
		<description>I precise that all my VMs are running on the same node. This issue is amazing. Don&#039;t understand.

Nicolas</description>
		<content:encoded><![CDATA[<p>I precise that all my VMs are running on the same node. This issue is amazing. Don&#8217;t understand.</p>
<p>Nicolas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Donato</title>
		<link>http://blog.jumlin.com/2010/04/backup-vms-in-a-hyper-v-cluster-core-version/comment-page-1/#comment-12003</link>
		<dc:creator>Donato</dc:creator>
		<pubDate>Thu, 26 Jan 2012 10:47:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gofolo.com/?p=96#comment-12003</guid>
		<description>On a Cluster configuration may be that a node has no VMs running..
added an escape instead of saving state:

##  If the virtual machines isn&#039;t specified to be excluded, then continue else exit from scrip execution
 
	if (($VM.EnabledState -eq 2) -or ($VM.EnabledState -eq 32768) -or ($VM.EnabledState -eq 32770))
	{
		$VM.RequestStateChange(32769)
		echo &quot;Saving the state of $VMName - $date&quot;
		$savestart = get-date -uformat &quot;%Y-%m-%d %H:%M:%S&quot;
		Add-Content $log &quot;$savestart :: $VMName : Saving the state&quot;
	}
    else
    { echo &quot; No VMs on $name&quot;
    Add-Content $log &quot;$dttm :: No Vms on $name&quot;
    exit
    }</description>
		<content:encoded><![CDATA[<p>On a Cluster configuration may be that a node has no VMs running..<br />
added an escape instead of saving state:</p>
<p>##  If the virtual machines isn&#8217;t specified to be excluded, then continue else exit from scrip execution</p>
<p>	if (($VM.EnabledState -eq 2) -or ($VM.EnabledState -eq 32768) -or ($VM.EnabledState -eq 32770))<br />
	{<br />
		$VM.RequestStateChange(32769)<br />
		echo &#8220;Saving the state of $VMName &#8211; $date&#8221;<br />
		$savestart = get-date -uformat &#8220;%Y-%m-%d %H:%M:%S&#8221;<br />
		Add-Content $log &#8220;$savestart :: $VMName : Saving the state&#8221;<br />
	}<br />
    else<br />
    { echo &#8221; No VMs on $name&#8221;<br />
    Add-Content $log &#8220;$dttm :: No Vms on $name&#8221;<br />
    exit<br />
    }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Donato</title>
		<link>http://blog.jumlin.com/2010/04/backup-vms-in-a-hyper-v-cluster-core-version/comment-page-1/#comment-12000</link>
		<dc:creator>Donato</dc:creator>
		<pubDate>Thu, 26 Jan 2012 10:13:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gofolo.com/?p=96#comment-12000</guid>
		<description>Hi Niklas i&#039;m also interestead to to have a backup retetion time of 14 days like wannascript said.
Can yu post a solution?
Thank you</description>
		<content:encoded><![CDATA[<p>Hi Niklas i&#8217;m also interestead to to have a backup retetion time of 14 days like wannascript said.<br />
Can yu post a solution?<br />
Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Donato</title>
		<link>http://blog.jumlin.com/2010/04/backup-vms-in-a-hyper-v-cluster-core-version/comment-page-1/#comment-11999</link>
		<dc:creator>Donato</dc:creator>
		<pubDate>Thu, 26 Jan 2012 09:55:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gofolo.com/?p=96#comment-11999</guid>
		<description>Hi!
Great script!
had the same problem of Alireza and Admicom, found a problem in the export:
Nico was right: is an access problem to shared folder, solved it works!</description>
		<content:encoded><![CDATA[<p>Hi!<br />
Great script!<br />
had the same problem of Alireza and Admicom, found a problem in the export:<br />
Nico was right: is an access problem to shared folder, solved it works!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Admicom</title>
		<link>http://blog.jumlin.com/2010/04/backup-vms-in-a-hyper-v-cluster-core-version/comment-page-1/#comment-11836</link>
		<dc:creator>Admicom</dc:creator>
		<pubDate>Sun, 22 Jan 2012 15:48:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gofolo.com/?p=96#comment-11836</guid>
		<description>Hi guys,

This script works on my hv1 with several vm but for some vm, the zips are empty. If i deactivate the 7zip in the script, same issue : the folder is empty too...

Any idea ?

Nicolas</description>
		<content:encoded><![CDATA[<p>Hi guys,</p>
<p>This script works on my hv1 with several vm but for some vm, the zips are empty. If i deactivate the 7zip in the script, same issue : the folder is empty too&#8230;</p>
<p>Any idea ?</p>
<p>Nicolas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nico</title>
		<link>http://blog.jumlin.com/2010/04/backup-vms-in-a-hyper-v-cluster-core-version/comment-page-1/#comment-11407</link>
		<dc:creator>Nico</dc:creator>
		<pubDate>Wed, 11 Jan 2012 15:01:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gofolo.com/?p=96#comment-11407</guid>
		<description>It seems that the state save, Snapshot and Export functions are executed by the Computer Account, which was not allowed to access the NAS share. 

If I may do an improvement at the beginning of your script, instead of giving the Hostname, you could use this to get it directly: 
$ipProp = [System.Net.NetworkInformation.IPGlobalProperties]::GetIPGlobalProperties()
$name = $ipProp.HostName</description>
		<content:encoded><![CDATA[<p>It seems that the state save, Snapshot and Export functions are executed by the Computer Account, which was not allowed to access the NAS share. </p>
<p>If I may do an improvement at the beginning of your script, instead of giving the Hostname, you could use this to get it directly:<br />
$ipProp = [System.Net.NetworkInformation.IPGlobalProperties]::GetIPGlobalProperties()<br />
$name = $ipProp.HostName</p>
]]></content:encoded>
	</item>
</channel>
</rss>

