+ Post New Thread
Results 1 to 6 of 6
Windows Server 2008 R2 Thread, expand VHD strange failure in Technical; I had a 1500GB VHD that i have expanded by shutting down the VM and then in the host changing ...
  1. #1

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,510
    Thank Post
    1,319
    Thanked 469 Times in 306 Posts
    Blog Entries
    6
    Rep Power
    199

    expand VHD strange failure

    I had a 1500GB VHD that i have expanded by shutting down the VM and then in the host changing it to 2000GB. (it said max was 2040, im assuming the MBR limit, so i chose a little less than that)

    Once i rebooted the guest I could see the extra 500GB partition. So I did the usual right click, expand partition to use the new free space.

    However it then gave a strange error:

    Code:
    Log Name:      System
    Source:        VDS Basic Provider
    Date:          24/11/2012 11:31:40 PM
    Event ID:      1
    Task Category: None
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      fileserver1
    Description:
    Unexpected failure. Error code: 490@01010004
    It shows up in Computer Management Storage as a 2000GB drive

    However in Computer the drive still shows as a 1500gb drive. IVe ran scandisk in windows and it reports no errors and the capacity as 1500gb.

    This is strange, and its the main staff fileserver too so need to sort it ASAP ...

    Is there something stupid Ive missed?

  2. #2

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,510
    Thank Post
    1,319
    Thanked 469 Times in 306 Posts
    Blog Entries
    6
    Rep Power
    199
    also on the LUN its on in the SAN there is plenty of space on the LUN.

  3. #3

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,510
    Thank Post
    1,319
    Thanked 469 Times in 306 Posts
    Blog Entries
    6
    Rep Power
    199
    bumped for the GMT folk

  4. #4

    Join Date
    Nov 2010
    Location
    leeds
    Posts
    30
    Thank Post
    2
    Thanked 7 Times in 5 Posts
    Rep Power
    9
    Another way to do it
    Shut down server ‘A’ (the server who’s vhd you want to extend)

    Attach this shutdown server ‘A’ vhd to another server ‘B’ as an additional drive (using hyper v manager)

    Fire up the server ‘B’ that now has the server A as an additional drive

    Check computer management\ disk management to see if the disk is visible

    Open a cmd prompt
    Type diskpart
    Type List disk
    NOW select the relevant disk, you should be able to tell by the size

    Eg type select disk=2

    Type list partition

    Select partition=1
    Type extend

    Type exit


    Now within disk management you should see all the disk space allocated

    Shutdown server ‘B’

    Remove server ‘A’ as an additional disk and reattach it to original server in hyper v manager

    Start server and all should be OK

    Drop me a PM tomoz if it doesn’t work and I’ll help you out

  5. Thanks to DellOughta from:

    RabbieBurns (29th November 2012)

  6. #5

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,510
    Thank Post
    1,319
    Thanked 469 Times in 306 Posts
    Blog Entries
    6
    Rep Power
    199
    thanks for the reply, great idea. Havent had a chance to do any of it yet as it will require out of hours work and I wont get a chance till Saturday or Sunday. Will let you know how it goes.

  7. #6

    Join Date
    Nov 2010
    Location
    leeds
    Posts
    30
    Thank Post
    2
    Thanked 7 Times in 5 Posts
    Rep Power
    9
    This does work, we use this method on our older w2k3 hyperV guest (.vhd) servers as you cannot expand the system disk, basically just add it as a additonal disk to another hyperV server and run the cmds and hey presto all sorted

    Mike

SHARE:
+ Post New Thread

Similar Threads

  1. Strange win 2k error - failure to logon.
    By Domino in forum Wireless Networks
    Replies: 2
    Last Post: 5th July 2007, 01:36 PM
  2. Strange HD Problem on Debian machine
    By crc-ict in forum *nix
    Replies: 5
    Last Post: 27th January 2006, 08:43 PM
  3. IDE HDD boot sector failure
    By e_g_r in forum Hardware
    Replies: 1
    Last Post: 23rd November 2005, 10:03 AM
  4. Replies: 11
    Last Post: 27th September 2005, 12:30 AM
  5. Strange Network Problem this Morning
    By Roger in forum Windows
    Replies: 2
    Last Post: 12th September 2005, 11:01 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •