VMware Cloud Community
riyas1988
Enthusiast
Enthusiast
Jump to solution

Adding Datastore to ESX Host

Hi All,

We are automating the process of adding data store to esx host. We have all inputs required like Host, Cluster, Data center, Data Store Name, Data store Pat (VMFS).

Do we have any cmdlets to achieve the result? Do the data store should be added after configuring network?

Also do we need to confirm the datastore must be there in vcenter/Cluster?

Please help in explaining the process.

Thanks and Regards

Riyas Hussain A

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

If the LUNs on which these datastores are defined are correctly zoned and configured as shared, they should automatically become visible on the ESXi node.

Do you see the LUN on the different ESXi nodes under Storage Adapters ?


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

View solution in original post

0 Kudos
3 Replies
LucD
Leadership
Leadership
Jump to solution

You can use the New-Datastore cmdlet to create, and the Get-Datastore cmdlet to verify if a datastore exists.

And no, you can create datastores before you set up your network (provided you are not going for NFS or iSCSI storage of course).

Let me know if you need more details.


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

0 Kudos
riyas1988
Enthusiast
Enthusiast
Jump to solution

Hi LucD.

Thanks for your reply.

Currently we are configuring VMFS data store. Thing is its going to be complete data center and how we can add datastore without knowing those are mapped to the vcenter or data center?

Is there any way or process to validate the same? For example currently we are getting inputs like Data store Name = Datastore1 and Data store Path = /vol/Datastore1 and its vmfs

How i can add above data store to newly added host?

Please explain the same.

Thanks and Regards

Riyas Hussain a

0 Kudos
LucD
Leadership
Leadership
Jump to solution

If the LUNs on which these datastores are defined are correctly zoned and configured as shared, they should automatically become visible on the ESXi node.

Do you see the LUN on the different ESXi nodes under Storage Adapters ?


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

0 Kudos