VMware Cloud Community
JB_Montreal
Contributor
Contributor

Extend ESX OS partition size ?

Hello,

I need to increase the partition size of an ESX installation, unfortunately the rest of the space available on this partition has been used to create a datastore.

Ex: ESX os : 5 GB, Datastore : 120GB

I guess I will have to delete the datastore ? but I am still wondering if it's possible to increase the ESX os partition size ?

Thanks for your help Smiley Happy

JB

0 Kudos
3 Replies
karo9pare
Contributor
Contributor

fdisk -l

Disk /dev/sda: 53.6 GB, ...

...

Disk /dev/sdc: 36.4 GB, 36401315840 bytes

64 heads, 32 sectors/track, 34715 cylinders

Units = cylinders of 2048 * 512 = 1048576 bytes

Device Boot Start End Blocks Id System

/dev/sdc1 * 1 100 102384 83 Linux

/dev/sdc2 101 2100 2048000 83 Linux

/dev/sdc3 2101 4100 2048000 82 Linux swap

...

/dev/sdc9 20101 34615 14863344 fb Unknown

Effacer une partition (Suppose your the partition to delete is /dev/sdc)

fdisk /dev/sdc

To build and mount a Console OS ("ext3") file system in that partition:

1. Build a basic ("ext2") Linux file system in the new partition with this command:

mke2fs /dev/sdc9

2. Convert the file system to a journaled ("ext3") file system with this command:

tune2fs -j /dev/sdc9

3. Make an empty directory on which to mount the new file system:

mkdir /usr2

4. Mount the new file system:

mount -t ext3 /dev/sdc9 /usr2

5. Edit /etc/fstab; add a line for /extra so that it is remounted upon reboot:

/dev/sdc9 /usr2 ext3 defaults 1 4

0 Kudos
JB_Montreal
Contributor
Contributor

Thanks for the info, I will try this Smiley Happy

0 Kudos
drdemonx
Contributor
Contributor

Hello,

I have two partitions both are the same - clones of each other - both running Centos4x

My ESX version is 2.5.4

I went through the process to expand their partitions using the following command:

vmkfstools -X 15g /vmfs/vmhba0:0:0:6/New server.vmdk

(they used to be 10gb in size).

Now when I power on the servers in Virtual Center I get an error:

"A general system error occured: operation failed to change the VM to the expected power state"

What do I need to do to get them to boot?

Thanks!

Mike

0 Kudos