The Active Network
ActiveMac Anonymous | Create a User | Reviews | News | Forums | Advertise  
 

  *  

  Hyper-V How To: Shrink a VHD File
Time: 00:16 EST/05:16 GMT | News Source: Microsoft | Posted By: Kenneth van Surksum

Jeremy Hagan: One problem I have had when trying to do my first round of P2Vs for my Hyper-V implementation that I didn’t notice in testing is that you can’t size the VHD of the VM smaller than the corresponding physical disk of the original machine. Since it is best practice to have one LUN per VM and it is also best practice to have fixed VHDs, this can cause a lot of wasted SAN space. In my planning for the P2V process I monitored the target servers for 1 month so that I could get an idea of the CPU and memory use, but also the data growth. I decided to plot the percentage of data growth, extrapolate this for 3 years and then add a 15% premium on top of this then rounded up to the nearest 5 GB. This ended up being the SAN LUN size for each VM. The problem I then had was that I didn’t have enough SAN space available to P2V my machines.

What I decided I needed to do was to P2V each machine to a sufficiently large scratch LUN, then shrink down the VHDs to be the size I wanted then migrate the VM off the scratch LUN to the desired LUN. Easy right? Well maybe not. After much searching I have managed to come up with a recipe for doing this. See the example below. In this case it was a Windows XP machine with a 40 GB hard disk, but only 9.5 GB of data. If you want to play with this I recommend making a copy of the VHD file as a backup rather than taking a snapshot. Snapshots will interfere with final step using VHDResizer to create the final fixed VHD file.

Write Comment
Return to News

  Displaying 601 through 607 of 607
Prev | First
  The time now is 12:43:17 AM ET.
Any comment problems? E-mail us
#601 By 4240821 (82.115.4.230) at 8/14/2025 3:53:15 PM
https://www.xfree.com/mouncamanre614
https://www.xfree.com/uninevlo201
https://www.xfree.com/makadocpo325
https://www.xfree.com/fatasynchga641
https://www.xfree.com/hellcenthefer906
https://www.xfree.com/llavtenceni722
https://www.xfree.com/rateltieter549
https://www.xfree.com/bueboundextti939
https://www.xfree.com/wignabounle129
https://www.xfree.com/backvicimea630

#602 By 4240821 (82.115.4.230) at 8/15/2025 7:38:21 AM
https://www.xfree.com/dingrotcame529
https://www.xfree.com/tandodanvia472
https://www.xfree.com/reetabetlo181
https://www.xfree.com/sporescudi498
https://www.xfree.com/diaromape44
https://www.xfree.com/badveovolmai717
https://www.xfree.com/lotaldayfor391
https://www.xfree.com/ealtragtherra457
https://www.xfree.com/vergardriten549
https://www.xfree.com/healthkigipar43

#603 By 4240821 (82.115.4.230) at 8/16/2025 3:27:58 AM
https://www.xfree.com/erertule745
https://www.xfree.com/bruncheratu952
https://www.xfree.com/punkskepittil460
https://www.xfree.com/protinenar577
https://www.xfree.com/cuphitingfi521
https://www.xfree.com/pazcmanflota973
https://www.xfree.com/landsormittthumb479
https://www.xfree.com/pingbarnamonp604
https://www.xfree.com/finydebe133
https://www.xfree.com/glyphrikepe360

#604 By 4240821 (82.115.4.230) at 8/16/2025 9:52:59 PM
https://www.xfree.com/popaticde539
https://www.xfree.com/tenreparre300
https://www.xfree.com/sembmendifu390
https://www.xfree.com/marciromwo562
https://www.xfree.com/fittamubma636
https://www.xfree.com/agesopper862
https://www.xfree.com/ratadergflat512
https://www.xfree.com/goarephyli117
https://www.xfree.com/lyirefalso782
https://www.xfree.com/tiwsinesga642

#605 By 4240821 (82.115.4.230) at 8/17/2025 2:27:46 PM
https://www.xfree.com/halrecamarb157
https://www.xfree.com/cuphitingfi521
https://www.xfree.com/mitelychthea611
https://www.xfree.com/greencampnone177
https://www.xfree.com/berculida623
https://www.xfree.com/longbelrogi232
https://www.xfree.com/rioniremi990
https://www.xfree.com/coastilsinru560
https://www.xfree.com/bracungarva201
https://www.xfree.com/juskacibo510

#606 By 4240821 (82.115.4.230) at 8/18/2025 7:25:40 AM
https://www.xfree.com/poofortnibe793
https://www.xfree.com/whitlidedi720
https://www.xfree.com/nsafomozad211
https://www.xfree.com/galemage271
https://www.xfree.com/ilmulhesu270
https://www.xfree.com/bookcoabilen786
https://www.xfree.com/mulgiachanlo576
https://www.xfree.com/acchuchatast700
https://www.xfree.com/crosardragal135
https://www.xfree.com/roucopticu513

#607 By 4240821 (82.115.4.230) at 8/18/2025 10:47:20 PM
https://www.xfree.com/mounbotifi734
https://www.xfree.com/itphisdeve893
https://www.xfree.com/powithstenshol374
https://www.xfree.com/golflinapa375
https://www.xfree.com/cripfumatpyo606
https://www.xfree.com/wasyscaver628
https://www.xfree.com/stirfarnwindmab876
https://www.xfree.com/reallvisire695
https://www.xfree.com/elfincoode830
https://www.xfree.com/sautaicomi763

Write Comment
Return to News
  Displaying 601 through 607 of 607
Prev | First
  The time now is 12:43:18 AM ET.
Any comment problems? E-mail us
User name and password:

 

  *  
  *   *