VMware Cloud Community
tanguoz
Contributor
Contributor

I modified the virtual disk volume larger,now,how to modified back ?

I modified the virtual disk volume larger,now,how to modified back ?

Reply
0 Kudos
3 Replies
linotelera
Hot Shot
Hot Shot

Hi and welcome

How do you mean modified?Do you mean increased vmdk size?

Reply
0 Kudos
tanguoz
Contributor
Contributor

yes,i increased the vmdk size ,now i want to modified the size to former.

Reply
0 Kudos
linotelera
Hot Shot
Hot Shot

In general disks grow is a non-distructive process that could expand capacity when disk is online or offline. The reduction process is a distructive operation that could not be executed online and requires other processes like clone data or copy.

If you need to reduce the vmdk, the hard but "pure old" operation is:

1. add new vmkd with the original size

2. boot your VM with a bootable linux distro like Clonezilla

3. copy data from vmdk1 to vmdk2 (obviously format vmdk2 with the same type of vmdk1)

4. remove vmdk1 and reassign vmdk2 scsi position or modify bootloader with the new scsi target

In all cases this procedure is critical and distructive... pay attention!


There are also other ways to do that:

1. v2v conversion: use converter and resize new VM with with the original size

2. Use thin provisioning and remember to shrink with vmkfstools... this is virually reduction, because OS see the extended size.


I suggest this link: http://searchvmware.techtarget.com/feature/VMware-VMDK-shrink-and-storage-thin-provisioning-101

Hope this could be helpful


Regards

Lino

Reply
0 Kudos