Storage vMotion

Jump to solution

If I kick off a storage vmotion with

get-vm | move-vm -datastore destination_datastore

will it by default attempt to storage vmotion more than one vm at time and how do I make it wait until the first one is done before starting the second storage vmotion?

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership

There is a system limit on the number of parallel svMotions (see Limits on Simultaneous Migrations).

Normally the Move-VM cmdlet will wait till the svMotion is completed.

That means the svMotions will be done one by one, in sequence.

If you use the RunAsync switch, the cmdlet will return immediately, and the svMotion task will be performed in the background.

And the number of active svMotions will be determined by the limits mentioned above.

You can find out the status of tasks with the Get-Task cmdlet.

You can also wait for one or more background tasks with the Wait-Task cmdlet.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
2 Replies
LucD
Leadership
Leadership

There is a system limit on the number of parallel svMotions (see Limits on Simultaneous Migrations).

Normally the Move-VM cmdlet will wait till the svMotion is completed.

That means the svMotions will be done one by one, in sequence.

If you use the RunAsync switch, the cmdlet will return immediately, and the svMotion task will be performed in the background.

And the number of active svMotions will be determined by the limits mentioned above.

You can find out the status of tasks with the Get-Task cmdlet.

You can also wait for one or more background tasks with the Wait-Task cmdlet.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos

ok thanks again

0 Kudos