Compartir a través de


How to resize a partition in VHD?

SCVMM 2008 R2 & SCVMM 2012 無法在 P2V 的精靈設定過程中將 Partition Size 縮小。
詳細說明請參考
P2V: Converting Physical Computers to Virtual Machines in VMM where it states “It is not possible to shrink the size of a disk.”
https://technet.microsoft.com/en-us/library/cc764232.aspx

但是您可以採用以下方式縮小 Partition Size:
- 將 Disk2VHD 產生出來後的 VHD mount 到 Windows 2008/R2 系統
- 執行 Defrag 壓縮 (Defrag X: /U /V /X)
- 再從 Windows Server 2008 Disk Management Console (diskmgmt.msc) 去把 C Drive 的 Partition 縮小 (Shrink Volume)

 

其它參考文件
Hyper-V How To: Shrink a VHD File
https://blogs.technet.com/b/tonyso/archive/2008/10/09/hyper-v-how-to-shrink-a-vhd-file.aspx
VHD Resizer
https://vmtoolkit.com/files/folders/converters/entry87.aspx