Mark Minasi's Reader Forum
Mark Minasi's Reader Forum
Home | Profile | Register | Active Topics | Active Polls | Members | Search | FAQ | Minasi Forum RSS Feed
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 OTHER HALP! Linux, Hardware, and Anything Else
 All things Virtual!
 can't shrink vhdx after server 2012 deduplication?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Pesos
Honorable But Hopeless Addict

USA
3506 Posts
Status: offline

Posted - 06/05/2012 :  11:40:27 AM  Show Profile  Reply with Quote
Server 2012 RC hyper-v host with a Server 2012 RC hyper-v guest

The guest is running DFS replication and Deduplication.

Using DFS-R we replicated roughly 250 GB of data; the vhdx grew to 275 GB as expected.

We then applied deduplication and the volume shrunk by roughly 50% down to 125 GB.

Shut down the guest and ran a Compact operation on the vhdx expecting it to shrink - it remains at 275 GB.

This effectively negates any benefit to the deduplication - is there something special we need to do to actually reclaim this space and shrink the vhd?

-Wes

joe_elway
Honorable But Hopeless Addict

Ireland
7397 Posts
Status: offline

Posted - 06/05/2012 :  2:16:24 PM  Show Profile  Visit joe_elway's Homepage  Reply with Quote
Dedup only works on at rest files. A VM's files are not at rest. See http://www.aidanfinn.com/?p=11979 It is also not a constant process. AFAIK it "chunks" the files once per night, but you an force that to happen somehow. Not had a chance to get into it yet.

Aidan Finn
MCSE, MVP (Virtual Machine)

IT Blog: http://www.aidanfinn.com
My Photography: http://www.aidanfinnphoto.com/
Books: WS2012 Hyper-V Installation & Config Guide, MSFT Private Cloud Computing
Twitter: http://twitter.com/joe_elway

Edited by - joe_elway on 06/05/2012 2:17:18 PM
Go to Top of Page

Pesos
Honorable But Hopeless Addict

USA
3506 Posts
Status: offline

Posted - 06/05/2012 :  2:17:46 PM  Show Profile  Reply with Quote
Hi Aidan, I'm not following... We are running dedup inside the guest, not on the host. Now that dedup has run inside the guest and the volume is reporting that it is only taking up 125 GB of space, shouldn't we able to shrink the vhdx file accordingly?

-Wes
Go to Top of Page

Pesos
Honorable But Hopeless Addict

USA
3506 Posts
Status: offline

Posted - 06/05/2012 :  2:18:26 PM  Show Profile  Reply with Quote
Yes we set it to 0 days instead of the default of 30 days and manually ran the process. It shrank the dataset from 250gb to 125gb.

-Wes
Go to Top of Page

Pesos
Honorable But Hopeless Addict

USA
3506 Posts
Status: offline

Posted - 06/07/2012 :  5:18:32 PM  Show Profile  Reply with Quote
Hmm... not sure it has anything to do with deduplication. Took another vhdx that had 39 GB of data on it and deleted 9 GB so it is showing 30 GB used. When I try to shrink that one it finishes immediately and does not shrink at all. Perhaps vhd compacting is somehow broken in the RC?

-Wes
Go to Top of Page

wobble_wobble
Honorable But Hopeless Addict

Ireland
4517 Posts
Status: offline

Posted - 06/11/2012 :  02:02:22 AM  Show Profile  Visit wobble_wobble's Homepage  Look at the Skype address for wobble_wobble  Reply with Quote
Wes,

Just wondering are these "data drives" or the "boot disk"?

As far as I know it will not work on boot disks.

Joe

After everything that has happened during the month of Jan 07, I do believe that pigs fly backwards!

http://whatismyv6.com/
Go to Top of Page

Pesos
Honorable But Hopeless Addict

USA
3506 Posts
Status: offline

Posted - 06/11/2012 :  02:45:18 AM  Show Profile  Reply with Quote
Yep data.

Got some suggestions on the technet forum. Defragged and then ran a "full" optimization via powerhell and got down to 210 gigs. Defragged and compacted again and got down to 200. Still not the 125 it should be, but some progress at least.

-Wes
Go to Top of Page

Pesos
Honorable But Hopeless Addict

USA
3506 Posts
Status: offline

Posted - 06/14/2012 :  12:10:08 PM  Show Profile  Reply with Quote
Update - same issue on another separate installation, same configuration. After two passes of defrag/optmize-vhd was able to shrink a vhd from 350gb to 180gb (again not as small as the actual data set, but a big improvement). Looks like MS still has a bit of work to do to get the dedup benefits translated over to the virtual world!

-Wes
Go to Top of Page

Pesos
Honorable But Hopeless Addict

USA
3506 Posts
Status: offline

Posted - 07/15/2012 :  11:42:45 PM  Show Profile  Reply with Quote
bump - anyone else playing with this yet?

-Wes
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Mark Minasi's Reader Forum © 2002-2011 Mark Minasi Go To Top Of Page
This page was generated in 0.14 seconds. Snitz Forums 2000