Need to find current storage location for datasource... RRS feed

  • 질문

  • Attempting to migrate from one very full Modern Backup Storage (MBS) drive to another very empty one.  Following these steps from :

    Create a modifiable Protection Group the of the PG the datasource is in. 
    $pg = Get-DPMProtectionGroup 
    $mpg = Get-DPMModifiableProtectionGroup $pg[0] 
    Get the datasource you wish to migrate, and the volume you wish to migrate it to. 
    $ds = Get-DPMDatasource $mpg 
    $vols = Get-DPMDiskStorage -Volumes 
    Modify the disk allocation for the datasource, and save the PG. 
    Set-DPMDatasourceDiskAllocation -ProtectionGroup $mpg -Datasource $ds[0] -TargetStorage $vols[0] -MigrateDatasourceDataFromDPM 
    Set-ProtectionGroup $mpg 
    These steps enable you to have more control over your storage while giving you the freedom to balance storage utilization across volumes. 

    Problem is, if the datasource ALREADY resides on $vols[0], this is a totally wasted command.  I cannot, for the life of me, find any way via powershell to find the CURRENT location of the datasource.  The rather obvious choice of "Get-DatasourceDiskAllocation" only returns the following:

    PS C:\Users\sinclair_admin> Get-DatasourceDiskAllocation $ds[0] | fl
    Computer                 : EPICOR
    Name                     : BizInsightDB
    LogicalPath              : EPICOR\BizInsightDB
    ObjectType               : SQL Server 2012 database
    LatestRecoveryPointLabel : -
    OldestRecoveryPointLabel : -
    TotalRecoveryPointsLabel : 0
    DiskAllocation           : {Storage consumed:, 110.82 MB}

    Is there any way of expanding the "DiskAllocation" further?  Would that contain where the vhdx's are actually stored?  

    Any ideas?

    Oh, and BTW, this is immediately available in the GUI by right-clicking the datasource and choosing "Move Backup Storage", so I know it has to be discoverable somewhere.  Right-clicking on 250 different datasources isn't really a great way to go...
    • 편집됨 Skip.Sinclair 2019년 5월 31일 금요일 오후 12:52 clarity
    2019년 5월 31일 금요일 오후 12:50

모든 응답

  • Hello,

    Unfortunately I don't think you can get the location for a backup/datasource, the DPM PowerShell is quite limited when it comes to this, or well DPM in general is quite limited with information.

    Best regards,

    Blog: LinkedIn:

    • 답변으로 제안됨 Leon Laude 2019년 6월 4일 화요일 오후 9:49
    2019년 5월 31일 금요일 오후 2:42