VMware Cloud Community
hazoom
Contributor
Contributor

Storage migration and convert disk type powercli script

I'm looking for script to perform Storage Vmotion a given VM from a standalone datastore to
Datastore Storage Cluster by converting disk type from Thin to Thick (Lazy Zeroed)

Tags (1)
Reply
0 Kudos
3 Replies
LucD
Leadership
Leadership

What do you already have and where did you get stuck?


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

Reply
0 Kudos
koshary
Contributor
Contributor

$VM = get-vm testvm
$destDS = get-datastore vsandatastore
$disktype = ?

Move-VM $VM -Datastore $destDS -DiskStorageFormat 

I'm confused what the variable diskype should be? 

I've tried the below but it doesnt work 

Move-VM $VM -Datastore $destDS -DiskStorageFormat Thick

Reply
0 Kudos
LucD
Leadership
Leadership

On the Move-VM help page it says that the DiskStorageFormat parameter accepts Thin, Thick, and EagerZeroedThick values.


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

Reply
0 Kudos