Increasing the local datastore on the installation disk is not possible through the GUI and might not be supported. At http://deinoscloud.wordpress.com/2010/05/03/how-to-increase-the-size-of-a-local-datastore-on-an-esxi... you can find a walkthrough on how to grow the local datastore on ESXi 4.x With ESXi 5.0 you will need to use "partedUtil resize ..." instead of fdisk (delete an recreate the partition) to modify the partition size though.
For how to use partedUtil, see e.g. http://kb.vmware.com/kb/1036609
If you are unsure, please post the output of
partedUtil getptbl "/vmfs/devices/disks/<DeviceName>"
André
Increasing the local datastore on the installation disk is not possible through the GUI and might not be supported. At http://deinoscloud.wordpress.com/2010/05/03/how-to-increase-the-size-of-a-local-datastore-on-an-esxi... you can find a walkthrough on how to grow the local datastore on ESXi 4.x With ESXi 5.0 you will need to use "partedUtil resize ..." instead of fdisk (delete an recreate the partition) to modify the partition size though.
For how to use partedUtil, see e.g. http://kb.vmware.com/kb/1036609
If you are unsure, please post the output of
partedUtil getptbl "/vmfs/devices/disks/<DeviceName>"
André
Hi,
Cheers
Freez3
... and lose all the data on it, right?
No, the steps in the article describe how to resize/grow the VMFS datastore without loosing data. However, I'd recommend you backup the VM's in case something does not work as expected.
André
Hi again,
this is the output
~ # partedUtil getptbl "/vmfs/devices/disks/mpx.vmhba1:C0:T0:L0"
gpt
53535 255 63 860050224
1 64 8191 C12A7328F81F11D2BA4B00A0C93EC93B systemPartition 128
5 8224 520191 EBD0A0A2B9E5443387C068B6B72699C7 linuxNative 0
6 520224 1032191 EBD0A0A2B9E5443387C068B6B72699C7 linuxNative 0
7 1032224 1257471 9D27538040AD11DBBF97000C2911D1B8 vmkDiagnostic 0
8 1257504 1843199 EBD0A0A2B9E5443387C068B6B72699C7 linuxNative 0
2 1843200 10229759 EBD0A0A2B9E5443387C068B6B72699C7 linuxNative 0
3 10229760 573367566 AA31E02A400F11DB9590000C2911D1B8 vmfs 0
~ # partedUtil get "/vmfs/devices/disks/mpx.vmhba1:C0:T0:L0"
53535 255 63 860050224
1 64 8191 0 128
5 8224 520191 0 0
6 520224 1032191 0 0
7 1032224 1257471 0 0
8 1257504 1843199 0 0
2 1843200 10229759 0 0
3 10229760 573367566 0 0
I think the resize command should look like this
partedUtil resize "/vmfs/devices/disks/mpx.vmhba1:C0:T0:L0" 3 10229760 860050224
but I'm not sure with the new ending sector.
After the resize will be done, do had to do something further?
Thanks for your help
Cheers
Freez3
The end sector for the resize command should be "numsectors minus 1" (see e.g. Step 7 at http://kb.vmware.com/kb/2002461)
After resizing the partition you will need to grow the VMFS datastore using the "vmkfstools --grow ..." command as shown in the KB as well as in the walkthrough I linked to before.
Again, I didn't try this myself yet, so please backup any data before doing this!
André
Hi,
Yes, I have a backup 😉
tried to reboot, but it still not works,
I cannot find my fail in here?
Cheers
Freez3
Hi again,
this time it works with steps, but can't see the difference in it?
have a look:
Thank you very much, it finaly works without any issue as the Walkthrow was telling!
Cheers
Freez3
Well, Bits&Bytes sometimes have their own lives
Glad you got it solved and thanks for the feedback.
André
Thank you so much,
you helped me to save so many time 😉
Cheers
Freez3
Great directions. Worked for me running ESXI 5.
I had to expend it little by little (just like above) until I used up all the free space, otherwise I got the same error.
Mike
hi, I came across your post today and just wanted to add in some additional notes that will hopefully come in usefull.
Within vCenter I was not able to extend the LUN, even though I could see the additional space available.
The work around, was to use the vSphere client to connect directly to a host, login, go to storage, and increase the datastore from there.
Nope - the Gods obviously hate me today as this didn't work for me. If only!
The problem which is discussed in this thread came's along with
having the ESXi Installation and the Datastore on the same physical or logical Disk.
In this special situation it is not possible to expand the Data Store
in the VSphere GUI if Client or Server doesn't matter.
This post is great, I've successfully resized my partition.
The problem I'm having is that when I try to run the vmkfstool --growfs I get the following error:
I've triple checked it and the partiton filename is correct. Anyone also got this issue?
try full path after the command
vmkfstools --growfs vmfs/devices/disks/mpx.vmhba3\:C0\:T0\:L0\:3 vmfs/devices/disks/mpx.vmhba3\:C0\:T0\:L0\:3
Perfect, Thanks. This worked perfectly for me.
I could not resize the disk through Virtual Center even though I could see the space there. Once I connected the vSphere Client straight to the host it worked perfectly.
Cheers