VMware Cloud Community
malabelle
Enthusiast
Enthusiast
Jump to solution

vsphere 4: svmotion command line of only one vmdk

Hi,

I cant find a way to do that.

Let say I have one VM with 5 vmdk

I want to be able to move one of the 5 vmdk to another datastore

In the past there was a svmotion.pl but I don't find it anymore...

Any ideas?

vExpert '16, VCAP-DCA, VCAP-DCD
0 Kudos
1 Solution

Accepted Solutions
RvdNieuwendijk
Leadership
Leadership
Jump to solution

svmotion.pl is part of the VMware vSphere CLI. That is a different product than VMware vSphere PowerCLI. If you open VMware vSphere CLI you will find svmotion.pl in the bin directory.

Regards, Robert

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

View solution in original post

0 Kudos
2 Replies
RvdNieuwendijk
Leadership
Leadership
Jump to solution

svmotion.pl is part of the VMware vSphere CLI. That is a different product than VMware vSphere PowerCLI. If you open VMware vSphere CLI you will find svmotion.pl in the bin directory.

Regards, Robert

Blog: https://rvdnieuwendijk.com/ | Twitter: @rvdnieuwendijk | Author of: https://www.packtpub.com/virtualization-and-cloud/learning-powercli-second-edition
0 Kudos
mattboren
Expert
Expert
Jump to solution

Hello, malabelle-

Like RvdNieuwendijk said, "svmotion.pl" is part of the VMware vSphere CLI.  But, if you wanted to move one of a VM's disks via PowerCLI, you could do something like:

## sVMotion harddisk "Hard Disk 2" to a different datastore 
Get-VM someVM | Get-HardDisk | ?{$_.Name -eq "Hard Disk 2"} | Set-HardDisk -Datastore someOtherDatastore

Enjoy