Expanding Image Disk
Size and Partitioning on ESX hosts.
The following instructions must be performed in a staging
environment.
Expanding
an image's disk.
-- Shutdown the
image
-- Commit the image
-- Run vmkfstools -X 40G --force data:filename.vmdk
(where 40G is the size of the partition you want to expand to.)
-- Attach
partitioning software of choice and make sure the CMOS settings allow you to
boot to a CD/DVD.
-- Power up and run
partitioning software increasing the partition size.
-- Reboot once.
-- Shutdown the
image after reboot
-- Commit the image.
Adding
a partition to an image.
-- Shutdown the
image
-- Commit the image
-- Let's say you
have an image with a 15 GB disk and want to add a second partition that is 25
GB, you would run
vmkfstools -X 40G --force
data:filename.vmdk.
-- Attach partitioning software of choice and
make sure the CMOS settings allow you to boot to a CD/DVD.
-- Power up and run
partitioning software increasing the partition size.
-- Reboot once.
-- Shutdown the
image after reboot
-- Commit the image.