Principales respuestas
Reducir o liberar espacio de Data Protector Manager

Pregunta
-
Cordial Saludo, tengo instalado el Data Protector Manager Microsoft, los discos se me llenaron y no encuentro opciones para liberar espacio, lo que realice fue que cambie la cantidad de dias y copias pero igual el disco no libera espacio y en este momento quedo full, no se si las copias estan quedando bien o mal, porque no tiene muchas opciones para revisar como el Backup Exec de Symantec.
Respuestas
-
01 Antes de hacer un Shrink, debemos correr este comando en consola Shell de DPM “.\pruneshadowcopiesDpm2010.ps1”
02 Luego creamos un script, con la siguiente data, en este caso lo llame FindShrinkSpace.ps1
#begin script
#----------------
param([string] $DPMServerName)
if(!$args[0])
{
if(!$DPMServerName)
{
$DPMServerName = read-host "DPMServer:"
}
}
else
{
if(("-?","-help") -contains $args[0])
{
write-host Usage::
write-host FindShrinkableSpace.ps1 -DPMServerName [dpmserver]
write-host Help::
write-host Finds the shrinkable space for all volumes protected on the specified DPM server.
write-host
exit 0
}
else
{
write-host "Usage -? for Help"
exit 1
}
}
$dsListAfterCalculatingShrink = @{}
$dpmServer = Connect-DPMServer $DPMServerName
if (!$dpmServer)
{
Write-Error "Unable to connect to $DpmServerName"
exit 1
}
$pgList = Get-ProtectionGroup -DPMServerName $DPMServerName
if ($pgList -ne $null)
{
foreach ($pg in $pgList)
{
$dsList = Get-Datasource -ProtectionGroup $pg
foreach ($ds in $dsList)
{
# If we have already stored a datasource for this physical replica, skip this DS and continue (since it will be the same)
if ($dsListAfterCalculatingShrink.ContainsKey($ds.AssociatedReplica.PhysicalReplicaId))
{
continue
}
$currentSizeInGb = [System.Math]::Round(($ds.ShadowCopyAreaSize * 1.0) / (1024.0 * 1024.0 * 1024.0), 2);
$shrinkableSizeInGb = 0;
#Clear errors, check for any exception during 'CalculateShrinkThresholds' operation
$prevErrorActionPreference = $ErrorActionPreference;
$ErrorActionPreference = "SilentlyContinue";
$Error.Clear()
$ds2 = Get-DatasourceDiskAllocation -dataSource $ds -CalculateShrinkThresholds
if ($?)
{
$shrinkableSizeInGb = [System.Math]::Round((($ds.ShadowCopyAreaSize - $ds2[0].ShadowCopySizeAfterMaxShrink) * 1.0 ) / (1024.0 * 1024.0 * 1024.0), 2);
}
$ErrorActionPreference = $prevErrorActionPreference;
# Add details about this datasource to a hashmap;
$dsListAfterCalculatingShrink[$ds.AssociatedReplica.PhysicalReplicaId] =
@{Name = $ds.ToString("s", $null); ScSizeInGb = $currentSizeInGb; ShrinkableSizeInGb = $shrinkableSizeInGb }
}
}
}
# Sort the datasources in descending order of how much it can be shrunk
$dsListAfterCalculatingShrinkSorted = $dsListAfterCalculatingShrink.values | sort { $_.ShrinkableSizeInGb } -desc
# Print results
#write-output (" {0} {1} {2}" -f "Datasource".PadRight(100),"SC-Size(GB)".PadLeft(11),"CanBeShrunkBy(GB)".PadLeft(11))
write-host -ForegroundColor Cyan (" {0} {1} {2}" -f "Datasource".PadRight(100),"SC-Size(GB)".PadLeft(11),"CanBeShrunkBy(GB)".PadLeft(11))
write-host -ForegroundColor Cyan ------------------------------------------------------------------------------------------------------------------------------------
foreach ($ds in $dsListAfterCalculatingShrinkSorted)
{
write-output (" {0} {1} {2}" -f $ds.Name.PadRight(100), $ds.ScSizeInGb.ToString().PadLeft(11), $ds.ShrinkableSizeInGb.ToString().PadLeft(11))
}
#end script
#-----------
03 Una vez finalizado el .\pruneshadowcopiesDpm2010.ps1 corremos el script creado “FindShrinkSpace.ps1”
Podemos hacerlo de 2 maneras
A_
.\FindShrinkSpace.ps1 -DPMServerName [servername]
B_
PS C:\Program Files\Microsoft DPM\DPM\bin> .\FindShrinkSpace.ps1
DPMServer:: SRVTxxxxxx
04 Luego ubicamos el PG que queremos modificar en este caso SG02
05 vamos a la consola del DPM. Modify disk allocation…
Y realizamos lo siguiente: volumen – allocate
Shrink
Jorge Alejandro Garcia
Administracion Backup & Restore
- Editado Jorge Alejandro Garcia viernes, 29 de julio de 2011 20:42 Imagenes
- Propuesto como respuesta Jorge Alejandro Garcia viernes, 29 de julio de 2011 20:43
- Marcado como respuesta leancue lunes, 1 de agosto de 2011 18:19
Todas las respuestas
-
01 Antes de hacer un Shrink, debemos correr este comando en consola Shell de DPM “.\pruneshadowcopiesDpm2010.ps1”
02 Luego creamos un script, con la siguiente data, en este caso lo llame FindShrinkSpace.ps1
#begin script
#----------------
param([string] $DPMServerName)
if(!$args[0])
{
if(!$DPMServerName)
{
$DPMServerName = read-host "DPMServer:"
}
}
else
{
if(("-?","-help") -contains $args[0])
{
write-host Usage::
write-host FindShrinkableSpace.ps1 -DPMServerName [dpmserver]
write-host Help::
write-host Finds the shrinkable space for all volumes protected on the specified DPM server.
write-host
exit 0
}
else
{
write-host "Usage -? for Help"
exit 1
}
}
$dsListAfterCalculatingShrink = @{}
$dpmServer = Connect-DPMServer $DPMServerName
if (!$dpmServer)
{
Write-Error "Unable to connect to $DpmServerName"
exit 1
}
$pgList = Get-ProtectionGroup -DPMServerName $DPMServerName
if ($pgList -ne $null)
{
foreach ($pg in $pgList)
{
$dsList = Get-Datasource -ProtectionGroup $pg
foreach ($ds in $dsList)
{
# If we have already stored a datasource for this physical replica, skip this DS and continue (since it will be the same)
if ($dsListAfterCalculatingShrink.ContainsKey($ds.AssociatedReplica.PhysicalReplicaId))
{
continue
}
$currentSizeInGb = [System.Math]::Round(($ds.ShadowCopyAreaSize * 1.0) / (1024.0 * 1024.0 * 1024.0), 2);
$shrinkableSizeInGb = 0;
#Clear errors, check for any exception during 'CalculateShrinkThresholds' operation
$prevErrorActionPreference = $ErrorActionPreference;
$ErrorActionPreference = "SilentlyContinue";
$Error.Clear()
$ds2 = Get-DatasourceDiskAllocation -dataSource $ds -CalculateShrinkThresholds
if ($?)
{
$shrinkableSizeInGb = [System.Math]::Round((($ds.ShadowCopyAreaSize - $ds2[0].ShadowCopySizeAfterMaxShrink) * 1.0 ) / (1024.0 * 1024.0 * 1024.0), 2);
}
$ErrorActionPreference = $prevErrorActionPreference;
# Add details about this datasource to a hashmap;
$dsListAfterCalculatingShrink[$ds.AssociatedReplica.PhysicalReplicaId] =
@{Name = $ds.ToString("s", $null); ScSizeInGb = $currentSizeInGb; ShrinkableSizeInGb = $shrinkableSizeInGb }
}
}
}
# Sort the datasources in descending order of how much it can be shrunk
$dsListAfterCalculatingShrinkSorted = $dsListAfterCalculatingShrink.values | sort { $_.ShrinkableSizeInGb } -desc
# Print results
#write-output (" {0} {1} {2}" -f "Datasource".PadRight(100),"SC-Size(GB)".PadLeft(11),"CanBeShrunkBy(GB)".PadLeft(11))
write-host -ForegroundColor Cyan (" {0} {1} {2}" -f "Datasource".PadRight(100),"SC-Size(GB)".PadLeft(11),"CanBeShrunkBy(GB)".PadLeft(11))
write-host -ForegroundColor Cyan ------------------------------------------------------------------------------------------------------------------------------------
foreach ($ds in $dsListAfterCalculatingShrinkSorted)
{
write-output (" {0} {1} {2}" -f $ds.Name.PadRight(100), $ds.ScSizeInGb.ToString().PadLeft(11), $ds.ShrinkableSizeInGb.ToString().PadLeft(11))
}
#end script
#-----------
03 Una vez finalizado el .\pruneshadowcopiesDpm2010.ps1 corremos el script creado “FindShrinkSpace.ps1”
Podemos hacerlo de 2 maneras
A_
.\FindShrinkSpace.ps1 -DPMServerName [servername]
B_
PS C:\Program Files\Microsoft DPM\DPM\bin> .\FindShrinkSpace.ps1
DPMServer:: SRVTxxxxxx
04 Luego ubicamos el PG que queremos modificar en este caso SG02
05 vamos a la consola del DPM. Modify disk allocation…
Y realizamos lo siguiente: volumen – allocate
Shrink
Jorge Alejandro Garcia
Administracion Backup & Restore
- Editado Jorge Alejandro Garcia viernes, 29 de julio de 2011 20:42 Imagenes
- Propuesto como respuesta Jorge Alejandro Garcia viernes, 29 de julio de 2011 20:43
- Marcado como respuesta leancue lunes, 1 de agosto de 2011 18:19
-
Jorge muy amable por su respuesta ya ejecute el primer comando ahora estoy en el proceso de creacion del Shell, revisando el que usted creo, los valores a reemplazar son los de nombre del servidor por el nombre del servidor que tengo aqui, hay que modificar algun valor adicionar para ejecutar el shell tal cual me lo envio, por su respuesta gracias.
-