With vSphere 4, thin provisioning was supported at virtual disk level through vCenter GUI. With thin provisioning, networked storage space utilization is improved because of dynamic allocation of storage to the virtual machines. vSphere has built in capabilities to provision, manage and monitor thin provision storage to virtual machines
Thin Provisioning Tips & Tricks :
- Monitoring the datastore space utilization is very critical to prevent running out of space by overcommitment. Leverage vSphere Datastore alarms like "Datastore usage on disks" and "Datastore disk overallocation %" to trigger alerts
- Take virtual disk size, snapshots, swap and other files into consideration while planning for storage space for datastores and not just virtual disk size
- Avoid running guest OS disk defragmentation programs on a virtual disk which is thin provisioned as it might inflate the disk. Using storage vMotion using thin option will defragment the virtual disk
- Use storage vMotion to convert a existing thick virtual disk to thin
- Use thin/virtual provisioning at storage array also if it supports for better efficiency
- Enable alerts on the storage array to monitor the utilization of thin filesystem/LUN
- As deleting data inside the virtual disks cannot claim the space back, storage vMotion using thin option can be used to make the disk thin again.
- VMware FT cannot be used with thin provisioned virtual disks. Enabling FT will make the virtual disks thick
- Avoid using thin virtual disks for applications in guest os which zeroes out the space before actually writing into it
Different virtual disk formats :
Thin - vmkernel allocates space only before an I/O is committed. Virtual disk size will be equal to the utilized size and will grow till the user specified size
Zeroed Thick - vmkernel zeroes out the required free space only before an I/O occurs. Virtual disk size will be equal to the user specified size during virtual disk creation
EagerZeroed Thick - vmkernel zeroes all the free space during the creation of virtual disk. Virtual disk size will be equal to the user specified size during virtual disk creation
VMs having virtual disk with thick formats can be converted to thin format using storage vMotion in vSphere
Great Thin provisioning resources :
Vivek-
Great posts...do you think many are tenative to use thin provisioning due to the extra layer of management it requires? Thanks. Pete
Posted by: Pete Weinlein | October 07, 2009 at 01:10 AM
Hi Pete,
Thanks. Yes, it requires additional management effort but integrated vCenter storage plugins & tools should help monitoring in a better way.
Posted by: Vivek | October 08, 2009 at 11:57 PM
Monitoring is one thing. But the HUGE advantage as far as I can tell is that you can specify a hard-disk size in excess of what you require. Using thick provisioning was always a bit of a gamble in specifying the likely size. In fact, the likelihood is that you underspecify and create issues further down the road. Give every VM double what you expect and you wont go far wrong. The rogues can quickly be identified and dealt with. Much better than a redeploy due to lack of disk space!
Posted by: Nucleartool | October 22, 2009 at 01:50 AM
Avoid using thin virtual disks for applications in guest os which zeroes out the space before actually writing into it
Posted by: Supra Shoes | November 03, 2010 at 11:22 AM
It requires additional management effort but integrated vCenter storage plugins & tools should help monitoring in a better way.
Posted by: ClubPenguinCheats | May 23, 2011 at 02:04 PM