<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>CLI: Grow your replica and shadow copy volume sizes automatically!</title><link>http://blogs.technet.com/b/dpm/archive/2007/07/10/cli-grow-your-replica-and-shadow-copy-volume-sizes-automatically.aspx</link><description>How cool would it be, if we could schedule a nightly task that automatically grows your replica and shadow copy storage volume sizes, and in turn help the protection SLA to be good for the rest of the week! 
 
 The script below does exactly the same</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: CLI: Grow your replica and shadow copy volume sizes automatically!</title><link>http://blogs.technet.com/b/dpm/archive/2007/07/10/cli-grow-your-replica-and-shadow-copy-volume-sizes-automatically.aspx#3292352</link><pubDate>Mon, 09 Nov 2009 01:41:37 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3292352</guid><dc:creator>virtuworks</dc:creator><description>&lt;p&gt;I cant seem to get this to work on system state datasources, works on file based. Is there something special that needs to be done to get system states to work?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3292352" width="1" height="1"&gt;</description></item><item><title>Creating DPM PowerShell Tasks in Operations Manager</title><link>http://blogs.technet.com/b/dpm/archive/2007/07/10/cli-grow-your-replica-and-shadow-copy-volume-sizes-automatically.aspx#3250269</link><pubDate>Thu, 04 Jun 2009 12:07:32 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3250269</guid><dc:creator>David Allen - OpsMgr MVP</dc:creator><description>&lt;p&gt;Performing general administrative DPM tasks can be quite time consuming so why not get Operations Manager&lt;/p&gt;
