VMware {code} Community
jeremyinvision
Contributor
Contributor

scripting datastore creation

Are there any tools here to create a new datastore given a newly created SAN LUN ?

Seems like none of the tools I can find online or that are in this perl sdk work around the messyness of having to manually fdisk the new LUN and then use vmkfstools to lay down a filesystem.

Is there a took available for this or am i missing something ?

Reply
0 Kudos
2 Replies
stumpr
Virtuoso
Virtuoso

There is a method for creating VMFS Datastores in the SDK: createVmfsDatastore. I personally don't have a lot of experience using, I'd have to do some testing to give you a code sample. But the general idea would be to fill out your spec data structure and pass it as a parameter to the CreateVMFSDatastore function.

Reuben Stump | http://www.virtuin.com | @ReubenStump
Reply
0 Kudos
njain
Expert
Expert

Reply
0 Kudos