VMWare ESXi Thick Provisioned Diski Thin Provisioned Diske çevirme

Linux Yazıları27/05/2016


VMWare ESXi  kurulu makinede Thick Provisioned olarak kurulu olan bir disk Thin Provisioned olarak çevirmek istediğimizde...

# ssh root@192.168.1.150
Password: *******
The time and date of this login have been sent to the system logs.

VMware offers supported, powerful system administration tools.  Please
see www.vmware.com/go/sysadmintools for details.

The ESXi Shell can be disabled by an administrative user. See the
vSphere Security documentation for more information.
# cd /vmfs/volumes/datastore1/B2BServer/
# ls -all
total 4637728
drwxr-xr-x    1 root     root          2660 May 27 09:21 .
drwxr-xr-t    1 root     root          2380 Mar  9  2015 ..
-rw-------    1 root     root     1073741824 May 27 09:02 XpPro-919daac9.vswp
-rw-------    1 root     root     8589934592 May 27 14:16 XpPro-flat.vmdk
-rw-------    1 root     root           541 May 27 09:02 XpPro.vmdk
-rw-------    1 root     root          8684 May 27 09:03 XpPro.nvram
-rw-r--r--    1 root     root             0 Mar 12  2012 XpPro.vmsd
-rwxr-xr-x    1 root     root          2708 May 27 09:02 XpPro.vmx
-rw-------    1 root     root             0 May 27 09:02 XpPro.vmx.lck
-rw-r--r--    1 root     root          4720 Dec 29 15:42 XpPro.vmxf
-rwxr-xr-x    1 root     root          2706 May 27 09:02 XpPro.vmx~
-rw-r--r--    1 root     root        193195 Jan 18  2015 vmware-41.log
-rw-r--r--    1 root     root        146101 Aug 17  2015 vmware-42.log
-rw-r--r--    1 root     root        128231 Dec 29 14:59 vmware-43.log
-rw-r--r--    1 root     root        318036 Feb 22 14:07 vmware-44.log
-rw-r--r--    1 root     root        140534 Apr  4 14:12 vmware-45.log
-rw-r--r--    1 root     root        263627 May 27 08:48 vmware-46.log
-rw-r--r--    1 root     root        141474 May 27 10:58 vmware.log
# vmkfstools -i XpPro.vmdk -d thin XpPro-thin.vmdk
Destination disk format: VMFS thin-provisioned
Cloning disk 'XpPro.vmdk'...
Clone: 21% done.

Convert işlemi tamamlandıktan sonra eski dosyayı gönül rahatlığıyla silip, yeni dosyayı eski dosyanın ismine çevirebilirsiniz...

# rm XpPro.vmdk
# mv XpPro-thin.vmk XpPro.vmdk