VMware Cloud Community
TheVMinator
Expert
Expert
Jump to solution

storage vmotion a vm on multiple datastores

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?

Reply
0 Kudos
1 Solution

Accepted Solutions
RvdNieuwendijk
Leadership
Leadership
Jump to solution

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
Jump to solution

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
TheVMinator
Expert
Expert
Jump to solution

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

Reply
0 Kudos
RvdNieuwendijk
Leadership
Leadership
Jump to solution

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
TheVMinator
Expert
Expert
Jump to solution

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

Reply
0 Kudos