&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3250269" width="1" height="1"&gt;</description></item><item><title>re: CLI: Grow your replica and shadow copy volume sizes automatically!</title><link>http://blogs.technet.com/b/dpm/archive/2007/07/10/cli-grow-your-replica-and-shadow-copy-volume-sizes-automatically.aspx#3176671</link><pubDate>Mon, 05 Jan 2009 21:45:45 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3176671</guid><dc:creator>ben.hebert@ophrp.state.ny.us</dc:creator><description>&lt;p&gt;When running I receive the following Error:&lt;/p&gt;
&lt;p&gt;Set-DatasourceDiskAllocation : Missing an argument for parameter 'ShadowCopyAre&lt;/p&gt;
&lt;p&gt;a'. Specify a parameter of type 'System.Int64' and try again.&lt;/p&gt;
&lt;p&gt;At C:\Program Files\Microsoft DPM\DPM\bin\extend_DPM_disk.ps1:53 char:95&lt;/p&gt;
&lt;p&gt;+ &amp;nbsp; &amp;nbsp; Set-DatasourceDiskAllocation -Manual -Datasource $ds -ProtectionGroup $MP&lt;/p&gt;
&lt;p&gt;G -ShadowCopyArea &amp;nbsp;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;/p&gt;
&lt;p&gt;8178892800&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3176671" width="1" height="1"&gt;</description></item><item><title>re: CLI: Grow your replica and shadow copy volume sizes automatically!</title><link>http://blogs.technet.com/b/dpm/archive/2007/07/10/cli-grow-your-replica-and-shadow-copy-volume-sizes-automatically.aspx#3147920</link><pubDate>Wed, 05 Nov 2008 17:15:55 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3147920</guid><dc:creator>cleej9</dc:creator><description>&lt;p&gt;Check out this article for more detail on running DPM scripts outside of the DPM management shell and scheduling them to run:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://0direction.com/blog/index.php/2008/10/31/running-dpm-scripts-outside-of-the-dpm-management-shell/"&gt;http://0direction.com/blog/index.php/2008/10/31/running-dpm-scripts-outside-of-the-dpm-management-shell/&lt;/a&gt; &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3147920" width="1" height="1"&gt;</description></item><item><title>re: CLI: Grow your replica and shadow copy volume sizes automatically!</title><link>http://blogs.technet.com/b/dpm/archive/2007/07/10/cli-grow-your-replica-and-shadow-copy-volume-sizes-automatically.aspx#3142607</link><pubDate>Mon, 27 Oct 2008 18:49:05 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3142607</guid><dc:creator>cleej9</dc:creator><description>&lt;p&gt;That is because you are calling the powershell console without the DPM PS snapin loaded. &amp;nbsp;I use the following code in the beginning of all of my DPM scripts so i can run them through the standard PS console:&lt;/p&gt;
&lt;p&gt;if (!(Get-PSSnapin microsoft.dataprotectionmanager.powershell))&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;write-host &amp;quot;Adding PS Snapin for DPM...&amp;quot; -Fore Green&lt;/p&gt;
&lt;p&gt;add-PSSnapin Microsoft.DataProtectionManager.PowerShell}&lt;/p&gt;
&lt;p&gt;This will check to see if the snapin is loaded, and if not, load it.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3142607" width="1" height="1"&gt;</description></item><item><title>re: CLI: Grow your replica and shadow copy volume sizes automatically!</title><link>http://blogs.technet.com/b/dpm/archive/2007/07/10/cli-grow-your-replica-and-shadow-copy-volume-sizes-automatically.aspx#3140550</link><pubDate>Thu, 23 Oct 2008 03:37:13 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3140550</guid><dc:creator>rtuck</dc:creator><description>&lt;p&gt;It works from within Powershell (IF I remove the '&amp;amp;' in front of the hostname), but when I schedule a task to run it as:&lt;/p&gt;
&lt;p&gt;C:\WINDOWS\system32\WINDOW~2\v1.0\powershell.exe -command &amp;quot;&amp;amp; 'GrowRPVs.ps1'&amp;quot;&lt;/p&gt;
&lt;p&gt;I get this:&lt;/p&gt;
&lt;p&gt;&amp;quot;The term 'Connect-DPMServer' is not recognized as a cmdlet, function, operable&lt;/p&gt;
&lt;p&gt;program, or script file. Verify the term and try again.&lt;/p&gt;
&lt;p&gt;At C:\Program Files\Microsoft DPM\DPM\bin\GrowRPVs.ps1:17 char:29&lt;/p&gt;
&lt;p&gt;+ $dpmserver=Connect-DPMServer &amp;nbsp;&amp;lt;&amp;lt;&amp;lt;&amp;lt; $dpmservername&amp;quot;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3140550" width="1" height="1"&gt;</description></item><item><title>re: CLI: Grow your replica and shadow copy volume sizes automatically!</title><link>http://blogs.technet.com/b/dpm/archive/2007/07/10/cli-grow-your-replica-and-shadow-copy-volume-sizes-automatically.aspx#3022831</link><pubDate>Fri, 28 Mar 2008 22:57:55 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3022831</guid><dc:creator>GradonSilverton</dc:creator><description>&lt;p&gt;Appears that there is a error in the Script if you copy it as above. &lt;/p&gt;
&lt;p&gt;This Line:&lt;/p&gt;
&lt;p&gt;&amp;quot;Set-DatasourceDiskAllocation -Manual -Datasource $ds -ProtectionGroup $MPG -ReplicaArea&lt;/p&gt;
&lt;p&gt;$NewReplicaSize&amp;quot;&lt;/p&gt;
&lt;p&gt;Needs to Read:&lt;/p&gt;
&lt;p&gt;&amp;quot;Set-DatasourceDiskAllocation -Manual -Datasource $ds -ProtectionGroup $MPG -ReplicaArea $NewReplicaSize&amp;quot;&lt;/p&gt;
&lt;p&gt;The Extra space caused the script to error out.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3022831" width="1" height="1"&gt;</description></item><item><title>re: CLI: Grow your replica and shadow copy volume sizes automatically!</title><link>http://blogs.technet.com/b/dpm/archive/2007/07/10/cli-grow-your-replica-and-shadow-copy-volume-sizes-automatically.aspx#1565829</link><pubDate>Fri, 20 Jul 2007 14:29:49 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:1565829</guid><dc:creator>TechNet Archive</dc:creator><description>&lt;p&gt;Hi Kapil,&lt;/p&gt;
&lt;p&gt;I understand that the script blindfoldedly increases the Allocated Replica Size and Allocated Shadow copy area size if it doesn't meet the threshold value. Have you tested for the senarios where the disk space available doesn't meeet the requirements for allocating extra space ? In such cases,are there any issues with Save-ProtectionGroup and Modify-ProtectionGroup ??&lt;/p&gt;
&lt;p&gt;With regards,&lt;/p&gt;
&lt;p&gt;Mohd Abubakr.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=1565829" width="1" height="1"&gt;</description></item><item><title>re: CLI: Grow your replica and shadow copy volume sizes automatically!</title><link>http://blogs.technet.com/b/dpm/archive/2007/07/10/cli-grow-your-replica-and-shadow-copy-volume-sizes-automatically.aspx#1493634</link><pubDate>Tue, 10 Jul 2007 15:27:48 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:1493634</guid><dc:creator>Ruud Baars [MSFT]</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Very cool but I like to place 1 remark;&lt;/p&gt;
&lt;p&gt;This is perfect as a guard but should not be encouraged as a 'daily thin provisioning' strategy rather than appropriate sizing up-front.&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;Ruud&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=1493634" width="1" height="1"&gt;</description></item></channel></rss>