none
Get the size of all recovery point volumes RRS feed

  • Question

  • Hi all,

    I would like to adjust the pagefile size on one of our DPM servers.
    But I don't want to select each entry under "Protection" manually toverify the size.

    Is there an easier way to get the sum of all recovery point volumes?

    Thanks in advance

    regards

    /bkpfast

    Tuesday, October 18, 2011 8:33 AM

Answers

  • Ok this is a bit rough but it shows how to total the recovery point/replica volume capacities/used space:

     

    $dsList = @(Get-Datasource $env:COMPUTERNAME | Where-Object { $_.Protected })
    
    $totRepSize = 0
    $totRepUsed = 0
    $totRecSize = 0
    $totRecUsed = 0
    
    ForEach($ds in $dsList)
    {
      $totRepSize += $ds.ReplicaSize
      $totRepUsed += $ds.ReplicaUsedSpace
      $totRecSize += $ds.ShadowCopyAreaSize
      $totRecUsed += $ds.ShadowCopyUsedSpace
    }
    
    Write-Output $totRecSize
    

     

    Note that this does not take into account colocated volumes, so your total will be artificially high if you do use colocation.



    • Edited by Rod Savard Wednesday, October 19, 2011 12:48 AM
    • Marked as answer by bkpfast Wednesday, October 19, 2011 1:30 PM
    Wednesday, October 19, 2011 12:48 AM

All replies

  • In DPM console navigate to Reporting and then choose Disk Utilization.

    You will see the size of the disk allocated

    Tuesday, October 18, 2011 9:50 AM
  • Hi,

    thanks for your reply!
    I have checked the report but it does show the overall allocated disk space so I guess Replicas are included.

    I haven't found an option to just show RecoveryPoint  volume space so far and that is what is mentioned in the DPM requirements:

    "0.2 percent the size of all recovery point volumes combined, in addition to the recommended size (generally, 1.5 times the amount of RAM on the computer)."

    Thanks

    /bkpfast 


    Tuesday, October 18, 2011 11:21 AM
  • I would do this with PowerShell.  Enumerate all protection groups, gather stats on each protected member, total up the size of the allocated recovery point volumes.

    Tuesday, October 18, 2011 1:14 PM
  • Hi bkpfast,

    Thats true. the report shows allocated disk space which the replica are included in that as well as recovery points.

     

    It might be possible to get these information from PS as Rod mentioned but take into consideration that recovery points size are changing on daily basic. So one day you will find the size and the other day will change.

    There are PowerShell forum for DPM that might help you to post the question there as well.

    http://social.technet.microsoft.com/Forums/en-US/dpmpowershell/threads

     

    _________________________________________________

    If you found my answer helpful please mark it as an Answer

    Tuesday, October 18, 2011 1:56 PM
  • I can provide a sample script. Let me do a bit of cleanup on it first...
    Wednesday, October 19, 2011 12:32 AM
  • Ok this is a bit rough but it shows how to total the recovery point/replica volume capacities/used space:

     

    $dsList = @(Get-Datasource $env:COMPUTERNAME | Where-Object { $_.Protected })
    
    $totRepSize = 0
    $totRepUsed = 0
    $totRecSize = 0
    $totRecUsed = 0
    
    ForEach($ds in $dsList)
    {
      $totRepSize += $ds.ReplicaSize
      $totRepUsed += $ds.ReplicaUsedSpace
      $totRecSize += $ds.ShadowCopyAreaSize
      $totRecUsed += $ds.ShadowCopyUsedSpace
    }
    
    Write-Output $totRecSize
    

     

    Note that this does not take into account colocated volumes, so your total will be artificially high if you do use colocation.



    • Edited by Rod Savard Wednesday, October 19, 2011 12:48 AM
    • Marked as answer by bkpfast Wednesday, October 19, 2011 1:30 PM
    Wednesday, October 19, 2011 12:48 AM
  • Hi,

    works like a charm - thanks a lot!!

     

    regards

    /bkpfast

    Wednesday, October 19, 2011 1:29 PM