Cannot delete protection group
-
Wednesday, February 06, 2013 5:48 AM
Hi guys,
I am trying to stop and delete a Protection Group (DPM 2012) but the Stop Protection window that opens up lists the results as 'Performing' - it has been like this for a few days now and none of them are changed status.
Is there something I can check to see why this is happening and remove protection from this group?
Please let me know if there is any other information I can provide.FYI The server is not using all of its resources.
Any help would be greatly appreciated.
Regards,
Locust12
All Replies
-
Wednesday, February 06, 2013 9:11 AM
Hi Locust12,
Could you try with powershell script:
First, verify that your PG is present :
Get-ProtectionGroup -DPMServerName $env:computername
Then try to delete it with this script:
(Replace YourStringSearch with your PG Name).
Connect-DpmServer $env:COMPUTERNAME
$StringSearch="YourStringSearch"
$PgList = @()
$pgList = Get-ProtectionGroup -DPMServerName $env:computername
where {($_.friendlyname) -match $StringSearch}
foreach($Pg in $PgList){
write-host ""
Write-host "# ProtectionGroup Name " -ForegroundColor red -Nonewline
Write-host $Pg.FriendlyName -ForegroundColor green
$mpg = Get-ModifiableProtectionGroup $Pg
$dsList = @()
$dsList = Get-DataSource -ProtectionGroup $Pg
foreach($ds in $dsList){
write-host ("Remove data source ",$ds.Name)
Remove-ChildDataSource -ProtectionGroup $mpg -ChildDataSource $ds -keepDiskData
}
Set-ProtectionGroup $mpg
}
Disconnect-DpmServer $env:COMPUTERNAMEDoes it work ?
Stephane
Please remember to click “Mark as Answer” on the post that helps you. This posting is provided "AS IS" with no warranties. knowledge is valid only if it is shared by All.
My DPM blog Yet Another DPM Blog
-
Thursday, February 07, 2013 12:58 AM
Hi Stephane,
Thanks for the reply.
When I run the Get-ProtectionGroup -DPMServerName $env:computername I can see the PG in question - "Production Applications"
However when I run the script (substituting YourStringSearch for Production Applications) it starts removing data source of a different PG. It has not completed removing the data sources and seems stuck.
Looking forward to your reply.
Regards,
Locust12 -
Thursday, February 07, 2013 9:36 AM
Hi Locust12,
This is strange...
Could you please run this script to see if your PGs and your Datasources are healthy :
Disconnect-DpmServer $env:COMPUTERNAME
Connect-DpmServer $env:COMPUTERNAME
$StringSearch="YourStringSearch"
$PgList = @()
$pgList = Get-ProtectionGroup -DPMServerName $env:computername ## where {($_.friendlyname) -match $StringSearch}
foreach($Pg in $PgList){
write-host ""
Write-host "### ProtectionGroup Name " -ForegroundColor red -Nonewline
Write-host $Pg.FriendlyName -ForegroundColor green
write-host ("ProtectionGroup Name ",$PG.Name)
write-host ("ProtectionGroup FriendlyName ",$PG.FriendlyName)
write-host ("ProtectionGroup ProtectionGroupId ",$PG.ProtectionGroupId)
write-host ("ProtectionGroup IsPGDisconnected ",$PG.IsPGDisconnected)
write-host ("ProtectionGroup PGProtectionType ",$PG.PGProtectionType)
write-host ("ProtectionGroup ProtectionMethod ",$PG.ProtectionMethod)
$dsList = @()
$dsList = Get-DataSource -ProtectionGroup $Pg
foreach($ds in $dsList){
write-host "# DataSource Name " -ForegroundColor blue -Nonewline
write-host $ds.Name -ForegroundColor yellow
write-host ("DataSource Protected ",$ds.protected)
write-host ("DataSource State ",$ds.State)
}
}
Disconnect-DpmServer $env:COMPUTERNAMEStephane
Please remember to click “Mark as Answer” on the post that helps you. This posting is provided "AS IS" with no warranties. knowledge is valid only if it is shared by All.
My DPM blog Yet Another DPM Blog
-
Friday, February 08, 2013 12:54 AM
Hi Stephane,
When running that script I can see the PG'S in question but some of the datasource states are marked as invalid.
Regards,
Locust12 -
Friday, February 08, 2013 9:21 PM
Hi,
You should take a look in MSDPMCurr.errlog in the "C:\Program Files\Microsoft System Center 2012\DPM\DPM\Temp" folder to find possibly more details.
Search for this string:
<FriendlyName>YourPGName</FriendlyName>
<PGSetId>00000000-0000-0000-0000-000000000000</PGSetId>
<MarkedForDeletion>true</MarkedForDeletion>Your datasources will be listed below.
Stephane
Please remember to click “Mark as Answer” on the post that helps you. This posting is provided "AS IS" with no warranties. knowledge is valid only if it is shared by All.
My DPM blog Yet Another DPM Blog
-
Sunday, February 10, 2013 11:04 PM
Hi Stephane,
I am unsure why but my colleague was able to do the exact same task via the GUI but with a successful result.
We are currently recreating this PG.Thanks for your assistance and hopefully smooth sailing again from here.
Regards,
Locust12- Marked As Answer by Locust12 Wednesday, February 27, 2013 4:34 AM
-
Monday, February 11, 2013 9:01 AM
No worries, this is good news :)
Stephane
Please remember to click “Mark as Answer” on the post that helps you. This posting is provided "AS IS" with no warranties. knowledge is valid only if it is shared by All.
My DPM blog Yet Another DPM Blog

