VMware Cloud Community
Bourdo
Contributor
Contributor

How to cut an existing vmdk into 2 gig size?

Hi

I have an existing 20gig vmdk image and need to cut it down into 2gig file size ie 10x2gig

How can I do this?

Nick

0 Kudos
2 Replies
Erik_Zandboer
Expert
Expert

Hi,

Try this:

vmkfstools -i /vmfs/volumes/local-esx1/dc1/dc1.vmdk -d 2gbsparse /vmimages/dc1.vmdk

This should make a clone of "dc1.vmdk" and vonvert the target to 2GB files (in sparse format thus compressing all empty space out of it)

To get your original dc1.vmdk back, repeat the process without the -d 2gbsparse option.

Visit my blog at http://www.vmdamentals.com
0 Kudos
cemetric
Enthusiast
Enthusiast

You could use the "vmkfstools -i (SourceDisk) -d 2gbsparse (Destination)

This way the disk is cloned to a new disk with the 2gbsparse option (meaning the disk is split up into 2Gb files) ... (edit) I think I'll need to type faster Smiley Happy

C.

0 Kudos