storage vmotion a vm on multiple datastores

Jump to solution

I have a storage vmotion that I attempted but it did not move all disks to the datastore I specified.   If a VM has disks spread among multiple datastores - should the move-vm cmdlet move ALL disks to the datastore I specify with the -datastore parameter?

0 Kudos
1 Solution

Accepted Solutions
RvdNieuwendijk
Leadership
Leadership

If you specify a datastore as the value of the Move-VM -Datastore parameter, the cmdlet should move all of the disks of the VM to the datastore specified.

Blog: https://rvdnieuwendijk.com/ | Twitter: @rvdnieuwendijk | Author of: https://www.packtpub.com/virtualization-and-cloud/learning-powercli-second-edition

View solution in original post

4 Replies
RvdNieuwendijk
Leadership
Leadership

If you specify a datastore as the value of the Move-VM -Datastore parameter, the cmdlet should move all of the disks of the VM to the datastore specified.

Blog: https://rvdnieuwendijk.com/ | Twitter: @rvdnieuwendijk | Author of: https://www.packtpub.com/virtualization-and-cloud/learning-powercli-second-edition

ok thanks - and if it doesn't ?  what could have happened?

0 Kudos
RvdNieuwendijk
Leadership
Leadership

Maybe the destination datastore had not enough free space for all disks of the virtual machine?

Blog: https://rvdnieuwendijk.com/ | Twitter: @rvdnieuwendijk | Author of: https://www.packtpub.com/virtualization-and-cloud/learning-powercli-second-edition

think it was a swap file pinned to a special datastore - thanks for the input.

0 Kudos