none
Shrink large volumes with recovery points at the end RRS feed

  • Question

  • Is there a way to shrink volumes with recovery points at the end of the volume? The error message I get is: "Windows cannot shrink currently due to the presence of data towards the end of the volume. As older recovery points expire, Windows should be able to shrink the volume". I have some volumes that have allocated twice as much as they are actually using and it is desirable to free up space without waiting for a recovery point to expire or removing recovery points with the hope that one is the recovery point at the end of the volume.
    Tuesday, January 18, 2011 6:18 PM

Answers

  • Hi,

     

    Volume Shadow Copy (VSS) pins shadow copy files (recovery points) in place and the NTFS file system cannot move them.  Not even a defrag can move these files, so as the message states, you need to try every day to shrink the volume.   

    If you want to delete expired recovery points before the default time of midnight, you can run the power shell command pruneshadowcopiesDpm2010.ps1 manually, then immediatly try to shrink.  If the RP just pruned was at the end of the volume, then the shrink will work, if not you need to wait another day, or reduce the number of days retension for the PG, and rerun the script and try shrinking again.


    Regards, Mike J. [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights.
    Tuesday, January 18, 2011 11:47 PM
    Moderator