Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Hey everyone, after posting another question here, it seems I have to create a fixed disk in order to get one 700GB.

I have shut down the machine (which basically has nothing on it), and gone to convert to a fixed disk. It is going EXTREMELY slow - if my calculations are correct at the rate its going it will take ~2 days to complete. Its been going for about 6 hours and its about 10% complete. I'd like to continue setting up my server and start using all of the space.

Is this normal? How can I speed this up???

Thank you,

share|improve this question

1 Answer 1

up vote 9 down vote accepted

By default, when you create a VHD, the creation process zeros out the data as it builds the file.

MS released a tool to create VHD's very quickly which bypasses the zero out process.

Example

To create a 100 GB VHD, use something like:

.\VhdTool.exe /create '.\Virtual Hard Disks\SRV-EXCHANGE_Backup.vhd' 107374182400

It will take only seconds to complete.

Output

PS C:\VMStorage> .\VhdTool.exe /create '.\Virtual Hard Disks\SRV-EXCHANGE_Backup.vhd' 107374182400
        Status: Creating new fixed format VHD with name ".\Virtual Hard Disks\SRV-EXCHANGE_Backup.vhd"
        Status: Attempting to create file ".\Virtual Hard Disks\SRV-EXCHANGE_Backup.vhd"
        Status: Created file ".\Virtual Hard Disks\SRV-EXCHANGE_Backup.vhd"
        Status: Set the file length
        Status: Set the valid data length
        Status: VHD footer generated
        Status: VHD footer written to file.
        Status: VHD header area cleared.
        Status: Complete
PS C:\VMStorage>
share|improve this answer
    
To add to Andy's response, the blog entry Why does it take so long to create a fixed size virtual hard disk? by the Virtual PC Guy, provides some background explanation as to why it takes so long to create a fixed VHD. The reason why this takes so long is that when we create a new fixed-size virtual hard disk we take the time to explicitly zero-out all of the disk space that is being assigned to the new file. –  Reuben Sep 7 '09 at 5:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.