ESXi

 View Only
Expand all | Collapse all

Increasing VMDK files ESXi 4...

  • 1.  Increasing VMDK files ESXi 4...

    Posted Jun 11, 2011 06:28 PM

    How can i increase un VMDK disk in to a bigger one. I have to install software on one of the VMDK disk but the disk is not big enough and the system hangs when i try to install the application. Is there a way to do that with vSPhere??

    The error message from whitin vSphere is: insufficient disk space on datastore. And the machine is not starting anymore. I know on witch vmdk file it is.

    Please if anyone has an idea...let me know...Eric



  • 2.  RE: Increasing VMDK files ESXi 4...

    Posted Jun 11, 2011 07:31 PM

    Have you tried to power off the VM and then edit the settings of the disk?.

    Regards/Saludos

    Por favor no olvides calificar las respuestas que te resultaron de ayuda o fueron correctas

    Please, don't forget the awarding points for "helpful" and/or "correct" answers.

    ________________________________________
    Nicolás Solop

    VMware vExpert 2010 - VCP 410- VCP 310 - VAC - VTSP

    My company Blog (Wetcom Group Blog)

    Follow me on Twitter

    My Linkedin Profile

    Join to Virtualizacion en Español group in Likedin




  • 3.  RE: Increasing VMDK files ESXi 4...

    Posted Jun 11, 2011 09:02 PM

    Hay  Nicolás Solop,

    I have tried to do that but it didn't work. I cannot change the settings of the disks.

    Eric



  • 4.  RE: Increasing VMDK files ESXi 4...

    Posted Jun 11, 2011 07:36 PM

    I think you'll need to increase it in the VM configuration in vSphere Client.

    R-click on the VM, Go to 'Edit Settings'. On the Hardware Tab go to the virtual hard disk that doesn't have enough space and increase the provisioned size there. Of course, the VM needs to be off for this to take effect and, depending on the OS, you may need to go through extra steps to get the VM to recognize the extra space. For Windows server 2008 all you need to do is extend the drive in disk management.

    For earlier Windows OS's you'll need to use 3rd party software after you have provisioned more space in vSphere. My favorite (and easiest, IMO) is G-parted. Boot the VM from the G-parted disk and in a few clicks you've extended the partition. If G-parted was successful, once you reboot into the OS it will automatically recognize the extra space.

    I'm assuming that it's just the provisioned space for that particular VM that has run out. If you're ESXi datastore has run out of space that's an entirely different problem. If you have multiple datastores you could move the VM. If not, I think you can try and shrink the virtual disks for other VM's and give that space to the one running out. I don't have any experience in shrinking volumes using the VM Tools though. Maybe someone else can offer some more insight on that...



  • 5.  RE: Increasing VMDK files ESXi 4...

    Posted Jun 11, 2011 09:06 PM

    Hay Alceryes

    '

    I have tryed that but i cannot change the provisioned size of that disk. One other disk i can, but it's not the one i need to increase. I am using windows server 2003 Enterprise with windows SQL 2008 server Enterprise. I am trying to restore a 50Gb database into that SQL Server.i have a 130Gb disk with no other data on it. But every time it hangs on the amount of the disks. It say's it's not enough.

    Hopefully you can help me out.

    With kind regards,

    Eric

    The Netherlands



  • 6.  RE: Increasing VMDK files ESXi 4...

    Posted Jun 11, 2011 11:48 PM

    Is the place where you can increase the virtual disk size grayed out? Do you have the extra space on the ESXi datastore?

    Do you have any snapshots of the VM? You can't extend a virtual disk if the VM has snapshots.



  • 7.  RE: Increasing VMDK files ESXi 4...

    Posted Jun 12, 2011 05:32 AM

    Snapshot may block the increase... You have to delete all before.

    Also, if you have IDE disks for vmdk, then there is no way to increase them.

    Andre



  • 8.  RE: Increasing VMDK files ESXi 4...
    Best Answer

    Posted Jun 12, 2011 08:20 AM

    Hello,

    As per your error message "The error message from whitin vSphere is: insufficient disk space on datastore ",  could be datastore is full

    1. As suggested by other experts, please look for snapshots

    2. If snapshots are not occupying space, then go for datastore expansion. Incase, if datastore expansion is not possible, then.

    a. configure VM for memory reservation, so that .vswp(space equivalent to memory) is not created on datastore.

    b. make system drive or any other drives on same datastore as think provison, which doesn't require much space

    Regards,

    Balu.



  • 9.  RE: Increasing VMDK files ESXi 4...

    Posted Jun 12, 2011 08:20 PM

    Hello Balu,

    I'am now trying to remove all snapshots. Then i will try to see of the option to resize the correct VMDK file is availeble. I get beck to when it is done.

    Thanks in advance..

    Eric



  • 10.  RE: Increasing VMDK files ESXi 4...

    Posted Jun 12, 2011 09:50 PM

    Hello Balu,

    I have removed all the the snapshot and it resolved the problem of resizing the disks. And i can power on the virtual machine again.

    After that i have increast the disk that i wanted with 18Gb. Total disk space 150Gb and the free space is now 83Gb.

    Now i am trying to import the database in SQL2008.

    I let you now if it will work.

    Thanks in advance..

    Eric



  • 11.  RE: Increasing VMDK files ESXi 4...

    Posted Jun 13, 2011 08:38 AM

    Good work - once your problem is resolved, please mark the thread as 'answered' - the helps other people searching  the community for answers to identify threads with solutions.



  • 12.  RE: Increasing VMDK files ESXi 4...

    Posted Jun 13, 2011 09:15 AM

    Hello all,

    The solution was to delete any snapshot files, after that i was able to increase the size of the disk that was needed. In the Windows 2003 Server system the noly thing a had to do extra was to increase the disk with the command : "Extend".

    Now i am able to restore the database in SQL2008 with enough space on the disk.

    Thanks for all youre help.

    Eric

    The Netherlands



  • 13.  RE: Increasing VMDK files ESXi 4...

    Posted Jun 14, 2011 05:40 AM

    Please mark the correct post as correct answer, it helps others to find the correct answer.



  • 14.  RE: Increasing VMDK files ESXi 4...

    Posted Jun 14, 2011 06:27 AM

    Hay,

    I did mark the correct answer. I hope i did it the right way. If not then let me know.

    Greetings Eric

    The Netherlands



  • 15.  RE: Increasing VMDK files ESXi 4...

    Posted Jun 12, 2011 08:36 AM

    Please attach the latest vmware.log file from the VM's folder in the datastore. This will show all information needed to find out why the virtual disk cannot be resized. In addition to this tell us how much free disk space you have on the datastore.

    André