VMware Cloud Community
EdWilts
Expert
Expert
Jump to solution

PowerCLI and Datastore clusters?

Any guesses as to when PowerCLI will support datastore clusters?  It's a bit of pain right now to do large quanties of storage vMotions (we've got a ton of migrations to do).

.../Ed (VCP4, VCP5)
Reply
0 Kudos
1 Solution

Accepted Solutions
alanrenouf
VMware Employee
VMware Employee
Jump to solution

Whilts I can give no time line as to when we will be releasing I can confirm that we are looking at datastore clusters for a future version.

Luc has some nice functions here to do some Data store cluster functions already... http://www.lucd.info/2011/12/11/vsphere-5-top-10-storage-drs/

Blog: http://virtu-al.net Twitter: http://twitter.com/alanrenouf Co-author of the PowerCLI Book: http://powerclibook.com

View solution in original post

Reply
0 Kudos
11 Replies
alanrenouf
VMware Employee
VMware Employee
Jump to solution

Whilts I can give no time line as to when we will be releasing I can confirm that we are looking at datastore clusters for a future version.

Luc has some nice functions here to do some Data store cluster functions already... http://www.lucd.info/2011/12/11/vsphere-5-top-10-storage-drs/

Blog: http://virtu-al.net Twitter: http://twitter.com/alanrenouf Co-author of the PowerCLI Book: http://powerclibook.com
Reply
0 Kudos
EdWilts
Expert
Expert
Jump to solution

Thanks Alan.  I see that the scripts manipulate the datastore clusters but what I'm really looking for a script that lets me do the equivalent of a move-vm to a datastore cluster.  LucD has created scripts for stuff that isn't hard to do manually (create/manipulate a ds cluster) but the day-to-day stuff is what I'm trying to automate.   Any workarounds or scripts you can recommend until the new version of PowerCLI comes out?  I've got hundreds of VMs to move...

.../Ed (VCP4, VCP5)
Reply
0 Kudos
alanrenouf
VMware Employee
VMware Employee
Jump to solution

Sorry I am not aware of a way to do this at the moment, I will double check though.

Blog: http://virtu-al.net Twitter: http://twitter.com/alanrenouf Co-author of the PowerCLI Book: http://powerclibook.com
Reply
0 Kudos
aerodevil
Hot Shot
Hot Shot
Jump to solution

Have you checked out this post?

http://communities.vmware.com/message/1990303#1990303

Conrad (crad14) has some impressive logic he's using in his Upgrade Datastore script.

Josh Atwell @Josh_Atwell http://www.vtesseract.com http://github.com/joshatwell/
EdWilts
Expert
Expert
Jump to solution

Conrad (crad14) has some impressive logic he's using in his Upgrade Datastore script.

That is nice to throttle based on latency (and with EXSi 5 we can now get NFS latencies) but it doesn't move the VMs to a datastore cluster.  Still searching for a way to simplify that...

.../Ed (VCP4, VCP5)
Reply
0 Kudos
alanrenouf
VMware Employee
VMware Employee
Jump to solution

I just took a look at this and it looks like so long as you move your VM to a datastore which is part of a DRS cluster it will show up in vCenter as being part of that datastore cluster and ruless will be applied.

Blog: http://virtu-al.net Twitter: http://twitter.com/alanrenouf Co-author of the PowerCLI Book: http://powerclibook.com
EdWilts
Expert
Expert
Jump to solution

I just took a look at this and it looks like so long as you move your VM to a datastore which is part of a DRS cluster it will show up in vCenter as being part of that datastore cluster and ruless will be applied.

That's what I'm doing now.  It means that I have to do a one-to-match for source to destination datastore though which is sort of OK if all the datastores are the same size and already evenly balanced for space and workload.  This defeats the beauty of initial placement of VMs that sDRS gives you though and may result in a double-move once the recommendations are calculated and applied.

.../Ed (VCP4, VCP5)
Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

I got the same question on my blog post, and I'm afraid it is not possible yet.

My reply: "@Jonathan, the current PowerCLI build (5.0.1) only supports Datastore Clusters on the New-VM and the New-Harddisk cmdlets.
But I suspect that is a vSphere limitation, the RelocateVM_Task method also doesn't seem to support a Storage Cluster (yet).
"


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

Reply
0 Kudos
alanrenouf
VMware Employee
VMware Employee
Jump to solution

Yeah AFAIK there is no way at the moment to use the inital placement feature on a SvMotion so you would need to do some initial placement testing in the script yourslef and hope for the best until the cmdlets are available for this.

Blog: http://virtu-al.net Twitter: http://twitter.com/alanrenouf Co-author of the PowerCLI Book: http://powerclibook.com
Reply
0 Kudos
EdWilts
Expert
Expert
Jump to solution

Thanks...  I'll try to be patient and wait for this to implemented in PowerCLI.

.../Ed (VCP4, VCP5)
Reply
0 Kudos
CRad14
Hot Shot
Hot Shot
Jump to solution

Have you looked at my script, it is possible it might atleast partially get you to where you need to be.....

I know Josh mentioned another forum post, but it doesn't fully talk about the script I wrote....Check it Out

http://www.vnoob.com/2012/02/automated-storage-vmotions-and-datastore-upgrades-with-powercli-wait-wh...

Conrad www.vnoob.com | @vNoob | If I or anyone else is helpful to you make sure you mark their posts as such! :slightly_smiling_face:
Reply
0 Kudos