Performing Storage vMotion

One of the most common things you might need to do with your datastores is to relocate a virtual machine from one datastore to another using Storage vMotion. It allows administrators to rebalance storage utilization across datastores. It also allows administrators to completely vacate a datastore for maintenance or migration. Storage vMotion allows you to nondisruptively move a virtual machine between datastores and borrows its name from vMotion, which allows a VM to relocate from host to host, while the VM remains online.

Getting ready

To begin this recipe, you will need to open a PowerCLI window, connect to a vCenter server, and have a running virtual machine with at least two datastores connected to the host.

How to ...

Get PowerCLI Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.