VMware Cloud Community
tidustyle
Contributor
Contributor

vdiskmanager for esx server 3.0.1

hello all.

I have one question for the pro of VMWARE

I have one VM with one disk but my disk is to small and i want to increase size of the disk.

i know vmware-vdiskmanager but when i go on my esx i don't have this tools.

So where is it ? or where i can download it and how install it ?

thank you for your response

sorry for my english but i'm french ans i speak very bad in english :s

0 Kudos
13 Replies
oreeh
Immortal
Immortal

The equivalent for vdiskmanager in ESX is vmkfstools.

vmkfstools -X 10G test.vmdk

would resize test.vmdk to 10GB

0 Kudos
admin
Immortal
Immortal

Take a look at the following knowledge base article:

http://kb.vmware.com/kb/994

0 Kudos
wondab
Enthusiast
Enthusiast

You can also use Converter to resize the disk. During an import (V2V) you have the option to resize.

0 Kudos
swiftangelus
Enthusiast
Enthusiast

As oreeh mentioned the vmkfstools option expands disks. One thing to add to this, as you mentioned you VM has one disk, if you are talking about expanding the OS drive you will need to do this by mounting the vmdk file in another VM and use diskpart. Other than that you may find the V2V option handy.

0 Kudos
tidustyle
Contributor
Contributor

ok thank you i use now vmkfstools but i have one error :

# vmkfstools -X 8000M /vmfs/volumes/storage1/2K3-1/2K3-1.vmdk

Failed to extend disk : One of the parameters supplied is invalid. (1)

i don't understand where is my parameters invalid . . .

0 Kudos
danpalacios
Hot Shot
Hot Shot

Could be the space in "storage 1". try putting the whole command in quotes or navigate to that folder and run the command from there. You can check out this thread for more info on enlarging the disk. http://communities.vmware.com/message/702555#702555

Also, whenever you enlarge a disk MAKE SURE THERE ARE NO SNAPSHOTS. Have seen more than one VM corrupted by resizing a VM disk before snapshots are committed/removed

0 Kudos
oreeh
Immortal
Immortal

MAKE SURE THERE ARE NO SNAPSHOTS.

Good point!

0 Kudos
oreeh
Immortal
Immortal

Is the path and the VMDK file name correct?

0 Kudos
tidustyle
Contributor
Contributor

i have two disks.

10go and 100go.

i shutdown my VM and after i do the vmkftools but i don't have a snapshot on this VM.

i have two file for one disk

2K3-1.vmdk / 2K3-1-flat.vmdk

2K3-1_1.vmdk / 2K3-1_1-flat.vmdk

and help me plz

0 Kudos
oreeh
Immortal
Immortal

If you want to expand a 10GB VMDK to 18GB you have to specify 18G as the desired size!

0 Kudos
danpalacios
Hot Shot
Hot Shot

you would only resize the vmdk and not the -flat.vmdk. so you would want to use the vmkfstools -X G .vmdk format

0 Kudos
tidustyle
Contributor
Contributor

it's ok . . .

if the disk has 15go i do write

vmkfstools -X 30go ==> to increase 15go

but now i want to decrease the size of my VM :s

0 Kudos
oreeh
Immortal
Immortal

You can't decrease VMDKs.

If you want to decrease a VM use VMware Converter or an imaging tool

0 Kudos