Book Image

PowerCLI Cookbook

By : Philip Brandon Sellers
Book Image

PowerCLI Cookbook

By: Philip Brandon Sellers

Overview of this book

Table of Contents (19 chapters)
PowerCLI Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Converting thin to thick disks with Storage vMotion


In the previous recipe, you explored how to identify virtual disks that are thin provisioned in vSphere. In this recipe, you will take that concept further. You will take the virtual machines identified as thin provisioned and create PowerCLI cmdlets to convert these using Storage vMotion.

As with all of the capabilities, there are occasions when you need to transition from a thick provisioned disk to a thin provisioned disk, or vice versa. VMware Fault Tolerance requires VMs to have thick provisioned disks. For instance, in this recipe, you'll examine how to convert disks from one disk type to another.

As a part of the conversion, you will be faced with a choice of two types of thick provisioned disks. The two choices are Eager Zero and Lazy Zero thick provisioned disks. Lazy Zero is the default flat file format of VMDK that has always existed in vSphere. Eager Zero is a new type of thick provisioned file that zeroes out the disk area for...