{"id":1452,"date":"2014-09-14T22:09:34","date_gmt":"2014-09-14T21:09:34","guid":{"rendered":"http:\/\/blog.cloud-client.info\/?p=1452"},"modified":"2014-09-14T22:24:38","modified_gmt":"2014-09-14T21:24:38","slug":"tip-free-space-after-a-lot-data-has-been-deleted-from-a-windows-server-2012-r2-volume-with-enabled-deduplication","status":"publish","type":"post","link":"https:\/\/blog.cloud-client.info\/?p=1452","title":{"rendered":"Tip: Free space after a lot data has been deleted\/moved from a Windows Server 2012 (R2) volume with enabled deduplication"},"content":{"rendered":"<div class=\"f1b57b4156f3c43e8a7d72dffc4b2e52\" data-index=\"1\" style=\"float: none; margin:10px 0 10px 0; text-align:center;\">\n<script type=\"text\/javascript\"><!--\r\ngoogle_ad_client = \"ca-pub-5449811010861855\";\r\n\/* blog.cloud-client.info 2 *\/\r\ngoogle_ad_slot = \"6689524735\";\r\ngoogle_ad_width = 468;\r\ngoogle_ad_height = 60;\r\n\/\/-->\r\n<\/script>\r\n<script type=\"text\/javascript\"\r\nsrc=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\r\n<\/script>\n<\/div>\n<p>Hello Folks,<\/p>\n<p>the last day&#8217;s\u00a0i setup a new design for a storage infrastructure, in this infrastructure i&#8217;ve moved\/deleted round about 6TB of data.<\/p>\n<p>On some volumes was\/is deduplication enabled and after i&#8217;ve moved a bunch of data away from these volumes to free diskspace the Windows Explorer still shows no &#8220;new&#8221; free space available. By default Server 2012 and R2 will free diskspace one time per week or with other words you will not get free diskspace by only deleting a file; quite simple.<\/p>\n<p>So how can you force Windows Server 2012R2 to free the diskspace asap? Quite simple, start the PowerShell as Administrator and run the following command:<\/p>\n<p><code>Start-DedupJob -Type GarbageCollection -Priority High -Volume *yourvolumehere*<\/code><\/p>\n<p>After you start the job you can check the status with <code>Get-DedupJob<\/code><\/p>\n<p>Wait until the job is finished and check the free space again, it should be available now. I will not explain why deduplication is working in this way here but I did note sometimes Administrators are not aware about the way how it works and that&#8217;s the reason why i mention it here.<\/p>\n<p>This is also important if using data deduplication for portable harddisks (not recommended to do so), i&#8217;ve seen this already a few times and in this case you are required to run this job manual (mostly).<\/p>\n<p>Have Fun<\/p>\n<p>Michael<\/p>\n<p>P.S.: If you run full backup jobs on a volume like this Microsoft recommends to create a new full backup after the &#8220;GarbageCollection&#8221; Job is finished, a lot of data can be changed during this job.<\/p>\n<p>P.S.2: For infrastructure&#8217;s with a high rate of moving\/deleting data on volumes with enabled data deduplication i recommend to schedule one &#8220;GarbageCollection&#8221; Job per night for the affected volume. You can schedule a job quite simple with the command: <code>Set-DedupSchedule \u2013Name \"FreeSpace\" \u2013Type GarbageCollection \u2013Start hh:ss \u2013DurationHours 5 \u2013Days Mon,Tues,Wed,Thurs,Fri,Sat,Sun \u2013Priority High<\/code><\/p>\n<p>Of course the execution time should not be at the same time like a large backup job or similar.. \ud83d\ude42 Replace hh:ss with the time you want to perform the job, also remove unwanted days if not needed.<\/p>\n\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>Hello Folks, the last day&#8217;s\u00a0i setup a new design for a storage infrastructure, in this infrastructure i&#8217;ve moved\/deleted round about 6TB of data. On some volumes was\/is deduplication enabled and after i&#8217;ve moved a bunch of data away from these volumes to free diskspace the Windows Explorer still shows no &#8220;new&#8221; free space available. By [&hellip;]<\/p>\n","protected":false},"author":1423,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[31],"tags":[],"class_list":["post-1452","post","type-post","status-publish","format-standard","hentry","category-windows-server-os"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3AZQ3-nq","_links":{"self":[{"href":"https:\/\/blog.cloud-client.info\/index.php?rest_route=\/wp\/v2\/posts\/1452","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.cloud-client.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.cloud-client.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.cloud-client.info\/index.php?rest_route=\/wp\/v2\/users\/1423"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.cloud-client.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1452"}],"version-history":[{"count":4,"href":"https:\/\/blog.cloud-client.info\/index.php?rest_route=\/wp\/v2\/posts\/1452\/revisions"}],"predecessor-version":[{"id":1456,"href":"https:\/\/blog.cloud-client.info\/index.php?rest_route=\/wp\/v2\/posts\/1452\/revisions\/1456"}],"wp:attachment":[{"href":"https:\/\/blog.cloud-client.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1452"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.cloud-client.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1452"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.cloud-client.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}